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

Shortcut for MD5? #16

Closed
ChR-iSz opened this issue Sep 22, 2023 · 1 comment
Closed

Shortcut for MD5? #16

ChR-iSz opened this issue Sep 22, 2023 · 1 comment

Comments

@ChR-iSz
Copy link

ChR-iSz commented Sep 22, 2023

It is possible to create a shortcut to replace String with your MD5 function ?

@luisfontes19
Copy link
Owner

Hey @ChR-iSz

Im not sure if I understand what you need...

You want to find a specific string and replace all occurrences of it with an md5 digest for them?

If thats the case thats already possible... Select the string what you and press ctrl+shift+l (or cmd+shift+l on a mac), this will allow you to edit all occurrences of that word at once. Then just invoke the swissknife command palette and select the MD5 script.

If you just want to MD5 a specific word just select that work and run the MD5 script from swissknife.

Have in mind that by default swissknife will apply a script to the entire editor's content if no text is selected, but in case the text is selected it will only apply to that text, and if you have multi selection with multi cursors it will apply that script to all the selections at once

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
@luisfontes19 @ChR-iSz and others