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

Command line argument to open split #2709

Closed
kaleidawave opened this issue Jun 8, 2022 · 4 comments
Closed

Command line argument to open split #2709

kaleidawave opened this issue Jun 8, 2022 · 4 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements

Comments

@kaleidawave
Copy link

Describe your feature request

Currently running hx file1.txt file2.txt will open helix with file1.txt present and file2.txt in the buffers

It would be cool if there was a command line option passed in as --split which would open the files in a split view.

One difficulty would be the direction to split. Should helix pick a layout or should the user specify how the views should be split?

@kaleidawave kaleidawave added the C-enhancement Category: Improvements label Jun 8, 2022
@the-mikedavis the-mikedavis added the A-helix-term Area: Helix term improvements label Jun 8, 2022
@snowmang1
Copy link

I would like to work on this but I am unsure of where to begin. I have been looking around in the helix-term dir where the call to "hsplit" is made on line 467 and trying to trace back to what is actually going on. I have become lost and possibly have an incorrect understanding of what is actually happening under the hood of helix.

@sven-hluchy
Copy link
Contributor

What about passing in either --vsplit or --hsplit as an argument, in order to tell the program in what way to open the listed files? So, if the user were to pass in --vsplit, for instance, all listed files would be opened vertically next to each other. Of course we would have to handle the case that the user passes in both arguments at the same time, but that wouldn't be too difficult.

@kaleidawave
Copy link
Author

Yes this sounds good. And --vsplit and --hsplit would be mutually exclusive

@pascalkuthe
Copy link
Member

Closed by #2773

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
Development

No branches or pull requests

5 participants