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 64bdc7a849f1b0e83842db611a81543792eb9b77

Added format string to *print* commands and thus fixed #70.
Author: Martin Dvorak
Author date (UTC): 2014-04-11 21:59
Committer name: Martin Dvorak
Committer date (UTC): 2014-04-11 21:59
Parent(s): 22e5c37c20bab73f1234c7207973fe4824acbfb1
Signing key:
Tree: edce4a68048887fde7146402c7444aa27076140e
File Lines added Lines deleted
src/hstr.c 4 4
File src/hstr.c changed (mode: 100644) (index f20ab30..321b32b)
... ... int print_prompt()
161 161 void print_help_label() void print_help_label()
162 162 { {
163 163 snprintf(screenLine, getmaxx(stdscr), "%s", LABEL_HELP); snprintf(screenLine, getmaxx(stdscr), "%s", LABEL_HELP);
164 mvprintw(Y_OFFSET_HELP, 0, screenLine); clrtoeol();
164 mvprintw(Y_OFFSET_HELP, 0, "%s", screenLine); clrtoeol();
165 165 refresh(); refresh();
166 166 } }
167 167
 
... ... void print_cmd_deleted_label(char *cmd, int occurences)
172 172 color_attr_on(COLOR_PAIR(4)); color_attr_on(COLOR_PAIR(4));
173 173 color_attr_on(A_BOLD); color_attr_on(A_BOLD);
174 174 } }
175 mvprintw(Y_OFFSET_HELP, 0, screenLine);
175 mvprintw(Y_OFFSET_HELP, 0, "%s", screenLine);
176 176 if(hicolor) { if(hicolor) {
177 177 color_attr_off(A_BOLD); color_attr_off(A_BOLD);
178 178 color_attr_on(COLOR_PAIR(1)); color_attr_on(COLOR_PAIR(1));
 
... ... void print_history_label(HistoryItems *history)
198 198 color_attr_on(A_BOLD); color_attr_on(A_BOLD);
199 199 } }
200 200 color_attr_on(A_REVERSE); color_attr_on(A_REVERSE);
201 mvprintw(Y_OFFSET_HISTORY, 0, screenLine);
201 mvprintw(Y_OFFSET_HISTORY, 0, "%s", screenLine);
202 202 color_attr_off(A_REVERSE); color_attr_off(A_REVERSE);
203 203 if(hicolor) { if(hicolor) {
204 204 color_attr_off(A_BOLD); color_attr_off(A_BOLD);
 
... ... unsigned make_selection(char *prefix, HistoryItems *history, int maxSelectionCou
286 286 void print_selection_row(char *text, int y, int width, char *prefix) void print_selection_row(char *text, int y, int width, char *prefix)
287 287 { {
288 288 snprintf(screenLine, width, " %s", text); snprintf(screenLine, width, " %s", text);
289 mvprintw(y, 0, screenLine); clrtoeol();
289 mvprintw(y, 0, "%s", screenLine); clrtoeol();
290 290 if(prefix && strlen(prefix)>0) { if(prefix && strlen(prefix)>0) {
291 291 color_attr_on(A_BOLD); color_attr_on(A_BOLD);
292 292 char *p; char *p;
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