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

Proof of concept for running command in visual mode #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

biozz
Copy link
Owner

@biozz biozz commented Jan 18, 2024

This is a proof of concept to resolve #1.

  • It is not so pretty, but it works on multiple lines with :Whop command
  • It doesn't work on a range inside one line
  • It doesn't work after selecting a command via vim.ui.select and Telescope

And there is also a caveat that currently commands are define with % prefix, which has to be substituted with <,'>, that's why I am thinking about changing the API to make % in the beginning of the text command optional.

Please leave a comment what do you think about this POC, thank you.

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

Successfully merging this pull request may close these issues.

Running commands on visual selection
1 participant