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

show linenumber when in SEL_JUMP #1804

Closed
wants to merge 1 commit into from
Closed

Conversation

Darukutsu
Copy link
Contributor

Related discussion.
I reworked my previous answer a bit. I think this should be part of nnn, since it's (IMO) hard to manually count down. Or at least include as native patch.

We could also show relative/absolute linenumber always(with minor tweaks), but that doesn't seem to be useful in any way yet.

linenumber

@jarun
Copy link
Owner

jarun commented Feb 2, 2024

Can you test this will very long filenames?

Also, what is the keybind to show the relative numbers?

@@ -306,6 +306,7 @@ typedef struct entry {
uid_t uid; /* 4 bytes */
gid_t gid; /* 4 bytes */
#endif
int ncount;
Copy link
Owner

Choose a reason for hiding this comment

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

This increases memory usage per file. Why do we need to store this and not calculate on the fly?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Simpler approach in #1808 which doesn't require storing counts.

Copy link
Owner

Choose a reason for hiding this comment

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

Already merged.

N-R-K added a commit to N-R-K/nnn that referenced this pull request Feb 3, 2024
Co-authored-by: Darukutsu <darupeter@pm.me>
Closes: jarun#1804
Closes: jarun#1708
N-R-K added a commit to N-R-K/nnn that referenced this pull request Feb 3, 2024
Co-authored-by: Darukutsu <darupeter@pm.me>
Closes: jarun#1804
Closes: jarun#1708
N-R-K added a commit to N-R-K/nnn that referenced this pull request Feb 3, 2024
Co-authored-by: Darukutsu <darupeter@pm.me>
Closes: jarun#1804
Closes: jarun#1708
@jarun jarun closed this in #1808 Feb 3, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Mar 5, 2024
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

3 participants