[MacPorts] #66500: Remove $ dollar sign from line copy&paste (user terminal commands)

MacPorts noreply at macports.org
Mon Dec 19 06:30:37 UTC 2022


#66500: Remove $ dollar sign from line copy&paste (user terminal commands)
--------------------------+--------------------
  Reporter:  esbugz       |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  guide        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------
Description changed by esbugz:

Old description:

> Terminal commands that a user is supposed to type are formatted with
> ''$'' dollar sign
> {{{
> $ Commands to be typed into a terminal window.
> }}}
>
> However, this makes it very inconvenient to copy&paste the easiest
> selection item — the whole line — since the ''$'' dollar sign will
> corrupt the command.
>
> The better way is to either:
>   - enhance the guide's terminal command field to show the $ without it
> being selectable on triple click (as some other websites do) or
>   - change the syntax to exclude the $ altogether (a much more disruptive
> move as it's a common convention to denote user terminal input with $)

New description:

 Terminal commands that a user is supposed to type are formatted with ''$''
 dollar sign
 {{{
 $ Commands to be typed into a terminal window.
 }}}

 However, this makes it very inconvenient to copy&paste the easiest
 selection item — the whole line — since the ''$'' dollar sign will corrupt
 the command.

 The better way is to either:
   - enhance the guide's terminal command field to show the $ without it
 being selectable on triple click as some other websites do, for example,
 check this one [https://scoop.sh/#/apps?q=regfileexport&s=0&d=1&o=true] —
 you don't even need to triple click to select a line, just clicking on the
 line can select the command you can paste to the terminal, and there is
 also a very helpful clipboard icon indicator that you've copied
   - or change the syntax to exclude the $ altogether (a much more
 disruptive move as it's a common convention to denote user terminal input
 with $)

--

-- 
Ticket URL: <https://trac.macports.org/ticket/66500#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list