Page 1 of 1

Add 'Open file location' on file tab menu

Posted: Wed Mar 09, 2022 11:24 am
by Maitre_Kanter
Hello,

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

Posted: Wed Mar 09, 2022 10:17 pm
by AZJIO
You can add a tool:
explorer.exe
Select,"%FILE"

Re: Add 'Open file location' on file tab menu

Posted: Thu Mar 10, 2022 8:18 am
by Maitre_Kanter
Thank you for the tips.
For me it is a workaround, not a feature.

Re: Add 'Open file location' on file tab menu

Posted: Sat Mar 12, 2022 5:04 am
by kenmo
+1 agree

I have this feature in my custom IDE build on Windows:
Image

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

Posted: Sat Mar 12, 2022 8:08 am
by BarryG
Kenmo, can your custom tweak be added to the official IDE somehow?

Re: Add 'Open file location' on file tab menu

Posted: Sat Mar 12, 2022 12:46 pm
by AZJIO
Maitre_Kanter
You can also add a button to the toolbar. Maybe you don't know that.
screenshot

Re: Add 'Open file location' on file tab menu

Posted: Sun Mar 13, 2022 2:19 am
by BarryG
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

Posted: Fri Mar 18, 2022 7:05 pm
by freak
kenmo wrote: Sat Mar 12, 2022 5:04 am +1 agree

I have this feature in my custom IDE build on Windows:
Image

But I have not submitted it, because I know the team wants submissions implemented and tested on all the OS.
This functionality is actually already implemented for each platform (see here for Windows): https://github.com/fantaisie-software/p ... ns.pb#L379

So all you need is to add the menu entry to submit a PR.

Re: Add 'Open file location' on file tab menu

Posted: Sat Mar 19, 2022 2:24 am
by kenmo
@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.

Re: Add 'Open file location' on file tab menu

Posted: Sun Mar 20, 2022 4:03 am
by kenmo
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

Re: Add 'Open file location' on file tab menu

Posted: Sun Jul 21, 2024 5:18 pm
by oreopa
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 ;)

Re: Add 'Open file location' on file tab menu

Posted: Sun Jul 21, 2024 5:41 pm
by Kiffi
oreopa 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 ;)
+1 :D