nextspace icon indicating copy to clipboard operation
nextspace copied to clipboard

Nextspace command line tools

Open onflapp opened this issue 5 years ago • 2 comments

Add two command line utilities:

nxpasteboard - gives you ability to do copy & paste and invoke system services directly from command line --copy copy text from standard input to the pasteboard --paste paste text from the pasteboard to standard output --service call service with text from standard input

for example: echo "$PWD" | nxpasteboard --service "Terminal/Open shell here"

nxworkspace - invoke Workspace commands from command line

--open open path in Workspace --open open path with specific application --activate launch or activate application

I will add additional functionality (e.g. --hide / --hide-all) as it becomes available

onflapp avatar Aug 29 '20 10:08 onflapp

@onflapp nice idea, thank you. I have some thoughts regarding these tools.

nxpasteboard: I'd like to have something like this https://www.manpagez.com/man/1/pbcopy. I've noticed 2 key points: it's 2 commands with quite clear short names and ability to specify pasteboard content type.

It seems like nxworkspace duplicates functionality of GNUstep's gopen tool. If it's extention to gopen - it should go into appropriate place (GNUstep).

General notes:

  • You've misspelled "GNUmakefile" (capital "M" instead of "m"). It's not bug, but please stick to accepted file naming.
  • It's better to move "Tools" out of "Applications" directory one level up.

trunkmaster avatar Aug 31 '20 08:08 trunkmaster

I agree nxpasteboard should aspire to have the same capabilities as pbcopy and more

gopen closely follows Mac/NextStep open command, the idea behind nxworkspace is to provide functionality specific to NEXTSPACE. My wish list:

  • open browser and select file
  • hide / show apps
  • inspect file
  • recycle file
  • alert panel
  • file open panel

onflapp avatar Aug 31 '20 19:08 onflapp