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

hex / bases decode #182

Open
elig0n opened this issue Jun 5, 2019 · 2 comments
Open

hex / bases decode #182

elig0n opened this issue Jun 5, 2019 · 2 comments

Comments

@elig0n
Copy link

elig0n commented Jun 5, 2019

Would love to see [h & ]h (or similar) for hex encode & decode and even other bases.

@tpope
Copy link
Owner

tpope commented Jun 5, 2019

The limitation here is we're running low on maps. ]h isn't great because the linewise map would be ]hh, which is ambiguous with "decode one character to the left".

@doubledup
Copy link

It's pretty clunky, but I ended up using numbers, like ]2, ]6 and ]8 for base 2, 16 and 8 conversions. Also set up ]4 for base64. Are these maps acceptable?

If so I'm happy to open a PR for them. Used some external commands for the conversions, so I'm not sure about portability but I think I stuck to generally available commands.

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

3 participants