Open swhib opened 6 years ago
Nice idea 😀
It would be great for changing New Folder
to mkdir
and New File
to touch
👍
I made an extension command alias which allows you to set up aliases for commands and have those aliases show up in the Command Palette. For example, this setting:
"command aliases": {
"explorer.newFile": "touch",
"explorer.newFolder": "mkdir"
},
would produce a touch
and a mkdir
listing in the command palette. You can even have more than one alias for the same command.
For these settings changes to propagate to the command palette I believe it is necessary for a reload as the readme explains.
I would love this!! I use aliases a lot with Raycast. It's annoying having to type out commonly used commands (that I don't really want shortcuts for.)
Is there a way to define an alias for a command so that the command can be called under multiple different names (original name and the alias)?
This is useful in different cases:
diff-buffer-with-file
and it takes me some time to figure out that in VSCode it's calledCompare active file with saved
.tt
. This is quite popular in emacs, see e.g. http://ergoemacs.org/emacs/emacs_alias.htmlI think I'm not the only one who likes such a feature: When I used emacs I checked quite a few popular user configurations that users keep on github. A lot of these contain aliases by using the command
(defalias ...)
- including popular/influential ones like spacemacs, abo-abo's oremacs, the config of the emacs maintainer ...This has been asked on Reddit and stackoverflow without any useful answer.