Skip to content

Insert text at cursor via custom command #205

Answered by astoilkov
ole asked this question in Questions
Discussion options

You must be logged in to vote

I sort of expected the output of my command to stdout to be inserted at the cursor position, but that doesn't seem to be happening.

You are not the first to expect that behavior. I'm currently working on writing better docs for the extensibility and in parallel on extensibility improvements. I will try to implement this as it makes a lot of sense. Will keep you posted.

I know the command can receive the current file path, but (a) rewriting the file by hand is complicated and (b) the command doesn't know the current cursor position (or selection range).

I agree, this will be more complicated. However, I will be a nice addition to support passing the selection.

I wanted to write a comm…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ole
Comment options

Answer selected by ole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants