Sublime Forum

Prevent "draw_white_space" from affecting search-and-replace fields

#1

I have this line in my Sublime Text settings:

"draw_white_space": ["leading_mixed", "trailing_mixed", "isolated_mixed"],

In files, it works fine. But if I want to search for " bar" (without quotes), it will be rendered in search field as "••bar". Is there an easy way to fix it?

0 Likes

#2

To disable it in all input panels, create a Packages/User/Widget.sublime-settings and add the config you want.

e.g.:

{
    "draw_white_space":  ["selection"],
}

1 Like

#3

Thanks, will try it today. So there is no combination of ‘draw white space’ values in the general settings file?

0 Likes

#4

Input fields and output panels are a kind of edit controls sharing same set of settings using a defined loading order (see https://www.sublimetext.com/docs/settings.html#settings-files).

Hence Input fields use the value from Preferences by default if not overridden by higher priority settings. Widget.sublime-settings is such an override targetting input fields.

Hence additional values in Preferences would be redundant and not work well with given settings file architecture.

In general ST’s settings are designed to use dedicated files instead of having hundreds of million settings in a single file.

2 Likes

#5

I would friendly argue that maintaing a file with e.g. 100 lines, which is accessible from the menu, is much easier than to maintain 4 different files with 25 lines each, and especially if only a single one of them is accessible from the menu. Granularity is good when it is in moderation.

Anyway, thanks.

0 Likes