FileManager extensions

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
18 Nov 2020 02:28 #189637 by phillc54
FileManager extensions was created by phillc54
In my ini file I have:
[FILTER]
PROGRAM_EXTENSION  = .nc,.tap remove z axis stuff

Printing INFO.PROGAM_FILTERS_EXTENSIONS shows:
['*.ngc', '*.nc', '*.tap', '*']

When using FileManager to open files the extensions are used individually, Is it possible to use them simultaneously, with the exception of "all files"

Please Log in or Create an account to join the conversation.

More
18 Nov 2020 02:36 #189638 by cmorley
Replied by cmorley on topic FileManager extensions
This is something i have been just working on.
The file dialog works as you want so it is possible.

it wasn't clear to ma at the time how to apply multiple filters simultaneously.

So short answer no but hopefully in the soonish future.

Chris
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
18 Nov 2020 02:41 #189639 by phillc54
Replied by phillc54 on topic FileManager extensions
Great, thanks Chris.

Another thing, when I go to Edit Mode the New, Open and Save buttons don't appear to do anything. I guess I am missing something.

Please Log in or Create an account to join the conversation.

More
18 Nov 2020 02:53 #189640 by cmorley
Replied by cmorley on topic FileManager extensions
Do you have the 'file dialog' option turned on in the screenoption widget?
And yes it does look like the new button doesn't clear the text as it should - i'll fix that.

Please Log in or Create an account to join the conversation.

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
18 Nov 2020 03:00 #189641 by phillc54
Replied by phillc54 on topic FileManager extensions
Oops. :blush:

Last question today. When a file is opened and run through a filter then a temp file is created and opened by LinuxCNC. Is the original filename available somewhere?

Please Log in or Create an account to join the conversation.

More
18 Nov 2020 03:12 #189642 by cmorley
Replied by cmorley on topic FileManager extensions
try ACTION.prefilter_path

It should hold the last loaded file name as a string.
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
18 Nov 2020 03:15 #189643 by phillc54
Replied by phillc54 on topic FileManager extensions
Thank you, that works a treat.

Please Log in or Create an account to join the conversation.

More
19 Nov 2020 07:05 #189760 by cmorley
Replied by cmorley on topic FileManager extensions
ok I pushed an upgrade so extensions work properly in file_manager

Chris
The following user(s) said Thank You: phillc54

Please Log in or Create an account to join the conversation.

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
19 Nov 2020 07:55 #189762 by phillc54
Replied by phillc54 on topic FileManager extensions
Great, thanks again Chris.

Please Log in or Create an account to join the conversation.

  • phillc54
  • phillc54's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
20 Nov 2020 00:03 #189845 by phillc54
Replied by phillc54 on topic FileManager extensions
Still doesn't seem to work.
[FILTER]
PROGRAM_EXTENSION       = .nc,.tap
ngc                     = ./plasmac/plasmac_gcode.py
nc                      = ./plasmac/plasmac_gcode.py
tap                     = ./plasmac/plasmac_gcode.py

Warning: Spoiler!
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.088 seconds
Powered by Kunena Forum