Taitava / obsidian-shellcommands

Execute system commands via hotkeys or command palette in Obsidian (https://obsidian.md). Some automated events are also supported, and execution via URI links.
GNU General Public License v3.0
348 stars 11 forks source link

Improve an error message when a shell command does not exist for the current OS (but exists for some other OS) #239

Closed Taitava closed 2 years ago

Taitava commented 2 years ago

Example: Currently, if a user has a shell command that is defined for Linux and Mac, but they execute it in Windows, they will see an error message saying: The shell command is empty :( . This would be logical in cases where the shell command has absolutely no shell command version for any operating system (OS).

In cases where there actually exist a shell command version for some OS, but not for the current one, the following would be more informative and clear: The shell command does not have a version for [OS NAME], it only has a version for: [ANOTHER OS NAME] and [ANOTHER OS NAME].

Taitava commented 2 years ago

Done.