-
-
Notifications
You must be signed in to change notification settings - Fork 279
feat(status): add hint #225
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
Conversation
I think this is a great idea, but could there also be a preference to disable it? |
@wongjiahau like @bronzehedwick said can you please add a config property? |
@TimUntersberger Sure! I'll try to get this done by today |
@@ -104,6 +104,7 @@ local neogit = require("neogit") | |||
|
|||
neogit.setup { | |||
disable_signs = false, | |||
disable_hint = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It matches the options, but wouldn't it be better to have them other way around? Maybe something like:
neogit.setup {
display = {
signs = true,
hint = true,
context_highlighting = true,
commit_confirmation = true,
},
}
I know it's breaking change, but simplifies things in my opinion. What do you think @TimUntersberger? (most likely not part of that PR though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gegoune That's actually more readable, but then these properties might not be easily searchable, which is part of the reason why I can find the relevant files quickly, say by searching for disable_signs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gegoune I think grouping these together into a common subtable wouldn't be a bad idea, but I am not sure what to call it yet. Can you open a seperate issue for this?
LGTM! Thank you! |
@TimUntersberger Thanks! |
Preface
As a beginner I feel that it would be convenient to have the common keymap displayed all the time, otherwise I have to keep looking at the help file until I can memorize them.
Screenshots