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

[Feature request] Make it easily extensible #5

Open
amelio-vazquez-reina opened this issue Dec 14, 2019 · 1 comment
Open

[Feature request] Make it easily extensible #5

amelio-vazquez-reina opened this issue Dec 14, 2019 · 1 comment
Labels
feature request New feature or request

Comments

@amelio-vazquez-reina
Copy link

This is a cool extension. I have been looking for something like it here: Using Python or TypeScript to transform text that I select in VSCode.

Looking at the source code, it looks like the extension currently only supports a fixed, pre-defined set of string transformations and commands. How difficult would it be to make it extensible?

For example, let's say that I want to define my own string functions:

function add_space_around_text(selected_text) {
    return "  " + selected_text + "  ";
}

and I'd like to register a command ID of my choice with that function (via settings, i.e. without having to re-install the extension, that is)

IMHO - That could make the extension more extensible and even more powerful.

What do you think?

@qcz
Copy link
Owner

qcz commented Dec 19, 2019

I think it will be possible. I'll look into how it can be implemented. Thanks for the suggestion!

@qcz qcz added the feature request New feature or request label Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants