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 bd0d2f34d9eeb1c817bf8ecf58b8a809cbc68abb

Fixed case label and fixed #89 by moving cursor to prompt for every options.
Author: Martin Dvorak
Author date (UTC): 2014-04-27 06:01
Committer name: Martin Dvorak
Committer date (UTC): 2014-04-27 06:01
Parent(s): 55d07115bc86c530a4ca4e6157f7e1f49fc499ac
Signing key:
Tree: 8ca033e03d9b6f4c4b22f075aaba0ef374a17d50
File Lines added Lines deleted
src/hstr.c 13 2
File src/hstr.c changed (mode: 100644) (index 9ea2153..eb5183c)
... ... static const char *HH_MATCH_LABELS[]={
116 116 }; };
117 117
118 118 static const char *HH_CASE_LABELS[]={ static const char *HH_CASE_LABELS[]={
119 "sensitive",
120 "insensitive"
119 "insensitive",
120 "sensitive"
121 121 }; };
122 122
123 123 static const char *INSTALL_STRING= static const char *INSTALL_STRING=
 
... ... void loop_to_select(Hstr *hstr)
692 692 case K_CTRL_E: case K_CTRL_E:
693 693 hstr->historyMatch++; hstr->historyMatch++;
694 694 hstr->historyMatch=hstr->historyMatch%2; hstr->historyMatch=hstr->historyMatch%2;
695 // TODO make this a function
695 696 result=hstr_print_selection(maxHistoryItems, pattern, hstr); result=hstr_print_selection(maxHistoryItems, pattern, hstr);
696 697 print_history_label(hstr); print_history_label(hstr);
697 698 selectionCursorPosition=0; selectionCursorPosition=0;
699 if(strlen(pattern)<(width-basex-1)) {
700 print_prefix(pattern, y, basex);
701 cursorX=getcurx(stdscr);
702 cursorY=getcury(stdscr);
703 }
698 704 break; break;
699 705 case K_CTRL_T: case K_CTRL_T:
700 706 hstr->caseSensitive=!hstr->caseSensitive; hstr->caseSensitive=!hstr->caseSensitive;
 
... ... void loop_to_select(Hstr *hstr)
702 708 result=hstr_print_selection(maxHistoryItems, pattern, hstr); result=hstr_print_selection(maxHistoryItems, pattern, hstr);
703 709 print_history_label(hstr); print_history_label(hstr);
704 710 selectionCursorPosition=0; selectionCursorPosition=0;
711 if(strlen(pattern)<(width-basex-1)) {
712 print_prefix(pattern, y, basex);
713 cursorX=getcurx(stdscr);
714 cursorY=getcury(stdscr);
715 }
705 716 break; break;
706 717 case K_CTRL_SLASH: case K_CTRL_SLASH:
707 718 hstr_next_view(hstr); hstr_next_view(hstr);
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