(setq org-hide-emphasis-markers t)
. ~$ firejail --get=<id> <file>~
which is shown in the visible buffer as:
$ firejail --get=<id> <file>
Then, visually select via v
from the first character "$"
to the last character ">"
of the line. What's copied into the clipboard is (note the "~" in the beginning):
~$ firejail --get=<id> <file>
instead of:
$ firejail --get=<id> <file>
Also, copying the entire line with V
via org-copy-visible
will yield ~$ firejail --get=<id> <file>~
.
I only use Emacs with evil-mode enabled, so I'm not sure what Emacs equivalents are, but it has the same issue even without using evil according to the evil developer (see github issue posted above).