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

Enhancement: Extending dial with support for conversions #32

Open
asmodeus812 opened this issue Aug 28, 2022 · 1 comment
Open

Enhancement: Extending dial with support for conversions #32

asmodeus812 opened this issue Aug 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@asmodeus812
Copy link

Hi, I was just exploring this great plugin, which does an amazing job at extending the base inc/dec features of vim, and i was reminded of a vim based plugin called vim-radical (https://github.com/glts/vim-radical) which allows the user to convert the underlying number under the cursor into another representation. To me that seems like an interesting idea. Can be useful for things like dates or time formats - converting from one date/time format to another, numbers - same idea as radical (convert decimal to hex, binary or octal etc). Or even allowing a custom conversion from one type to another, which can be defined by the user. It seems that dial already has the internal support to understand the text objects it works with anyway (dates, numbers etc.), is that a feasible improvement ?

@asmodeus812 asmodeus812 changed the title Extending dial with support for conversions Enhancement: Extending dial with support for conversions Aug 28, 2022
@monaqa monaqa added the enhancement New feature or request label Aug 28, 2022
@matu3ba
Copy link

matu3ba commented Sep 7, 2022

I disagree and think that it is better to keep the plugin minimal and use established cli tools instead.

  • Nevertheless, there should be support for selection of a complete number as it should be part of the parsing code anyway.
  • Linking a good or multiple tools to either 1. do the conversion within neovim with some lua plugin or 2. suggest possible cli tools sounds like good things to do.
  • You could even support only parsing as a function for doing stuff with external cli tooling

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

No branches or pull requests

3 participants