Skip to content

Consider an alternative to ‘open’ #343

Closed

Description

@Joshfindit

MacOS has an open command that is very convenient.

(At least I think so, I use it quite frequently)

Activity

  1. sophiajt commented on Aug 24, 2019

    @sophiajt
    Contributor

    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.

  2. Joshfindit commented on Aug 24, 2019

    @Joshfindit
    Author

    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...

  3. andrasio commented on Aug 24, 2019

    @andrasio
    Member

    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 ?

  4. Joshfindit commented on Aug 24, 2019

    @Joshfindit
    Author

    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

  5. mistydemeo commented on Aug 25, 2019

    @mistydemeo

    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.

  6. kuchta commented on Aug 26, 2019

    @kuchta

    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.

  7. mb21 commented on Aug 27, 2019

    @mb21

    I second @kuchta's suggestion: it should be called read.

    I was already confusing nu's open and enter (which is which?) and read is just such a natural name to start a pipeline of commands with.

  8. sophiajt commented on Nov 30, 2019

    @sophiajt
    Contributor

    Tracking a set of possible command renames in #408. Closing this in favor of working on them there.

  9. added a commit that references this issue on Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions