Emoji-Log-VSCode icon indicating copy to clipboard operation
Emoji-Log-VSCode copied to clipboard

The cursor should be after the predefined subject

Open rehan-sattar opened this issue 6 years ago • 3 comments

If we create a new commit message then the cursor should be after the predefined commit subject (FEAT, FIX, IMPROVE etc). For now, the cursor is at the start of text field whenever we create new message. Current behavior: image

Expected (little bit better experience): image

PS: YOU'VE SAVED MY TIME BY MAKING THIS EXTENSION. TONS OF THANKS!!

rehan-sattar avatar Apr 15 '20 21:04 rehan-sattar

@ahmadawais I was about to ask the same, let me know if you need some help with this or gave it a try. I'm not totally sure if we can control the cursor or the focus on VSCode, but surely we can do some hack.

lndgalante avatar Apr 17 '20 20:04 lndgalante

True that. I couldn't find an API to move the cursor to the end. If you can I'm accepting PRs.

P.S. there's no FEAT in Emoji-Log. NEW works for anytime you add something new.

ahmadawais avatar Apr 18 '20 00:04 ahmadawais

I was looking for this cursor behavior. Currently I just use the SCM shortcut so I don't need to reach my mouse after executing the Emoji-Log. My flow currently like this (I'm on Windows):

  1. Ctrl + Shift + p
  2. look for Emoji-Log
  3. Run one of the command
  4. Ctrl + Shift + g
  5. Repeat Ctrl + Shift + g if the cursor is not in the end of text

In my environment this flow currently work. I'm not sure if this can be programmatically done to set the cursor (as a hack of course 😅)

indralukmana avatar Jun 18 '20 03:06 indralukmana