Find/Replace for all open files

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Find/Replace for all open files

Post by Mistrel »

It would be nice to be able to do a find/replace that searches all open files.
naw
Enthusiast
Enthusiast
Posts: 573
Joined: Fri Apr 25, 2003 4:57 pm

Post by naw »

Mm! Sounds dangerous - do you really mean ALL open files?
Ta - N
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

I do. It's the programmer's responsibility to know what files are open before performing this kind of search. :).
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

@naw: He means all open files in the IDE, not in the computer. ;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

+1

That feature is definitely a must have. The site manager of Dreaweaver and Aptana for example offer this and saves the developer a lot of work.
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

I'd use that if it were there too!
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Find/Replace for all open files

Post by Josh »

in the meantime we have projects in pb. so it would be fine, to have following options in find/replace dialog:

- in procedure
- in file
- in project

i find it importent to search/replace in procedures too, becouse the procedureexplorer don't show the correct procedure
sorry for my bad english
jamba
Enthusiast
Enthusiast
Posts: 144
Joined: Fri Jan 15, 2010 2:03 pm
Location: Triad, NC
Contact:

Re: Find/Replace for all open files

Post by jamba »

+1
would be very useful!
-Jon

Fedora user
But I work with Win7
User avatar
HwyStar
Enthusiast
Enthusiast
Posts: 101
Joined: Mon Apr 05, 2010 7:13 pm
Location: Reno, Nevada

Re: Find/Replace for all open files

Post by HwyStar »

+1!

It's probable a pain to code but worth the effort.
User avatar
max_aigneraigner@web.de
User
User
Posts: 67
Joined: Sun Nov 02, 2008 10:37 pm
Location: Bavaria
Contact:

Re: Find/Replace for all open files

Post by max_aigneraigner@web.de »

+1 :)
I would love it! :)

what would be great, too -> a sourcecode-FILE-search function with while-typing-finding that searchs the name of all open codes. because i have got 20 codes opened and NEVER know where this and that file is!.
especially by bug-tracing that would make possible much faster jumps between the codes.

And I want to jump to the declaration of a procedure by rightclick on the command -> jump to declaration (same thing, you want to check if that procedure causes the error and first you search for the sourcefile, and THEN you don't know where exactly the function is hidden^^

for example:

Code: Select all

procedure tree()
endprocedure 

tree()  ; <<-- right click here (or double click and Control holed, as it is in Japbe... )
and if there is an invalid memory access- in a procedure ! caused by one of the parameters, then I want to know where the procedure has been called so that I can trace this wrong parameter!
at the moment I have to write before every single call of the procedure a command that uses the pointer so that it causes there the IMA and not in the procedure itself..^^ (can be quite boring if you call this function about 20 times.. [ok.. male exaggeration.. but 6 Times!]

yours
Walker

Maybe.. in a far future.. these things could be available?? I think some in here would help If we were allowed to ! :) ;)
3D Projects
A ship is safest in the harbor, but that is not what ships are built for.
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 344
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Re: Find/Replace for all open files

Post by ar-s »

The search n replace for all opend file is allowed on JaPBe
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1
User avatar
max_aigneraigner@web.de
User
User
Posts: 67
Joined: Sun Nov 02, 2008 10:37 pm
Location: Bavaria
Contact:

Re: Find/Replace for all open files

Post by max_aigneraigner@web.de »

JaPBe doesn't really work on 64 bit ! :D ;)
it crashes sometimes and it "looses" the functions^^ so in the function-list the funcitons fade away for example..
And -> you always have to click "search in next file..." (more than 30 files opened -> click click click click...)
;) :)
3D Projects
A ship is safest in the harbor, but that is not what ships are built for.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Find/Replace for all open files

Post by freak »

max_aigneraigner@web.de wrote:And I want to jump to the declaration of a procedure by rightclick on the command -> jump to declaration (same thing, you want to check if that procedure causes the error and first you search for the sourcefile, and THEN you don't know where exactly the function is hidden^^

for example:

Code: Select all

procedure tree()
endprocedure 

tree()  ; <<-- right click here (or double click and Control holed, as it is in Japbe... )
This already works. Just hold down the Ctrl key and doubleclick on the procedure name.
max_aigneraigner@web.de wrote: and if there is an invalid memory access- in a procedure ! caused by one of the parameters, then I want to know where the procedure has been called so that I can trace this wrong parameter!
at the moment I have to write before every single call of the procedure a command that uses the pointer so that it causes there the IMA and not in the procedure itself..^^ (can be quite boring if you call this function about 20 times.. [ok.. male exaggeration.. but 6 Times!]
The Callstack debugger tool tells you exactly where the call came from that caused the problem. There is no need to search for it.
quidquid Latine dictum sit altum videtur
User avatar
max_aigneraigner@web.de
User
User
Posts: 67
Joined: Sun Nov 02, 2008 10:37 pm
Location: Bavaria
Contact:

Re: Find/Replace for all open files

Post by max_aigneraigner@web.de »

Ok, well I tried it but maybe not int the right way^^
I have to admit underestimated you :D ;) that's great! thanks :)
[is there a possibillity to jump back to where I did double click on the procedure? for example F4 in Japbe.. (but japbe drives me crazy on 64 bit..)

Callstack debugger tool.. ah that's quite a useful tool, didn't know about it, thanks! :)
Well you are always some steps infront of me ^^ :)
(only the search function would be another small advantage here I think. but these features make live a lot easier)
3D Projects
A ship is safest in the harbor, but that is not what ships are built for.
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Find/Replace for all open files

Post by skywalk »

@freak - Hey, can you expose the "jump to procedure" action to a shortcut?
I find it awkward to hold the [CTRL+LeftMouse CLICK].
Rather a simple keyboard assignment.

And, when you do jump to a procedure outside of the current file, [CTRL+L] does not get you back. :(
Last edited by skywalk on Tue Jul 08, 2014 12:28 am, edited 1 time in total.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Post Reply