FR: Multi-line Commands #153
Replies: 3 comments 2 replies
-
Yes! UIFrom the UI point of view, I guess the shell command field could be a text area with a default height of one line. If a user types a newline there, then the textarea would grow in height. But if the user is scrolling through many shell commands, then these long textareas can be bad. NewlinesWe also need to think about different newline characters in different OS's, especially if shell commands get shared between devices with different operating systems (via the import/export feature, or just by copying the Newlines in different OSes: |
Beta Was this translation helpful? Give feedback.
-
A problem with the autocomplete menukraaden/autocomplete, the library that SC uses to produce the autocomplete menu, does not officially support textarea elements. I can force the autocomplete element appear on a textarea, but at least one problem is that when hitting Enter to use an item in the menu, a newline is also added to the textarea. It's a small glitch, but I don't know if it's the only one. And for non technical people: a textarea means a multiline text input element. The current single line input element needs to be changed to a textarea element in order to make multiline work. I can see two solutions here:
|
Beta Was this translation helpful? Give feedback.
-
Beta test |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This would be useful for more complex commands. Right now, cramming everything into one file is a bit cumbersome.
Also, with the import/export feature, you would want to make commands more "thorough" or with a variable-configuration block at the top.
Beta Was this translation helpful? Give feedback.
All reactions