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 c9d9cff9d9d8176b7c9abd43a3679b92b5b9a03e

Sync commit (source not compilable).
Author: Martin Dvorak
Author date (UTC): 2014-04-04 20:54
Committer name: Martin Dvorak
Committer date (UTC): 2014-04-04 20:54
Parent(s): 5b35bbf2c044bfdb0a0755dbc2497a354fa0af5d
Signing key:
Tree: 735e4711b21263383af1ffe1e12f093837c2ead9
File Lines added Lines deleted
src/hstr.c 24 7
File src/hstr.c changed (mode: 100644) (index 617c096..946df91)
... ... void highlight_selection(int selectionCursorPosition, int previousSelectionCurso
403 403
404 404 void selection_remove(char *cmd, HistoryItems *history) void selection_remove(char *cmd, HistoryItems *history)
405 405 { {
406 if(history->count) {
407 int i, w;
408 for(i=0, w=0; i<history->count; i++) {
409 if(strcmp(history->items[i], cmd)) {
410 history->items[w]=history->items[i];
411 w++;
406 if(historyView==HH_VIEW_FAVORITES) {
407 if(history->favorites->count) {
408
409 selection must be remade & shown OR move the favorites remove code to here
410
411 int i, w;
412 for(i=0, w=0; i<history->count; i++) {
413 if(strcmp(history->items[i], cmd)) {
414 history->items[w]=history->items[i];
415 w++;
416 }
417 }
418 history->count=w;
419
420 }
421 } else {
422 if(history->count) {
423 int i, w;
424 for(i=0, w=0; i<history->count; i++) {
425 if(strcmp(history->items[i], cmd)) {
426 history->items[w]=history->items[i];
427 w++;
428 }
412 429 } }
430 history->count=w;
413 431 } }
414 history->count=w;
415 432 } }
416 433 } }
417 434
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