snippet-generator icon indicating copy to clipboard operation
snippet-generator copied to clipboard

Feature request for Ctrl+i

Open PavelDvorak opened this issue 3 years ago • 1 comments

hello! thanks for the great generator!

few feature requests:

  1. After pressing ctrl+i while having a word "dataset" selected, the generated placeholder should be ${1:dataset} instead of ${1:example}. As of now, when i select "dataset" and press ctrl+i, it is replaced by ${1:example}
  2. The Ctrl+i placeholders should auto-increment, ie first press generates ${1:example}, unless it exists already, second press should generate ${2:example}, unless it exists already, etc

thanks, and take care!

PavelDvorak avatar Dec 07 '21 10:12 PavelDvorak

Hi, First feature is a good one to have. There are some open questions with the second one. There are cases where user want to actually have same caret location. Also, we are not sure where the caret locations are going to be. Ex: image

pranayrauthu avatar Mar 19 '22 06:03 pranayrauthu