Good idea and a good complement to bookmarks, but IMO no real replacement for them.
@Ding:
I use this very simple, but useful (at least for me) workaround for the time being...
#include 'slick.sh'
// opt: c == current buffer, b == all buffers, p == project files, w == workspace files
_command int f2,find_2do (_str opt = 'c') name_info (','VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL|VSARG2_MARK)
{
int status = 0;
_str search_options = make_search_options (VSSEARCHFLAG_WORD |
VSSEARCHFLAG_RE |
VSSEARCHFLAG_HIDDEN_TEXT |
VSSEARCHFLAG_NOSAVE_TEXT |
VSSEARCHFLAG_FINDHILIGHT |
VSSEARCHFLAG_GO, true);
search_options = search_options :+ '@W:PCCF';
_str cur_word = '(TODO)|(FIXME)|(REMOVEME)|(DBG)|(HS2DO)|(DINGDO)';
int grep_id = 9; // -> Search<9>
int mfff = MFFIND_THREADED | MFFIND_GLOBAL;
clear_highlights ();
switch ( opt )
{
case 'b':
status=_mffind (cur_word, search_options, MFFIND_BUFFERS, "", mfff , false, false, '', '', true, grep_id);
break;
case 'p':
status=_mffind (cur_word, search_options, MFFIND_PROJECT_FILES, "", mfff, true, false, '', '', true, grep_id);
break;
case 'w':
status=_mffind (cur_word, search_options, MFFIND_WORKSPACE_FILES, "", mfff, false, true, '', '', true, grep_id);
break;
case 'c':
default:
status=_mffind (cur_word, search_options, MFFIND_BUFFER, "", mfff, false, false, '', '', true, grep_id);
}
cursor_data();
return( status );
}
// (aliased) wrappers to be bound to keyboard shortcuts
_command int f2b,find_2do_buffers () name_info (','VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL|VSARG2_MARK)
{
return(find_2do ('b'));
}
_command int f2p,find_2do_project () name_info (','VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL|VSARG2_MARK)
{
return(find_2do ('p'));
}
_command int f2w,find_2do_wkspace () name_info (','VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL|VSARG2_MARK)
{
return(find_2do ('w'));
}
HS2