Author Topic: Find File (in directory)  (Read 911 times)

Offline Arthur

  • Hero Member
  • *****
  • Posts: 620
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Find File (in directory)
« on: March 18, 2009, 04:39:04 am »
Idea: how about adding to the Find dialog scope "File name"? It must be a search in a directory(s).

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 772
  • Karma: +6/-0
    • View Profile
Re: Find File (in directory)
« Reply #1 on: March 18, 2009, 08:23:16 am »
Hi Arthur,
would you please explain some more what you want?

AFAIS there is  Scope "Files" to search in directory to chose. (see picture, (don't know if my syntax is correct?) )

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Find File (in directory)
« Reply #2 on: March 18, 2009, 10:57:47 am »
Just want to add, that you can also search in specific file without opening it, if you select scope Files, and put as path full file name.
Another thing you can use current file directory, to search all files in directory of current file.

Offline Arthur

  • Hero Member
  • *****
  • Posts: 620
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Find File (in directory)
« Reply #3 on: March 18, 2009, 02:57:41 pm »
I am sorry for not being specific enough.

To elaborate: the new scope I meant is to enable search for a certain file name.

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 772
  • Karma: +6/-0
    • View Profile
Re: Find File (in directory)
« Reply #4 on: March 18, 2009, 03:21:16 pm »
You mean to search for an file like with >>>WinExplorer<<<  Ctrl+F feature ?
To open it if found?
Or what is your intention?

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 772
  • Karma: +6/-0
    • View Profile
Re: Find File (in directory)
« Reply #5 on: March 18, 2009, 03:45:32 pm »

Interesting idea.  But as "work around"..... here is an hint for you and/or others finding this thread:


Normal one do this the other way around: find an file with WinExplorer and then open this with your editor.

Option 1)
With HippoEDIT you can create an link in (right click) context menu "Open File With HippoEDIT".
see ==>  Tools > File Associations.. > Shell Integration
But this needs admin rights one time, because of writing to Registry HKLM-hive.

Option 2)
Users with non-Admin rights can use this way:
- create an "Shortcut to HippoEDIT.exe"
- copy or move this to your "Send To"- folder  "C:\Documents and Settings\<yourName>\SendTo\..."  (on Windows XP)
Now you can, if you have an file(s) to open selected, chose "Send to > Shortcut to HippoEDIT.exe" to open the file(s) with HE
Hints:
* you can rename the name of this link "Shortcut to HippoEDIT.exe"  to something like "HippoEDIT"
* you may want to set or not option "Allow multiple instances" with "Tools > Options >General"  to open this files in an already opened HE (or not)

HTH?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Find File (in directory)
« Reply #6 on: March 18, 2009, 11:03:01 pm »
Hm.. for me it is till not clear what Arthur mean.

Just search for file (not content) or file list (if mask is used) and open it then in editor?
Something like Windows File search?

If this, I do not think that this is a good place. Because it does not fit by result to all other search types, that looks for content... 

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 772
  • Karma: +6/-0
    • View Profile
Re: Find File (in directory)
« Reply #7 on: April 15, 2009, 12:24:31 pm »
For "Find File in Directory"  we can just use an grep tool

Command Line:
C:\WINDOWS\grep.exe -l  -i "5\.2"  c:\test\*.txt
  c:\test\VC1vor.txt
-------------------------------------------- Done --------------------------------------------
Execution Time : 00:00:00


And if once the output is redirected to an new document ...
... we can put the cursor in one of the file names and execute "File > Open Selected File"

Offline Arthur

  • Hero Member
  • *****
  • Posts: 620
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Find File (in directory)
« Reply #8 on: April 15, 2009, 03:07:48 pm »
Hm.. for me it is till not clear what Arthur mean.

Just search for file (not content) or file list (if mask is used) and open it then in editor?
Something like Windows File search?

If this, I do not think that this is a good place. Because it does not fit by result to all other search types, that looks for content... 

I feel important to clarify that I am missing the "File Search" capability.
Typically, I need to open for edit a file I worked say 3 months ago on. I may recall only a portion of its name, and I need to quickly open it, so I do not want to reach out to external tools just to return back to HE for the file to look at and start submitting its path, for me it is more convenient to use the same Find Dialog because more often than not I end up searching inside this just opened file. I hope this clarifies, otherwise please let me know, besides, UNIX-ish tools like Grep drain my productivity down the pipe.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Find File (in directory)
« Reply #9 on: April 15, 2009, 03:17:36 pm »
Hi guys,

I have in ideas something called File Crawler. Which maybe would cover all you needs.
It is not yet implemented, but would be some when.

The idea is following: HE trace all you file activities (inside of HE of course). For example opening files, project, file search directories etc, recent files. Collect all directories involved, and then build a file index in background.
When you want to open any file, you do not need a file open dialog any more (ok, mostly). You use filtering input field for entering file name and open file by enter. Something similar to extended version of project file filter, you have now.

Think about it ;)

Offline JJK

  • Full Member
  • ***
  • Posts: 151
  • Karma: +2/-0
    • View Profile
Re: Find File (in directory)
« Reply #10 on: April 15, 2009, 03:27:08 pm »
Quote
File Crawler
Wow ! Nice idea... and surely nice feature !

Offline Arthur

  • Hero Member
  • *****
  • Posts: 620
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Find File (in directory)
« Reply #11 on: April 15, 2009, 03:35:32 pm »
File Crawler. Think about it ;)

 :) :) THAT'S Even Better! :) :)

Perhaps can be done similar to the Clipboard Ring??

PS: I need it already - it is a killer feature!

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
488 Views
Last post April 08, 2009, 12:43:08 pm
by Stefan
3 Replies
891 Views
Last post April 22, 2009, 11:51:39 am
by alex
1 Replies
478 Views
Last post May 20, 2009, 05:59:16 pm
by alex
1 Replies
496 Views
Last post September 10, 2010, 01:25:50 am
by alex
2 Replies
279 Views
Last post November 18, 2010, 03:49:03 pm
by alex