Author Topic: Search: Found items are centered in the window - How to turn off?  (Read 7941 times)

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
When I am doing an incremental search and hit "search again" to advance to the next instance of the string, if the next instance is already on the screen, the code on the screen scrolls to bring the new instance to the middle of the screen.

How do I turn this off? I actually think I remember seeing this option somewhere but cannot find it in the tools->options->edit->search page and am unsure where else to look. I may simply be missunderstanding the quick hints in the options screen.

Your help would be appreciated.

Thank you,

Dave F.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2919
  • Hero Points: 153
What part of it are you trying to shut off?

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
Thanks for responding!

When the next instance is currently on the screen (on a different line from the current instance) I would prefer the screen not scroll vertically to bring it to the center line of the screen.

Dave F.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2919
  • Hero Points: 153
I don't think we have an option for that.

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
Too bad.

Thanks for your quick reply. :-)

Graeme

  • Senior Community Member
  • Posts: 2821
  • Hero Points: 347
When I am doing an incremental search and hit "search again" to advance to the next instance of the string, if the next instance is already on the screen, the code on the screen scrolls to bring the new instance to the middle of the screen.

How do I turn this off? I actually think I remember seeing this option somewhere but cannot find it in the tools->options->edit->search page and am unsure where else to look. I may simply be missunderstanding the quick hints in the options screen.

It doesn't scroll for me.  What version of slickedit are you using?  How do you initiate "search again"?

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
I use CTRL-G

Thanks,

Dave F.

Graeme

  • Senior Community Member
  • Posts: 2821
  • Hero Points: 347
What version of slickedit?

That doesn't sound like incremental search.  How do you initiate the search?

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
Version: SlickEdit 2013 (v18.0.1.2 64-bit)

I use CTRL-F to start the search and CTRL-G to go to the next instance.

Graeme

  • Senior Community Member
  • Posts: 2821
  • Hero Points: 347
I still don't get any scrolling if the item is already on screen.  What command is Ctrl G bound to - type what-is on the slick cmd line then press ctrl-G

You could try to reproduce in a new virgin config  - invoke slick with
vs.exe +new -sc c:/some_empty_folder

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
I don't have a command line anywhere; where should I see this?

The Search menu shows this third from the top, assigned to "Next Occurrence".

Graeme

  • Senior Community Member
  • Posts: 2821
  • Hero Points: 347
See "command line" in the help index.  What key emulations are you using and what operating system?  What happens if you right click in the find replace dialog and select "use default options".




Activating the Command Line
To activate or toggle the SlickEdit® command line in any emulation, click on the message line with the mouse. Key bindings are also provided for toggling the cursor to the command line, based on your emulation:

BBEdit - Esc

Brief - Esc

CodeWarrior - Esc

CodeWright - F9

CUA (SlickEdit's default emulation) - Esc

Epsilon - Alt+X or F2

GNU Emacs - Alt+X or F2

ISPF - Esc

SlickEdit (Text Mode edition) - Esc

Vim - Ctrl+A

Visual C++ - Esc

Visual Studio default - Esc

Xcode - Esc

Eclipse - Esc


dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
"Use default options" causes it to no longer scroll!

Now I can start looking for what is different between my options and the default options.

Thanks!

dfechser

  • Senior Community Member
  • Posts: 123
  • Hero Points: 0
It seems that, now, I get that behavior only if I select "Use default options" every time I do a search. How do I change my config so that the default options are always used? I cannot find a button or right-click option in tools:options:edit:search for this.

Graeme

  • Senior Community Member
  • Posts: 2821
  • Hero Points: 347
Right click -> configure options -> turn on "initialize with default options".

Have you tried the +new -sc suggestion.
You could also try
1. close slick, backup your config folder
2. delete vslick.sta in your config folder
3. run slick and try the search