xaizek / hstr (License: Apachev2) (since 2018-12-07)
Bash and Zsh shell history suggest box - easily view, navigate, search and manage your command history.
Commit fec24970311deff098819b481601857fdc0ab343

Exit and do nothing on ESC.
Author: Martin Dvorak
Author date (UTC): 2014-01-18 20:50
Committer name: Martin Dvorak
Committer date (UTC): 2014-01-18 20:50
Parent(s): e969b56700a0eb93fbd0f2770b386abd66033e60
Signing key:
Tree: be7433ed868b6cf50dca30b152ddd80a1990ec17
File Lines added Lines deleted
src/hstr.c 2 2
File src/hstr.c changed (mode: 100644) (index 1e9a1e9..1e036fe)
47 47 #define K_TAB 9 #define K_TAB 9
48 48
49 49 #define K_ENTER 10 #define K_ENTER 10
50 #define K_ALT 27
50 #define K_ESC 27
51 51
52 #define DEBUG_KEYS
53 52 #ifdef DEBUG_KEYS #ifdef DEBUG_KEYS
54 53 #define LOGKEYS(Y,KEY) mvprintw(Y, 0, "Key: '%3d' / Char: '%c'", KEY, KEY); clrtoeol() #define LOGKEYS(Y,KEY) mvprintw(Y, 0, "Key: '%3d' / Char: '%c'", KEY, KEY); clrtoeol()
55 54 #else #else
 
... ... char *selection_loop(HistoryItems *history)
461 460 done = TRUE; done = TRUE;
462 461 break; break;
463 462 case K_CTRL_G: case K_CTRL_G:
463 case K_ESC:
464 464 result=""; result="";
465 465 history_clear_dirty(); history_clear_dirty();
466 466 done=TRUE; done=TRUE;
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/hstr

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/hstr

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master