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

Show an error message if a shell command is too long to execute #269

Closed Taitava closed 1 year ago

Taitava commented 1 year ago

Discussed in https://github.com/Taitava/obsidian-shellcommands/discussions/268

Originally posted by **Taitava** September 11, 2022 When creating tests for `{{file_content}}` and `{{note_content}}` variables, I noticed that at least Windows PowerShell has some (unknown) max limit for how long a shell command can be. This resulted in an exception in JavaScript's console, i.e. not as a visible error message. I'll make the SC plugin to notice this exception and show it clearly to users.