Remove 'n' and 'N' search inc/dec keybinds

This commit is contained in:
Jake Mannens 2020-12-24 03:24:15 +11:00
parent 0672be7db1
commit f46ddd3230
3 changed files with 0 additions and 24 deletions

View File

@ -250,16 +250,6 @@ static Htop_Reaction actionIncSearch(State* st) {
return HTOP_REFRESH | HTOP_KEEP_FOLLOWING; return HTOP_REFRESH | HTOP_KEEP_FOLLOWING;
} }
static Htop_Reaction actionIncNext(State* st) {
IncSet_next(((MainPanel*)st->panel)->inc, INC_SEARCH, st->panel, (IncMode_GetPanelValue) MainPanel_getValue);
return HTOP_REFRESH | HTOP_KEEP_FOLLOWING;
}
static Htop_Reaction actionIncPrev(State* st) {
IncSet_prev(((MainPanel*)st->panel)->inc, INC_SEARCH, st->panel, (IncMode_GetPanelValue) MainPanel_getValue);
return HTOP_REFRESH | HTOP_KEEP_FOLLOWING;
}
static Htop_Reaction actionHigherPriority(State* st) { static Htop_Reaction actionHigherPriority(State* st) {
bool changed = changePriority((MainPanel*)st->panel, -1); bool changed = changePriority((MainPanel*)st->panel, -1);
return changed ? HTOP_REFRESH : HTOP_OK; return changed ? HTOP_REFRESH : HTOP_OK;
@ -655,7 +645,6 @@ void Action_setBindings(Htop_Action* keys) {
keys['I'] = actionInvertSortOrder; keys['I'] = actionInvertSortOrder;
keys['K'] = actionToggleKernelThreads; keys['K'] = actionToggleKernelThreads;
keys['M'] = actionSortByMemory; keys['M'] = actionSortByMemory;
keys['N'] = actionIncPrev;
keys['P'] = actionSortByCPU; keys['P'] = actionSortByCPU;
keys['S'] = actionSetup; keys['S'] = actionSetup;
keys['T'] = actionSortByTime; keys['T'] = actionSortByTime;
@ -673,7 +662,6 @@ void Action_setBindings(Htop_Action* keys) {
keys['k'] = actionKill; keys['k'] = actionKill;
keys['l'] = actionLsof; keys['l'] = actionLsof;
keys['m'] = actionToggleMergedCommand; keys['m'] = actionToggleMergedCommand;
keys['n'] = actionIncNext;
keys['p'] = actionToggleProgramPath; keys['p'] = actionToggleProgramPath;
keys['q'] = actionQuit; keys['q'] = actionQuit;
keys['s'] = actionStrace; keys['s'] = actionStrace;

View File

@ -133,14 +133,6 @@ static bool IncMode_find(IncMode* mode, Panel* panel, IncMode_GetPanelValue getP
} }
} }
bool IncSet_next(IncSet* this, IncType type, Panel* panel, IncMode_GetPanelValue getPanelValue) {
return IncMode_find(&this->modes[type], panel, getPanelValue, 1);
}
bool IncSet_prev(IncSet* this, IncType type, Panel* panel, IncMode_GetPanelValue getPanelValue) {
return IncMode_find(&this->modes[type], panel, getPanelValue, -1);
}
bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue getPanelValue, Vector* lines) { bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue getPanelValue, Vector* lines) {
if (ch == ERR) if (ch == ERR)
return true; return true;

View File

@ -48,10 +48,6 @@ IncSet* IncSet_new(FunctionBar* bar);
void IncSet_delete(IncSet* this); void IncSet_delete(IncSet* this);
bool IncSet_next(IncSet* this, IncType type, Panel* panel, IncMode_GetPanelValue getPanelValue);
bool IncSet_prev(IncSet* this, IncType type, Panel* panel, IncMode_GetPanelValue getPanelValue);
bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue getPanelValue, Vector* lines); bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue getPanelValue, Vector* lines);
const char* IncSet_getListItemValue(Panel* panel, int i); const char* IncSet_getListItemValue(Panel* panel, int i);