You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Apologies. I originally posted this issue in the wrong repo; moving renke/import-sort#105 here.)
Atom v1.41.0
atom-import-sort v6.0.0
The "Sort on save" option works as expected, but I can't seem to be able to use the keyboard shortcut to activate the import-sort:sort command. Defining a custom keyboard shortcut in my keymap.cson also doesn't trigger sorting.
UPDATE
I was able to get this working by modifying the package source code locally. This selector seems problematic:
(Apologies. I originally posted this issue in the wrong repo; moving renke/import-sort#105 here.)
Atom v1.41.0
atom-import-sort v6.0.0
The "Sort on save" option works as expected, but I can't seem to be able to use the keyboard shortcut to activate the
import-sort:sort
command. Defining a custom keyboard shortcut in mykeymap.cson
also doesn't trigger sorting.UPDATE
I was able to get this working by modifying the package source code locally. This selector seems problematic:
https://github.com/renke/atom-import-sort/blob/master/src/index.ts#L38
I changed the selector to just
'atom-text-editor'
, added a custom keyboard shortcut, and it worked.The text was updated successfully, but these errors were encountered: