Skip to content

Create --edit and --no-edit flags and config #90

@joereynolds

Description

@joereynolds

Sometimes we don't want to drop into an editor just to jot down a thought so I'm proposing some config things

--edit

Passing this flag will open the EDITOR on jn "some note" .
This is currently the default behaviour

--no-edit

Passing this will treat the string as the note and will save it in notes.md (tbc)

So for example jn "I had a great day today" will append that string to notes.md

Config

We should be able to configure each of these to be the default.
Some people want to go deep and into an editor (me), others will just want to journal their thoughts (hippies)

What I'm proposing is something like

edit=True|False

If True (the default), it will do as it does now, open up the editor.
If False, does the opposite.

These can then be counteracted with the above --edit and --no-edit flags.

For example if we have edit=false in our config but we want to be dropped in the editor, we can just specify --edit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions