Allow Ctrl+F to search in Session History

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Allow Ctrl+F to search in Session History

Post by Caronte3D »

Some times I must retrieve an old snippet of code deleted later, so I get ir from the Session History, but is very difficult to find without a search mode.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Allow Ctrl+F to search in Session History

Post by BarryG »

+1

Been requested before, with some workarounds -> viewtopic.php?t=73336
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Allow Ctrl+F to search in Session History

Post by Caronte3D »

I already try the Kermo code, but it's not useful for me, I only need a way to search on the open session history nothing more.
In the mean time, I copy the history code to a new pad in the IDE and search from there, but it's ridiculous.
I hope someone implement that feature :(
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Allow Ctrl+F to search in Session History

Post by davido »

+1
DE AA EB
miskox
User
User
Posts: 95
Joined: Sun Aug 27, 2017 7:37 pm
Location: Slovenia

Re: Allow Ctrl+F to search in Session History

Post by miskox »

+1

Saso
lorde
New User
New User
Posts: 1
Joined: Fri Nov 25, 2022 9:06 am

Re: Allow Ctrl+F to search in Session History

Post by lorde »

BarryG wrote: Wed Oct 05, 2022 10:13 pm +1 shell shockers melon playground

Been requested before, with some workarounds -> viewtopic.php?t=73336
+1
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Allow Ctrl+F to search in Session History

Post by BarryG »

Actually, I'd love a "snapshot" feature for History that supports a name/description. So I could take a snapshot called "Before adding feature X" and then be able to revert back to that code version by selecting it from a "Snapshots" list in the History.
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Allow Ctrl+F to search in Session History

Post by Caronte3D »

Nice idea!
Fred
Administrator
Administrator
Posts: 16619
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Allow Ctrl+F to search in Session History

Post by Fred »

While session history is useful to get back some code you just modified, it's not meant to be a full featured code versioning program. You should use git or svn if you start a project and need proper snapshots/history
Rinzwind
Enthusiast
Enthusiast
Posts: 636
Joined: Wed Mar 11, 2009 4:06 pm
Location: NL

Re: Allow Ctrl+F to search in Session History

Post by Rinzwind »

True, but session history does exist and is useful if I could just navigate the displayed source code more easily. A find text is the minimum. A procedure browser would be nice too. As it is now, I have to copy paste it into another document to make sense of it. It lacks a bit of polish.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Allow Ctrl+F to search in Session History

Post by BarryG »

Just adding a simple text search (with InputRequester) to find text in the displayed history would be good. You don't need to do a whole search dialog like the IDE has, and we're not talking about searching ALL history items. Just the one that's displayed, so we can move to different parts of that code easily.
AZJIO
Addict
Addict
Posts: 1318
Joined: Sun May 14, 2017 1:48 am

Re: Allow Ctrl+F to search in Session History

Post by AZJIO »

BarryG wrote: Fri Nov 25, 2022 9:22 am So I could take a snapshot called "Before adding feature X"
To do this, I wrote the AnotherFileNearby tool, this creates a copy of the file in the same folder, from which you will continue to write a new function. And this can be repeated several times. Each new copy will have added functionality. It also additionally protects you from an unexpected shutdown of the computer, you will always have a complete copy of some functionality. Although it is better to make a backup copy in a separate folder (".\old copy"), since there are quite a lot of them, 20 pcs. and more.
Post Reply