With the bulleted text already on your clipboard, this following command in Terminal.app will remove the first 2 characters (the hyphen and the following space) from each line that is currently on the clipboard and copies that back to your clipboard.
pbpaste |sed 's/^..//g' |pbcopy
So instead of typing the above command every single time… in Terminal.app, you can create an alias for that full command so your new alias would run the full command.
For example in the following code, i assign the keys pt
to run the full command.
alias pt='pbpaste |sed 's/^..//g' |pbcopy'
NOTE: In Terminal.app, before creating a custom alias, make sure it is not already being used so as to not over write an already existing command. To check if pt
as I used above, isn't already being used, the command type pt
lets me know if it has been already assigned or not.
So now in Terminal.app, when i type the command pt
it removes the first 2 characters from my clipboard.
Now anywhere I decide to paste the text, the bullet or hyphen and the following space will be removed.
So now If I want to paste the "un-bulleted" text in Terminal, I type the command pt
then hit Enter then Command + v.
It will really come in handy if you have multiple lines with bullets on your clipboard
OPTION 2: (My Choice)
Create a new Automator.app Quick Action and add a "Run Shell Script" action to the workflow. Next, paste this following code into that new Action.
osascript -e 'tell application "System Events" to keystroke "c" using {command down}' ; sleep 1 ; pbpaste |sed 's/^..//g' |pbcopy

Then save the new Quick Action. (I saved mine as "Remove_Leading_Bullets.workflow")
Now in System Settings, I can assign my new Quick Action a keyboard shortcut (I used ⌃P)

Now anytime I have bulleted text selected in any app, pressing the keyboard shortcut ^P (control + p) will copy the currently selected text with the first 2 characters (hyphen and space)removed so now I can paste into Terminal or wherever else.