TeXworks / texworks

Main codebase for TeXworks, a simple interface for working with TeX documents
https://tug.org/texworks/
GNU General Public License v2.0
675 stars 126 forks source link

Show the open file in the os file explorer #1048

Open matteofg opened 3 months ago

matteofg commented 3 months ago

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
jlaurens commented 3 months ago

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

stloeffler commented 3 months ago

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

jlaurens commented 3 months ago

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

matteofg commented 3 months ago

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.