Search Box on tool panel

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 280
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Search Box on tool panel

Post by le_magn »

Hi, it would be very convenient to have a search box, in the side panel, for example in the procedures panel to find the procedure we are interested in right away, I have projects that have dozens of procedures and since in the panel they are not sorted by name but by position in the code, it is inconvenient to search for the procedure we are interested in, or put the option to sort them by name.

So my suggestion is to add a search box in: Procedures,Explorer,Templates and for procedures also the option to sort them by name.
Image
User avatar
spikey
Enthusiast
Enthusiast
Posts: 769
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: Search Box on tool panel

Post by spikey »

Sorting is an option in the preferences dialog for Procedures. See File → Preferences → ToolsPanel → Procedure Browser → Sort procedures by name.

But nonetheless this could be a useful addition.
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Search Box on tool panel

Post by AZJIO »

At the moment I'm using FindAllReferences for searching. Watch the video (video2)
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 280
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: Search Box on tool panel

Post by le_magn »

I never noticed the presence of the option to sort procedures, thanks for the tip, for the search box I suppose in explorer it could be useful
Image
User avatar
spikey
Enthusiast
Enthusiast
Posts: 769
Joined: Wed Sep 22, 2010 1:17 pm
Location: United Kingdom

Re: Search Box on tool panel

Post by spikey »

It's easy to miss, I bumped into it by accident, that's why I thought it worth sharing. The one I've always noticed is not being able to do a partial search in the Structure Viewer's tabs.
Last edited by spikey on Tue Oct 29, 2024 1:35 pm, edited 1 time in total.
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 280
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: Search Box on tool panel

Post by le_magn »

AZJIO wrote: Tue Oct 29, 2024 1:27 pm At the moment I'm using FindAllReferences for searching. Watch the video (video2)
Thank you I will immediately put FindAllReference in the addons I use in purebasic
Image
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Search Box on tool panel

Post by AZJIO »

You can make a simple tool that using a hotkey or button on the toolbar, the InputRequester input field appears, enter a name, press Enter
AZJIO
Addict
Addict
Posts: 2191
Joined: Sun May 14, 2017 1:48 am

Re: Search Box on tool panel

Post by AZJIO »

Take a look at the tools section here, maybe something else will be interesting.
Post Reply