rpmohn / a4

dynamic terminal manager and multiplexer
https://a4term.com
MIT License
33 stars 4 forks source link

How to search the terminal? #2

Open MaxGyver83 opened 1 year ago

MaxGyver83 commented 1 year ago

The terminal emulator I use (st) doesn't provide a search function. This is supposed to be provided by a separate tool, for example a terminal multiplexer. And when somebody uses a terminal multiplexer, this makes sense, because the terminal emulator can't know which terminal/window/pane is to be searched.

Even when I use a terminal emulator that supports searching the terminal (Alacritty), its search function can't find text in an a4 buffer that's out of the current viewport.

I couldn't find a search function in a4. Does it exist? If not, do you plan to add it? If you don't want to add it: Is there another way to search the terminal?

I'm aware that I could pipe a command output to less and then use its search function but often I don't know beforehand that I'm going to search something and running the same command again with less is often overkill (like for a long running build process).

Another solution could be to allow opening a terminal buffer in the an editor (p.e. $EDITOR), like capture-pane + save-buffer in tmux. What do you think?

rpmohn commented 1 year ago

Access to the terminal window buffers is on the list to be implemented next. Haven't settled on the implementation yet. Likely will use $EDITOR and be configurable in a4.ini file.

MaxGyver83 commented 1 year ago

Sounds good!