Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge of pknowles 201706 #222

Open
wants to merge 3 commits into
base: merge-of-pknowles-201706
Choose a base branch
from

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.

@@ -120,12 +121,12 @@
#define HH_DEBUG_LEVEL_DEBUG 2

#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