Author Topic: How do I set the default find replace tab  (Read 197 times)

howardd

  • Community Member
  • Posts: 18
  • Hero Points: 1
How do I set the default find replace tab
« on: December 15, 2021, 11:06:14 pm »
When I open the Find and Replace dialog I would like it to initially start on the "Find" tab.  I recently had to recreate my development environment and for some reason when I open the Find and Replace dialog it is currently defaulting to the "Replace in Files" tab. I looked for a setting that controls which tab is the default but was unable to figure out what setting controls this. 
I have attached a screen shot of the Find and Replace dialog with the current default tab circled in red and the desired default tab circled in green.

« Last Edit: December 15, 2021, 11:08:32 pm by howardd »

Graeme

  • Senior Community Member
  • Posts: 2702
  • Hero Points: 336
Re: How do I set the default find replace tab
« Reply #1 on: December 16, 2021, 04:33:47 am »
What version of slickedit are you using?

How do you open the find and replace dialog   - with Ctrl-F ??
If so, what command do you have bound to ctrl-F?
If you run the command tool-gui-find from the command line, what happens.

LBCEi

  • Senior Community Member
  • Posts: 229
  • Hero Points: 21
Re: How do I set the default find replace tab
« Reply #2 on: December 16, 2021, 04:39:59 am »
How are you opening it?  Typically I use Ctrl-F (CUA emulation) for a find.  To get to "Replace in Files" I use Ctrl-Shift-H.

It would probably help if you share your version and platform information which you can find by going to Help>About and then clicking "Copy To Clipboard" and then pasting into a reply to this thread.

howardd

  • Community Member
  • Posts: 18
  • Hero Points: 1
Re: How do I set the default find replace tab
« Reply #3 on: December 16, 2021, 07:11:24 pm »
Switching the Ctrl-F key binding from activate-find (default) to tool-gui-find solved the issue for me.  Now Ctrl-F is opening the dialog on the Find tab.

Thanks for pointing me to the correct binding to use for this!

Graeme

  • Senior Community Member
  • Posts: 2702
  • Hero Points: 336
Re: How do I set the default find replace tab
« Reply #4 on: December 17, 2021, 10:55:16 pm »
Attached is keydefs.e which is generated from the command list-keydefs in a default config for slick V26.  CUA is the default.  You can see that Ctrl F is bound to gui-find.  gui-find calls tool-gui-find if def_gui_find_default is true.  If it's false, mini-find is activated.  This value comes from your configuration settings according to whether you want mini find or big find to be the default.  When mini-find is active you can press Ctrl-F (again) to bring up big-find.


Code: [Select]
_command int gui_find(...) name_info(','VSARG2_EDITORCTL|VSARG2_READ_ONLY)
{
   _macro_delete_line();
   if (def_gui_find_default) {
      return tool_gui_find(arg(1));
   }
   if (!_isEditorCtl(false)) {
      find_in_files();
      return 0;
   }

   return _show_mini_form(false, arg(1));
}

howardd

  • Community Member
  • Posts: 18
  • Hero Points: 1
Re: How do I set the default find replace tab
« Reply #5 on: December 17, 2021, 11:00:35 pm »
I am using SlickEdit version 25 and have the key emulation set to Eclipse.  That may be why it had activate-find as the default for Ctrl-F.

Changing the key binding to tool-gui-find solved the problem for me.