Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Search in cygwin window buffer of Mintty

Tags:

cygwin

mintty

How to do a text search into a cygwin window buffer ? Is there a way to make the same kind of text seach as in Windows console buffer (right-click > search) ?

(I use mintty)

like image 934
Philippe Blayo Avatar asked Jun 24 '13 09:06

Philippe Blayo


2 Answers

In mintty, you can do that using the sequence Alt+F3.

More information in the mintty man page

Searching in the text and scrollback buffer

Alt-F3 opens a search bar with an input field for a search string. Matches are highlighted in the scrollback buffer. Enter/Shift+Enter find the next/previous position of the match and scrolls the scrollback buffer accordingly. The appearance of the search bar and the matching highlight colours can be customized.

Beware this sequence is very close to the infamous windows sequence that closes a window. (which uses F4)

Alternatively, you can enable the Ctrl+Shift+H shortcut by going into the options pane of mintty and enabling Ctrl+Shift+letters shortcuts in the Key section of the options.

You access the options pane by right-clicking the mintty icon of the mintty window (upper left corner)

like image 189
fjardon Avatar answered Sep 18 '22 14:09

fjardon


There's no such function currently. The closest alternative is to 'Select All' (followed by 'Copy' if you've disabled copy-on-select), paste into a text editor, and search there.

like image 31
ak2 Avatar answered Sep 22 '22 14:09

ak2