Sublime Forum

How to hide the find box

#1

Hi,

I just started using sublime and it is such a joy.

Is there a way to hide the find box once its out? Particularly in distraction-free mode it would be nice to do some finding and then stow it away again.

Many thanks,
Colin

0 Likes

#2

esc

0 Likes

#3

Thanks!

0 Likes

#4

I often have issues with the Find box. For example, if you do the following:

Find
Type something
Hit Command+D a few times to select the multiples
How do you get rid of the Find box, hit Esc? Nope, hit Find again, then Esc.

I guess it depends on whether you consider the Command+D part of the finding action or not. If not, shouldn’t it be hidden automatically (if you’re done with Finding). If it is, then shouldn’t Esc close it.

Always just feels a little clunky to me…

0 Likes

#5

[quote=“andyjeffries”]I often have issues with the Find box. For example, if you do the following:

Find
Type something
Hit Command+D a few times to select the multiples
How do you get rid of the Find box, hit Esc? Nope, hit Find again, then Esc.

I guess it depends on whether you consider the Command+D part of the finding action or not. If not, shouldn’t it be hidden automatically (if you’re done with Finding). If it is, then shouldn’t Esc close it.

Always just feels a little clunky to me…[/quote]

This should be solvable via keybinding contexts. Maybe something like this:

{
    "keys": "escape"], "command": "hide_panel",
        "context": 
            { "key": "panel_visible", "operator": "equal", "operand": true },
            { "key": "selection_empty", "operand": false }
        ]
}
0 Likes