rlw1138
(Russ Williams)
April 1, 2024, 4:31pm
1
Not really an “issue”, not really a “bug”, but more of a “gotcha”…for a silverbullet n00b like me…
in the website “install” instructions (eg: Install/Deno ) the copy-to-clipboard is also picking-up the faux ‘system prompt’ (the dollar sign).
When pasted, the extra dollar-sign character caused my Linux system to complain. Took me a couple billion cpu cycles to realize what was happening.
SB has been big fun to play with, and seems like it’s gonna be super-useful…THANKS for writing it!
1 Like
Maarrk
(Marek Ł.)
April 1, 2024, 7:48pm
2
Hello Russ, I am a big fan of the suggestion, especially since the commands sometimes had them, sometimes not…
In fact I liked it so much that I removed it everywhere and submitted a proposed update to SilverBullet, so maybe it will be easier for the next n00b after us.
silverbulletmd:main
← Maarrk:pr-shell-dollar
opened 07:42PM - 01 Apr 24 UTC
With the blocks consistently having the `shell` specifier, the dollar sign is no… t needed to indicate these lines are terminal commands. There is also no need to differentiate user `$` and root `#` shell, since the lines contain `sudo` whenever root privileges are required.
This significantly improves UX considering #735
Credit goes to Russ Williams (rlw1138) for suggesting this https://community.silverbullet.md/t/copy-to-clipboard/351
---
Since the majority of command blocks used the `shell` info string, I changed the few `bash` ones to match (as a proud `zsh` user).
1 Like