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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/nnn.c
Original file line number Diff line number Diff line change
Expand Up @@ -3238,6 +3238,9 @@ static int getorderstr(char *sort)
{
int i = 0;

if (cfg.filtermode)
jarun marked this conversation as resolved.
Show resolved Hide resolved
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!!!


if (cfg.showhidden)
sort[i++] = 'H';

Expand Down
Loading