Hiding stacks from the Project Browser
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Hiding stacks from the Project Browser
This works wonderfully..just patched into my copy of LC.
Many thanks for your efforts.
So next just need to work out how to activate this form script in the main stack of a plugin.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: Hiding stacks from the Project Browser
I'm not clear on what you're suggesting... you want a way to toggle the option via a plugin script?
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
Re: Hiding stacks from the Project Browser
Yes exactly, i think that would be useful.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
Re: Hiding stacks from the Project Browser
This sounds like a hacktoberfest project, but never mind, you couldn't wait until hacktober to submit it...
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: Hiding stacks from the Project Browser
I admit to not seeing the advantage of toggling this in other situations unless you're trying to create your own PB, but nonetheless...
this patch provides a second optional argument to the revIDEStacksForDataView() function. If you're invoking that function yourself then adding a true argument would give you the filtered stack array. If you just want a filtered list then you could duplicate what I've added to that function:
1. get the entire list of stacks
2. for each stack in the list, eliminate any whose long id contains ".livecodescript"
(and note that "ends with" as a filter won't work because the long id is in quotes and so the "ends with" part is actually the whole filename).
this patch provides a second optional argument to the revIDEStacksForDataView() function. If you're invoking that function yourself then adding a true argument would give you the filtered stack array. If you just want a filtered list then you could duplicate what I've added to that function:
1. get the entire list of stacks
2. for each stack in the list, eliminate any whose long id contains ".livecodescript"
(and note that "ends with" as a filter won't work because the long id is in quotes and so the "ends with" part is actually the whole filename).
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: Hiding stacks from the Project Browser
...and as a hint to anyone who wants this implemented *everywhere*, you might try monkeypatching function __ideFilterStackNameListWithPreference() in stack revidelibrary.8.livecodescript.
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
Re: Hiding stacks from the Project Browser
I take it that option is limited to 8.x and above eh? 7 and below you would still need to stick 'rev' at the front of the name?