summaryrefslogtreecommitdiff
path: root/src/tui/tcell_test.go
AgeCommit message (Collapse)Author
2025-09-05Add keybindings for CTRL, ALT, SHIFT + UP, DOWN, RIGHT, LEFT, HOME, END, ↵Massimo Mund
BACKSPACE, DELETE & more (#3996) * Added tests for `LightRenderer` * Added common SHIFT, ALT and ALT+SHIFT key sequences * Added common CTRL key sequences * Added common CTRL+ALT, CTRL+SHIFT, CTRL+ALT+SHIFT key sequences * Added proper xterm META modifier handling according to https://github.com/joejulian/xterm/blob/defc6dd5684a12dc8e56cb6973ef973e7a32caa3/input.c#L357-L375 * Fix `ctrl-backspace` and `ctrl-alt-backspace` * Fix broken tcell tests on windows by swallowing Resize events * Added tests for FullscreenRenderer * Removed own fork of tcell and updated tcell to 2.9.0 tcell 2.9.0 is needed for `Ctrl-Alt-*` and `Ctrl-Alt-Shift-*` shortcuts in Windows * Replace conditional checks with switch statements to improve readability * Replace long conditionals with constant slices to improve readability * Bind `ctrl-bspace` (`ctrl-h`) to `backward-delete-char` by default Since we now distinguish between Backspace and Ctrl-Backspace, Ctrl-Backspace should trigger the same action as Backspace by default. In that way nothing changes for the user but you can bind other actions to Ctrl-Backspace when desired.
2025-03-11Change 'interface{}' to 'any' (#4308)Gabriel Marin
2025-02-02FZF_KEY enhancementsJunegunn Choi
* 'enter' instead of 'ctrl-m' * 'space' instead of ' '
2024-05-23execute: Open separate handles to /dev/tty (in, out, err)Junegunn Choi
# This will no longer cause 'Vim: Warning: Output is not to a terminal' fzf --bind 'enter:execute:vim {}' > /tmp/foo
2024-04-13Fix tcell buildJunegunn Choi
2024-02-010.46.1Junegunn Choi
2022-08-26Add support for ANSI strike-through (#2932)Emil Vanherp
Close #2932 Co-authored-by: Emil Vanherp <emil@vanherp.me>
2022-03-29Modernize build tagsJunegunn Choi
2021-10-03Fix Backspace key to emit BSpace and AltBS events instead of CtrlHVlastimil Ovčáčík
CtrlH events are still sent when appropriate. I have adjusted FullscreenRenderer to match the LightRenderer's behaviour, which seems to be correct.
2021-10-03Add CtrlCaret keyboard event to FullscreenRendererVlastimil Ovčáčík
2021-10-03Fix Ctrl+Space key combination to emit CtrlSpace instead of Rune ' 'Vlastimil Ovčáčík
2021-10-03Add ability to type AltGr characters in FullscreenRenderer on Windows.Vlastimil Ovčáčík
2021-10-03[tests] Add testing of keyboard events in FullscreenRenderer.GetChar()Vlastimil Ovčáčík
This contains one test case of each tcell.Key* event type that can be sent to and subsequently processed in fzf's GetChar(). The test cases describe status quo, and all of them PASS. Small function util.ToTty() was added. It is similar to util.IsTty(), but for stdout (hence the To preposition).