Replies: 1 comment 1 reply
-
I want a similar feature but for a different reason. Files can become large. I want to open the same file in multiple tabs (but in same buffer), so I can work on different sections of the code in different tabs. For example, In one tab I can write unit tests, in another I can edit the function I am testing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, you can add
:line_number
at the end of a file name to open it at a specific lineThe above opens
LICENSE
file at line 4.LICENSE:6:3
would open it at line 6, column 3.What if I want to open LICENSE file at line 4 and line 6 column 3, two buffers for the same file?
It won't work, Helix will just open one buffer for one of the inputs. What would be nice, if it instead opened a separate buffer for each. So the above command will open two buffers, one with the cursor at line 4 of LICENSE and the other with the cursor at line 6 of LICENSE.
This is going to be very useful in a lot of situations. For example, consider a tool like
cspell
which outputs in the following format:If only I could run a command like this, which I could compute from the above output:
Which would open 7 buffers, with cursor exactly at each line and column. Then I could do
gn
andgp
to cycle between the spelling errors and fix them. Thoughts?Beta Was this translation helpful? Give feedback.
All reactions