Execute and combine two+ commands with only a keystroke?


#1

Hi…would be cool combine commands inside the keymap cson, for instance…I wish select the whole word under the coursor only pressing ctrl+w …atom has not this command but I can combine “editor:move-to-beginning-of-word” and editor:select-to-end-of-word and achieve this

I wish execute both commands with only a keystroke avoiding create a new extension and define these in the keymap config file…


#2

See my Stack Overflow answer here:

I also added a link in the Best Practices FAQ.


#3

thanks…this did the works!!..