alacritty icon indicating copy to clipboard operation
alacritty copied to clipboard

No history should be pulled after leaving search

Open chrisduerr opened this issue 5 years ago • 2 comments

When leaving the search while history is available without the prompt at the bottom, the search currently doesn't move the content when it is started, but after closing it the prompt is moved down and content is pulled from the history.

This is distracting and shouldn't happen. It would be fine to move the content up in backward search outside the alt screen and not pull it back down, but when just opening the search without pushing everything up, nothing should be pulled down.

chrisduerr avatar Feb 22 '21 21:02 chrisduerr

I'm not actually sure if we can easily solve this issue. It's been present ever since search has been implemented.

Generally our resize algorithm always pulls down content when the window size increases, which is what happens when the search is left. It might be possible to resolve this by never pulling from history when increasing window size, but that's generally what other terminals seem to be doing.

chrisduerr avatar Feb 25 '21 23:02 chrisduerr

I'm not actually sure if we can easily solve this issue. It's been present ever since search has been implemented.

Generally our resize algorithm always pulls down content when the window size increases, which is what happens when the search is left. It might be possible to resolve this by never pulling from history when increasing window size, but that's generally what other terminals seem to be doing.

Would it be somehow possible to create an option to disable this behavior? That being the pulling down of content when the window size increases.

It is especially distracting when manipulating alacritty windows, which happens somewhat often when one is using a window manager. Actions such as move/rotate/circulate windows around, resize, maximize, and toggling fullscreen on windows are quite frequent and often trigger this behavior.

duclos-cavalcanti avatar Mar 07 '21 22:03 duclos-cavalcanti