Skip to content

Conversation

@pknowles
Copy link

I'm hoping some of this addresses the issues with the config parsing from my previous patch.

I'm not sure that I like the status-in-prompt idea I've tried (making it more similar to the regular bash ctrl-r), but there's a few other things that patch also cleans up. It might be good to split the minimal option into two.

Let me know what you think.

pknowles added 3 commits June 18, 2017 19:08
valgrind still detects some from readline's history and ncurses, but this may be expected behavior
some flags in HH_CONFIG should override others. this restores what was broken in a previous patch.
changes the minimal config to place the status in the prompt line

defaults to highlight first match

minor code cleanup
if (patternChanged) {
patternChanged = false;
if (hstr->selectionSize > 0) {
selectionCursorPosition=0;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After using this I think highlight selection should include the matching part of the pattern too.

#define HH_VIEW_RANKING 0
#define HH_VIEW_HISTORY 1
#define HH_VIEW_FAVORITES 2
#define HH_VIEW_FAVORITES 1
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strings in HH_VIEW_LABELS etc need to be updated to reflect these values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant