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

Add cmdline and runtime options to not move to next entry after select key #713

Merged
merged 1 commit into from Aug 29, 2020
Merged

Add cmdline and runtime options to not move to next entry after select key #713

merged 1 commit into from Aug 29, 2020

Conversation

FriendlyNeighborhoodShane
Copy link
Contributor

I just found it more intuitive to work with, understandable if you don't want to support this workflow in upstream. Also the keybinds maybe could be better, I feel, I wanted to have the same lowercase char for both cmdline and runtime but git grep -o "'.'" src/nnn.* | sed 's|.*:||g' | sort -u says none are left for grabs.

@FriendlyNeighborhoodShane
Copy link
Contributor Author

Typos fixed.

@jarun
Copy link
Owner

jarun commented Aug 27, 2020

We can't have a new keybind for this. If becomes unmanageable if everyone is looking for a keybind for minor behavioral aspects they don't like.

We can consider having the program option and you have to stick to a choice for the session.

What problem do you see with auto move on selection? Asking this because it was specifically added on a user request and I personally consider it a better user experience.

@FriendlyNeighborhoodShane
Copy link
Contributor Author

I'm okay with just an option.

Well, sometimes you're just moving up while selecting, or sometimes you're just carefully thinking about what all to select and it's a little jarring to the brain that you don't need a down key after space, only if you didn't select it.

Just silly little opinionated things, like all UI/UX stuff is :P

src/nnn.h Outdated Show resolved Hide resolved
src/nnn.h Outdated Show resolved Hide resolved
src/nnn.c Outdated Show resolved Hide resolved
src/nnn.c Outdated Show resolved Hide resolved
src/nnn.c Outdated Show resolved Hide resolved
nnn.1 Outdated Show resolved Hide resolved
src/nnn.c Outdated Show resolved Hide resolved
@jarun
Copy link
Owner

jarun commented Aug 28, 2020

I understand. Please take care of the review comments and update the PR.

@FriendlyNeighborhoodShane
Copy link
Contributor Author

@jarun Amended the first commit and dropped the second 👍

@@ -18,6 +18,7 @@
.Op Ar -F
.Op Ar -g
.Op Ar -H
.Op Ar -j
Copy link
Owner

Choose a reason for hiding this comment

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

Please make this capital J. So far I am using the capital to disable things.

@@ -7248,6 +7249,7 @@ static void usage(void)
" -F show fortune\n"
" -g regex filters [default: string]\n"
" -H show hidden files\n"
" -j disable auto-proceed on select"
Copy link
Owner

Choose a reason for hiding this comment

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

no auto-proceed on select

saves a few bytes.

@jarun jarun merged commit 4b3c8d2 into jarun:master Aug 29, 2020
@jarun
Copy link
Owner

jarun commented Aug 29, 2020

Thank you! I'll make the rest of the changes.

@FriendlyNeighborhoodShane
Copy link
Contributor Author

Thanks! Really love all the work put into this project!

@jarun
Copy link
Owner

jarun commented Aug 30, 2020

Me too! ;)

@@ -314,6 +314,7 @@ typedef struct {
uint selmode : 1; /* Set when selecting files */
uint oldcolor : 1; /* Show dirs in context colors */
uint reserved : 14;
Copy link
Owner

Choose a reason for hiding this comment

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

@FriendlyNeighborhoodShane we should have made the reserved field 13 bits in width. We both missed this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops. haha. Thanks for informing me about this, didn't even realise that was futureproof padding at the end of the struct.

I'm no C veteran, but I think both experienced and new hackers would benefit from a comment explicitly stating its purpose there.

Copy link
Owner

Choose a reason for hiding this comment

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

Yes. we should have a comment.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants