You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MacOS has an open command that is very convenient.
(At least I think so, I use it quite frequently)
Reacted by Taylor Thurlow, Odin, Sergey, Jeremy Banks, Misty De Méo, Rafael Rezende, Mauro Bieg, Pohl Longsine, Franklin Davenport, Maxim Uvarov and 4 more
I’m honestly not sure how annoying it would be, I suppose it would matter whether I used Nu’s open or Apple’s open more often. I feel like they would both be fairly common in an ideal world.
As this was percolating since opening it, a suggestion popped in:
How about call the binary nushell and the ‘open’ command nu?
It’s just spitballing, so no pressure, but it is 50% less typing...
You are right. I use macOS's open very frequently too. Support for using native commands instead of nu's was landed this week before releasing. You can imagine how I was doing while it wasn't supported.
So far I've been Ok escaping commands ^open (native open) since in my case it's usually for opening URL's with a web browser, apps, and that's it.
We are in shells. Most work with files and opening them is using shell editors, too.
For what cases would you constantly use macOS's native open@Joshfindit ?
You are right. I use macOS's open very frequently too. Support for using native commands instead of nu's was landed this week before releasing. You can imagine how I was doing while it wasn't supported.
!! That sounds challenging!
For what cases would you constantly use macOS's native open@Joshfindit ?
One of the main ones is opening a finder window at the current location as I manage files a lot and some things are just faster to do with the mouse.
Viewing PDFs (not structured data, just documents to review)
Viewing media files (images, video, audio)
(Less often) launching applications that are not in the Applications folder
I may come back and add more as I use the computer and get reminded
Reacted by Jeremy Banks, Mauro Bieg and Pohl Longsine
I ran into this when I was looking to report the same thing! I'd also like to suggest using an alternate command. I use open extensively in my day-to-day routine, for much the same reasons that Josh does; I'd also see my muscle memory interfering with learning nu, especially if I'm switching back and forth between nu and other shells.
I also think that 'open' is unfortunate, since it's havily used on (not just) macOS. I would suggest to use 'read' (or 'load') instead which is also used by other shells, so it's not so likely to collide with another program.
Activity
sophiajt commentedon Aug 24, 2019
Ah, that's true.
At least in theory, you can use the native open by using
^open. Not sure if that would become muscle memory in time, or if it would be annoying.Joshfindit commentedon Aug 24, 2019
I’m honestly not sure how annoying it would be, I suppose it would matter whether I used Nu’s open or Apple’s open more often. I feel like they would both be fairly common in an ideal world.
As this was percolating since opening it, a suggestion popped in:
How about call the binary
nushelland the ‘open’ commandnu?It’s just spitballing, so no pressure, but it is 50% less typing...
andrasio commentedon Aug 24, 2019
You are right. I use macOS's
openvery frequently too. Support for using native commands instead ofnu's was landed this week before releasing. You can imagine how I was doing while it wasn't supported.So far I've been Ok escaping commands
^open(nativeopen) since in my case it's usually for opening URL's with a web browser, apps, and that's it.We are in shells. Most work with files and opening them is using shell editors, too.
For what cases would you constantly use macOS's native
open@Joshfindit ?Joshfindit commentedon Aug 24, 2019
!! That sounds challenging!
I may come back and add more as I use the computer and get reminded
mistydemeo commentedon Aug 25, 2019
I ran into this when I was looking to report the same thing! I'd also like to suggest using an alternate command. I use
openextensively in my day-to-day routine, for much the same reasons that Josh does; I'd also see my muscle memory interfering with learningnu, especially if I'm switching back and forth betweennuand other shells.kuchta commentedon Aug 26, 2019
I also think that 'open' is unfortunate, since it's havily used on (not just) macOS. I would suggest to use 'read' (or 'load') instead which is also used by other shells, so it's not so likely to collide with another program.
mb21 commentedon Aug 27, 2019
I second @kuchta's suggestion: it should be called
read.I was already confusing nu's
openandenter(which is which?) andreadis just such a natural name to start a pipeline of commands with.sophiajt commentedon Nov 30, 2019
Tracking a set of possible command renames in #408. Closing this in favor of working on them there.
Category option for signature (nushell#343)
Category option for signature (#343)
docs: table border options (nushell#343)