Sublime Forum

Save "in selection" setting for find and replace panel

#1

Basically I want the “in selection” option in the find and replace panel to reflect my previous setting. When I activate the regex option and close the panel, and then open it again, the regex option will still be selected. However, this does not happen for the “in selection” option – I need to manually activate it every time I open the panel. Does anyone know how to solve this?

I couldn’t find anything on this forum or by searching either.

1 Like

#2

Probably the closest you can achieve is setting auto_find_in_selection to true:

// When auto_find_in_selection is enabled, the "Find in Selection" flag
// will be enabled automatically when multiple lines of text are selected
"auto_find_in_selection": true,

or write a plugin to track it and re-set/toggle it when you open the panel.

2 Likes

#3

Cool, thanks! Don’t you think it’s a bit strange, though, that all of the other settings are saved but this particular one isn’t? It is a bug, an oversight, or something intentional, do you know? Perhaps the developer would add this in in a development build? I don’t want to ask him and add to his inbox, though.

0 Likes

#4

I would guess that it is intentional, in the sense that for most people, it probably isn’t commonly used, and the aforementioned setting covers most scenarios.

2 Likes

#5

Okay, I’ve been using your suggestion and it works fairly well – better than my suggestion, too!

However, with one of the latest builds, some behavior was changed which is really annoying me…

New windows start with an empty find history

Why did this have to happen? I found it so useful using items in my history, since I work with documents in multiple windows. This has completely broken it for me.

Also, I can’t exactly find it in the changelog, but now whenever I open a new window, I need to select the regex option. Every single time. And thats a HUGE problem because I always keep regex search on, so why does it have to be off by default? And every time you open a window?

Sorry if I sound annoyed, but I don’t get these changes at all. These aren’t some niche features I’d like. They’re just simple things which made Sublime Text the best text editor for me. And now it’s gone? I don’t want to downgrade to an older version just because functionality was removed! Or was this placed into a setting which I’m just missing?

0 Likes