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

feat(#13): add :Freeze ... complete behaviour #15

Conversation

AlejandroSuero
Copy link
Contributor

As mention, this will allow to have completion to tweak freeze options/flags from the vim cmdline:

Usage:

  • :Freeze your completion trigger (usually <Tab>) and select one.
    • Once selected, append = and the desired value, eg. :Freeze language=txt will translate to --language=txt.

Demo with complete options (only language implemented):

complete-behaviour-demo.mp4

Note

I showcase also the problem mentioned that vim.bo.ft won't always work or cases where freeze has no filetype support.


TODO:

  • Parse options like boolean and table so it can be validated.
  • Validate options once the arguments are passed.
  • Implement all the options.

Copy link
Member

@isabelroses isabelroses left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work. Thank you very much.

@isabelroses isabelroses merged commit 3b28674 into charm-and-friends:main Sep 6, 2024
3 checks passed
@AlejandroSuero AlejandroSuero deleted the feature/complete-command-behaviour branch September 6, 2024 14:22
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.

2 participants