Author Topic: Keyboard shortcut to select "Search Results window" in the "Find" dialog  (Read 271 times)

eee

  • Community Member
  • Posts: 33
  • Hero Points: 2
Is there a keyboard shortcut to select the Search Results window in the Find dialog?
I would expect the following behavior:
- Alt-0/1/2../9 would select the appropriate Search<0/1/2../9>
  * If the index does not exist - New
- Alt-A - Auto increment
- Alt-N - New

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1275
  • Hero Points: 126
No, but that could be added in a future release.  Alt+0-9 aren't currently bound to anything in Find and Replace tool window, but Alt+N and Alt+A are already bound as hotkeys to existing controls (Place cursor at eNd and Replace All). Could use Alt+Shift+N and Alt+Shift+A.  I will file a feature request to look into this.

eee

  • Community Member
  • Posts: 33
  • Hero Points: 2
"Fixed" (actually - hacked).
I am sure there is an elegant way to do this, I will leave it to the developers.

I patched tbfind.e like this:
In function _tbfind_form.'C-A'-'C-Z','c-s-a'-'c-s-z','c-a-a'-'c-a-z',F1-F12,C_F12,A_F1-A_F12,S_F1-S_F12,'c-0'-'c-9','c-s-0'-'c-s-9','c-a-0'-'c-a-9','a-0'-'a-9','M-A'-'M-Z','M-0'-'M-9','S-M-A'-'S-M-Z','S-M-0'-'S-M-9'
I added close to the end

Code: [Select]
   case name2event('C_9'):
       req_grepid++;
   case name2event('C_8'):
       req_grepid++;
   case name2event('C_7'):
       req_grepid++;
   case name2event('C_6'):
       req_grepid++;
   case name2event('C_5'):
       req_grepid++;
   case name2event('C_4'):
       req_grepid++;
   case name2event('C_3'):
       req_grepid++;
   case name2event('C_2'):
       req_grepid++;
   case name2event('C_1'):
       req_grepid++;
   case name2event('C_0'):
       req_grepid++;
   case name2event('C_A'):
       if ( req_grepid == -1 )
       {
           req_grepid = GREP_AUTO_INCREMENT;
       }
   case name2event('C_N'):
       if ( req_grepid == -1 )
       {
           req_grepid = GREP_NEW_WINDOW;
       }
       _set_grep_buffer_id(req_grepid);
       return;

Graeme

  • Senior Community Member
  • Posts: 2323
  • Hero Points: 305
Mini find has this already but there's no shortcut key to get from big find to mini find.