Re: find and replace in files
Trent Mick <[email protected]>
| Newsgroups | gmane.comp.ide.komodo.general |
|---|---|
| Message-ID | <[email protected]> |
Enrico Herzke wrote:
> approval! better it should remember last setting!
Hmmm. So... that could be done like this:
- If the Find dialog were opened by the "Find: Find in Files..." command
(cmd_findInFiles, aka "ko.launch.findInFiles()" in JS), then it will use
set find context (the internal name for the "Search in" field) stored in
a preference for that (say, "find-inFilesContext").
- When the find dialog is closing, set the "find-inFilesContext" if:
(a) opened for finding in files (rather that find in the current
file); and
(b) the current context is one of the multi-file contexts (i.e.
guard against the "find-inFilesContext" being "Current document".
- Likewise for "Find: Replace in Files..."
Thoughts?
Trent
--
Trent Mick
trentm at activestate.com
_______________________________________________
Komodo-discuss mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss