Git Product home page Git Product logo

Comments (6)

sungwoncho avatar sungwoncho commented on May 14, 2024 1

The reason for defaulting to vim was that commands to launch some editors return immediately, unless a flag is passed (atom vs atom -w).

We can probably default to EDITOR, if we cover editors that require flags as much as possible. I am not totally sure what the best solution is. Any ideas on the trade-off welcomed.

In the meantime you can change the editor following these steps https://github.com/dnote-io/cli/wiki/Guide#change-editor

from dnote.

dvnrsn avatar dvnrsn commented on May 14, 2024

My two cents: set vim as default (mine was nano?) and/or check $EDITOR. This took me longer to find than it should have. Thanks for the sweet tool.

from dnote.

sungwoncho avatar sungwoncho commented on May 14, 2024

@dvnrsn thanks for the feedback. By the way, it is defaulting to vi. I suspect that your system's $EDITOR was set to nano (I have noticed this in the past in some fresh ubuntu installations). Please let me know if otherwise. https://github.com/dnote/cli/blob/0a2413070f7167e020aabdebf9bc2e78082b0272/core/core.go#L78-L99

from dnote.

dvnrsn avatar dvnrsn commented on May 14, 2024

I'm fairly confident my $EDITOR was vim, but my dnote was out of date. Upgraded and good to go. :)

from dnote.

sungwoncho avatar sungwoncho commented on May 14, 2024

@dvnrsn great, thanks for the update.

from dnote.

sungwoncho avatar sungwoncho commented on May 14, 2024

I will close this for now due to inactivity. If anyone finds edge cases or have suggestions, please feel free to comment.

from dnote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.