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

Accept +num flag for opening at line number #5437

Closed
diktomat opened this issue Jan 7, 2023 · 1 comment · Fixed by #8521
Closed

Accept +num flag for opening at line number #5437

diktomat opened this issue Jan 7, 2023 · 1 comment · Fixed by #8521
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@diktomat
Copy link
Contributor

diktomat commented Jan 7, 2023

Lots of editors (including the heavyweights Vim and Emacs) accept a +num flag for opening a file at the line number specified by num. I know Helix can do this by appending :num to the file name, but both muscle memory and other applications (like the v command in less) rely on the plus syntax, so I suggest just adding it as a second option.

@Paul-J-Barrett
Copy link

Paul-J-Barrett commented Jun 3, 2023

Note in helix the +number opens another buffer. I put bufferline="multiple" to see what was gong on. There was two buffers +11 and Cargo.toml the file I was viewing with less. Also of course the Cargo.toml was in the second buffer so it was not visible by default and I was looking at empty file for +11.

Also of note is that + by itself is to open file and place cursor on last line of file.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements
Projects
None yet
3 participants