Sublime Forum

Selection is not the search string (Mac)

#1

When I select a string in the editor a hit Command+F the “Find what” is empty. (Mac)

When I do this in Windows with Ctrl+F the selected text is automatically my search string.

I prefer a consistent functionality across the platforms and of course the latter version.

0 Likes

#2

agreed… still doesn’t work in the latest version (2056) on the Mac

hope this makes it into the next release

0 Likes

#3

This is controlled via the find_selected_text setting

0 Likes

#4

this is in the default file preferences file at the bottom

// If true, the selected text will be copied into the find panel when it's
// shown.
"find_selected_text": true
0 Likes

#5

It’s overridden by an OS X specific value in the file “Packages/Default/Base File (OSX).sublime-settings”. If you set it to true in “Preferences/User File Preferences”, then that’ll take precedence.

It’s a similar situation with the “scroll_past_end” setting, which you may also want to force to true in your user settings, to make things more consistent.

0 Likes

#6

Nice… it works :smile:

Thank you

0 Likes

#7

Ok, this works. An overview about the active config would be nice to find cases like this.

0 Likes