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 1702f35c034232a9c3ac6c8eb7978e474c6bb4ba

Fixing the call of function with parameter that is not needed (openSUSE fix).
Author: Martin Dvorak
Author date (UTC): 2014-05-05 19:28
Committer name: Martin Dvorak
Committer date (UTC): 2014-05-05 19:28
Parent(s): f3ca5a46d5796113061f25981b8de3a73605c3df
Signing key:
Tree: ffc74482440ea6beb7c259aa2e7892c1dc026957
File Lines added Lines deleted
src/hstr.c 3 3
tests/src/test_regexp.c 2 0
File src/hstr.c changed (mode: 100644) (index dfa2928..e724a91)
... ... char *hstr_print_selection(unsigned maxHistoryItems, char *pattern, Hstr *hstr)
554 554 result=hstr->selection[0]; result=hstr->selection[0];
555 555 } }
556 556
557 int height=get_max_history_items(stdscr);
557 int height=get_max_history_items();
558 558 int width=getmaxx(stdscr); int width=getmaxx(stdscr);
559 559 unsigned i; unsigned i;
560 560 int y=Y_OFFSET_ITEMS; int y=Y_OFFSET_ITEMS;
 
... ... void loop_to_select(Hstr *hstr)
698 698 print_help_label(); print_help_label();
699 699 print_history_label(hstr); print_history_label(hstr);
700 700 // TODO why do I print non-filtered selection when on command line there is a pattern? // TODO why do I print non-filtered selection when on command line there is a pattern?
701 hstr_print_selection(get_max_history_items(stdscr), NULL, hstr);
701 hstr_print_selection(get_max_history_items(), NULL, hstr);
702 702 color_attr_off(COLOR_PAIR(HH_COLOR_NORMAL)); color_attr_off(COLOR_PAIR(HH_COLOR_NORMAL));
703 703
704 704 bool done=FALSE, skip=TRUE, executeResult=FALSE, lowercase=TRUE, printDefaultLabel=FALSE; bool done=FALSE, skip=TRUE, executeResult=FALSE, lowercase=TRUE, printDefaultLabel=FALSE;
 
... ... void loop_to_select(Hstr *hstr)
714 714 // TODO overflow // TODO overflow
715 715 strcpy(pattern, hstr->cmdline); strcpy(pattern, hstr->cmdline);
716 716 while (!done) { while (!done) {
717 maxHistoryItems=get_max_history_items(stdscr);
717 maxHistoryItems=get_max_history_items();
718 718
719 719 if(!skip) { if(!skip) {
720 720 c = wgetch(stdscr); c = wgetch(stdscr);
File tests/src/test_regexp.c changed (mode: 100644) (index 11a2f88..06982df)
... ... void main() {
39 39 printf("\n* %d %d",matchPtr[i].rm_so,matchPtr[i].rm_eo); printf("\n* %d %d",matchPtr[i].rm_so,matchPtr[i].rm_eo);
40 40 } }
41 41 } }
42 } else {
43 regerror(matchingStatus);
42 44 } }
43 45
44 46 printf("\n"); printf("\n");
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