Add 'Open file location' on file tab menu
-
- User
- Posts: 84
- Joined: Mon Sep 06, 2010 3:05 pm
Add 'Open file location' on file tab menu
Hello,
when I right-click on a tab in PB, is it possible to add an 'Open Directory in explorer' or equivalent feature ?
Arnaud
when I right-click on a tab in PB, is it possible to add an 'Open Directory in explorer' or equivalent feature ?
Arnaud
Re: Add 'Open file location' on file tab menu
You can add a tool:
explorer.exe
Select,"%FILE"
explorer.exe
Select,"%FILE"
-
- User
- Posts: 84
- Joined: Mon Sep 06, 2010 3:05 pm
Re: Add 'Open file location' on file tab menu
Thank you for the tips.
For me it is a workaround, not a feature.
For me it is a workaround, not a feature.
Re: Add 'Open file location' on file tab menu
+1 agree
I have this feature in my custom IDE build on Windows:

But I have not submitted it, because I know the team wants submissions implemented and tested on all the OS.
I have this feature in my custom IDE build on Windows:

But I have not submitted it, because I know the team wants submissions implemented and tested on all the OS.
Re: Add 'Open file location' on file tab menu
Kenmo, can your custom tweak be added to the official IDE somehow?
Re: Add 'Open file location' on file tab menu
I didn't know you could add tools as buttons on the toolbar! Thanks for telling us.
Re: Add 'Open file location' on file tab menu
This functionality is actually already implemented for each platform (see here for Windows): https://github.com/fantaisie-software/p ... ns.pb#L379kenmo wrote: Sat Mar 12, 2022 5:04 am +1 agree
I have this feature in my custom IDE build on Windows:
But I have not submitted it, because I know the team wants submissions implemented and tested on all the OS.
So all you need is to add the menu entry to submit a PR.
quidquid Latine dictum sit altum videtur
Re: Add 'Open file location' on file tab menu
@freak OK, I looked back at how I added it. (This was apparently Oct 2020! Time flies!)
The main difference is I wanted the specific file to be auto-selected in the explorer. So I added ShowExplorerFile() like ShowExplorerFolder().
For Windows and Mac, I have simple working functions from the forums.
For Linux (I guess this is the only problem) it falls back to ShowExplorerFolder(GetPathPart(File)) because I don't know how to jump to a specific file.
It looks like it would merge into devel OK, I will submit a PR for people to pull and test.
The main difference is I wanted the specific file to be auto-selected in the explorer. So I added ShowExplorerFile() like ShowExplorerFolder().
For Windows and Mac, I have simple working functions from the forums.
For Linux (I guess this is the only problem) it falls back to ShowExplorerFolder(GetPathPart(File)) because I don't know how to jump to a specific file.
It looks like it would merge into devel OK, I will submit a PR for people to pull and test.
Re: Add 'Open file location' on file tab menu
I've submitted PR #205 for review
(or anybody can pull in my show-in-folder git branch)
https://github.com/fantaisie-software/p ... c/pull/205
(or anybody can pull in my show-in-folder git branch)
https://github.com/fantaisie-software/p ... c/pull/205
Re: Add 'Open file location' on file tab menu
Not sure how long this has been in the ide, but it was always one of my wants... so just a thanks to all involved in implementing 

Proud supporter of PB! * Musician * C64/6502 Freak
Re: Add 'Open file location' on file tab menu
+1oreopa wrote: Sun Jul 21, 2024 5:18 pm Not sure how long this has been in the ide, but it was always one of my wants... so just a thanks to all involved in implementing![]()

Hygge