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

Wrap selection (aka regions) #15

Open
daleeidd opened this issue Mar 2, 2019 · 4 comments
Open

Wrap selection (aka regions) #15

daleeidd opened this issue Mar 2, 2019 · 4 comments

Comments

@daleeidd
Copy link

daleeidd commented Mar 2, 2019

What happens currently:
pisces selection

What should happen is the selection (grey) being wrapped with quotes.

Thank you for the great package!

@laughedelic
Copy link
Owner

Hi @daleeidd! I'm not using visual vim mode in fish, so I haven't notice it, but you are right, this is a great idea.

Do you have any ideas for the implementation? How do you get the information about selected region?

@daleeidd
Copy link
Author

I am using selected regions in default mode. I have it so that the command line behaves like any text editor using familiar macOS bindings. I forgot that working with selected regions (at least in default mode) requires custom logic and state since none of the required input functions (kill-selection and yank) behave as expected when used together with commandline --insert.

Apologies for the inconvenience.

@daleeidd
Copy link
Author

I have started working on a library which will make handling selected regions in default mode possible. I'll post it here once I am done, and we will see if it is still a feature suitable to add to this package.

@laughedelic
Copy link
Owner

@daleeidd nice! It would be really cool if you could implement it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants