Author Topic: Editor with "search in multiple files" function  (Read 1253 times)

Offline Chris

  • Game Owner
  • Level 35
  • *
  • Posts: 2,217
  • Reputation: +28/-1
    • View Profile
Editor with "search in multiple files" function
« on: January 04, 2010, 05:06:08 AM »
I need some editor (of other software) that would let me scan through all game source codes to find certain string (usually I need all occurences of a certain variable). Preferably if it would go through subdirectories, but I'm not picky (manual selection of multiple files to open is OK too).

Offline gnoh

  • Game Owner
  • Level 15
  • *
  • Posts: 127
  • Reputation: +2/-0
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #1 on: January 04, 2010, 05:10:39 AM »
I use eclipse which can do that,  it might be a bit heavy just so you can do that though.

What about a shell script?

Offline Nox

  • Level 35
  • **
  • Posts: 768
  • Reputation: +12/-2
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #2 on: January 04, 2010, 05:59:35 AM »
That feature should be availible even in better text editors

I'm pretty sure there would be some small program just for this (and maybe also replacing, this things are pretty connected often), but:

I use Netbeans IDE which allows to search files in all projects or just main project (of course in subfolders too, would be useless otherwise)
Allows to set pattern for files (*.html for example) and use regular expressions for the searched content

If you don't use such IDE (which I would heavily recommend) I can recommend PSPad which is very feature rich (and yet light and fast) text editor
Meet us at an IRC irc.freenode.net #bbg as well
https://vimeo.com/36579366 (a must-watch) | Join BOINC - no longer a hype, but you can help never the less

Offline Zeggy

  • Global Moderator
  • Level 35
  • *****
  • Posts: 1,187
  • Reputation: +13/-4
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #3 on: January 04, 2010, 06:06:44 AM »
Textpad has this. You can search through directories, recursively, filename filter/regex to only search in certain files, search in regex, etc.

Offline tellmore

  • Level 12
  • *
  • Posts: 85
  • Reputation: +3/-0
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #4 on: January 04, 2010, 06:08:20 AM »
komodo allso has a feature like that.
its a verry handy gadget, free, and quite fast.

even on my "extreem" development machine it works just fine.


Offline Glenugie

  • Level 10
  • *
  • Posts: 64
  • Reputation: +0/-0
    • View Profile
    • The Land of Ennui
Re: Editor with "search in multiple files" function
« Reply #5 on: January 04, 2010, 06:28:37 AM »
Notepad++ can do this, it's what I use :)

Offline saljutin

  • Level 22
  • *
  • Posts: 266
  • Reputation: +6/-0
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #6 on: January 04, 2010, 06:54:58 AM »
Notepad++ can do this, it's what I use :)
+1
Maybe some other editors are better (they provide you with PHP functions autocomplete and descriptions and also some list of all vars) but I still use N++ :)

Offline gnoh

  • Game Owner
  • Level 15
  • *
  • Posts: 127
  • Reputation: +2/-0
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #7 on: January 04, 2010, 07:02:20 AM »
hehe *watches* as this develops into a IDE  flame war ;)


Offline Nox

  • Level 35
  • **
  • Posts: 768
  • Reputation: +12/-2
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #8 on: January 04, 2010, 07:36:58 AM »
Neither PSPad nor Textpad or Notepad++ are IDEs, they're text editors, albeit often good and feature rich
... leaving only Netbeans and Kohana I guess is IDE too
Meet us at an IRC irc.freenode.net #bbg as well
https://vimeo.com/36579366 (a must-watch) | Join BOINC - no longer a hype, but you can help never the less

Offline gnoh

  • Game Owner
  • Level 15
  • *
  • Posts: 127
  • Reputation: +2/-0
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #9 on: January 04, 2010, 07:41:18 AM »
I know.. :P  I'm just jesting/being lazy with words.   There really isn't a requirement to be so pedantic.

Offline Sunchaser

  • Game Owner
  • Level 23
  • *
  • Posts: 296
  • Reputation: +3/-0
  • Game Owner
    • View Profile
    • Medieval Europe
Re: Editor with "search in multiple files" function
« Reply #10 on: January 04, 2010, 08:49:13 AM »
You can use wingrep. When you find occurencies, you can click on them and kickup your favourite editor.

http://www.wingrep.com/

Online raestlyn

  • Level 29
  • **
  • Posts: 464
  • Reputation: +9/-5
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #11 on: January 04, 2010, 09:10:18 AM »
HAPedit has that feature, and things that saljutin listed. I use it when I use Windows, othervise I use KATE.


I can send you pics of my cocks if you want reference.


Offline Marek

  • Level 18
  • *
  • Posts: 177
  • Reputation: +7/-0
  • XHTML, CSS, JS, PHP and MySQL are my pantheon.
    • View Profile
Re: Editor with "search in multiple files" function
« Reply #12 on: January 04, 2010, 09:53:05 AM »
In my experience, nothing beats Notepad++ for lightweight editing (on windows).

When you need the big guns, the two champions among PHP IDEs are Eclipse PDT and Netbeans. Neither were originally intended for PHP (they were made for Java, in Java) but they now have excellent support for PHP. They are both very mature projects, feature-rich, and free.

Then there's also the excellent Zend IDE which has features up the wazoo, but it's not free.

If anyone has not yet tried out a PHP IDE, then you NEED to get around to it. It can change how you do your programming.

ST-Mike

  • Guest
Re: Editor with "search in multiple files" function
« Reply #13 on: January 04, 2010, 10:58:02 AM »
Admins have ignored my deletion request - if you're not going to delete my account then don't have the option there please.
« Last Edit: March 15, 2011, 07:52:35 PM by None »

Offline Harkins

  • Level 28
  • **
  • Posts: 424
  • Reputation: +11/-2
  • Coder, blogger, entrepreneur.
    • View Profile
    • Push CX - Blog
Re: Editor with "search in multiple files" function
« Reply #14 on: January 04, 2010, 02:53:43 PM »
I use Ack for searching code, it's a great tool that is indeed better than grep for the job.

I integrate it into vim with:
Code: [Select]
" Use Ack instead of Grep when available
if executable("ack")
  set grepprg=ack\ -H\ --nogroup\ --nocolor
endif

so a quick ':gr foo' turns up whatever I'm looking for.

Visit #bbg on irc.freenode.net to talk browser games anytime.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal