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

Indicate type-to-nav mode with symbol F #1937

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

amalgame21
Copy link
Contributor

@amalgame21 amalgame21 commented Sep 22, 2024

Notify the user the current context menu is in type-to-nav mode with symbol N after pressing ESC in type-to-nav mode.
After pressing ^N, the symbol N disappear, indicate it is no longer in type-to-nav mode.

Feel free to reject it if it does not match nnn's design.

src/nnn.c Show resolved Hide resolved
src/nnn.c Outdated Show resolved Hide resolved
@amalgame21 amalgame21 changed the title Indicate type-to-nav mode with symbol N Indicate type-to-nav mode with symbol F Sep 24, 2024
@jarun jarun merged commit 2bb76a0 into jarun:master Sep 24, 2024
6 of 7 checks passed
@jarun
Copy link
Owner

jarun commented Sep 24, 2024

Thank you!

@@ -3238,6 +3238,9 @@ static int getorderstr(char *sort)
{
int i = 0;

if (cfg.filtermode)
sort[i++] = 'F';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this the right place to add this though? This string is related to sorting, but type to nav mode isn't really related to sorting order.

Copy link
Owner

Choose a reason for hiding this comment

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

True but it's the smallest patch. :)

Copy link
Contributor Author

@amalgame21 amalgame21 Sep 24, 2024

Choose a reason for hiding this comment

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

Sorry I don't understand the code design very much and I just hacked it with my very very limited knowledge in C. If it is not the proper place to add this code and mess thing up please reverse it. Local patch is easy.

Copy link
Owner

@jarun jarun Sep 25, 2024

Choose a reason for hiding this comment

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

I have taken care of it. The code is better placed now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Really appreciated!!!

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.

3 participants