texworks icon indicating copy to clipboard operation
texworks copied to clipboard

Show the open file in the os file explorer

Open matteofg opened this issue 11 months ago • 4 comments

I think it is useful to provide, in the File menu, a command (such as 'Show in Explorer/Finder/FileManager') that opens the folder containing the file currently open in TeXworks.

Screenshot 2024-03-19 at 13 23 14

matteofg avatar Mar 19 '24 12:03 matteofg

"Reveal in finder" "Show in enclosing folder" are used on MacOS. The second one seems less OS related and may fit better for internationalization.

jlaurens avatar Mar 19 '24 14:03 jlaurens

This can be implemented easily as script - see https://github.com/stloeffler/TeXworks-scripts

stloeffler avatar Mar 19 '24 14:03 stloeffler

It seems to me that the main problem is the file menu entry, which is not addressed by the script.

jlaurens avatar Mar 19 '24 15:03 jlaurens

I was not familiar with the 'TeXworks-scripts' repository. I loaded the 'Open containing directory' script and added a shortcut. All good! For me the issue is solved, although I am convinced that the function is of general use and perhaps it would be better to put it in the File menu by default.

matteofg avatar Mar 19 '24 19:03 matteofg