Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new note in external editor #1443

Closed
mark6400 opened this issue Apr 22, 2019 · 2 comments
Closed

Create new note in external editor #1443

mark6400 opened this issue Apr 22, 2019 · 2 comments
Labels
bug It's a bug

Comments

@mark6400
Copy link

Operating system

  • macOS

Application

  • Desktop

Issue

I'd like to create notes in an external editor. I use the following commands: "New note", then "Open in external editor". This does not open the external editor.

But this does work: if I create a new note, then enter a single character in the title field (thereby causing the "Creating new note..." default text disappears), such as a single space, then the note opens in the external editor; I can then backspace out the single character and begin to create the new note.

This workaround is manageable, but the underlying behavior seems odd, and it may make sense to streamline this for folks (such as myself) who like to do their typing in their text editor of choice.

@laurent22 laurent22 added bug It's a bug essential labels Apr 22, 2019
@innocuo
Copy link
Contributor

innocuo commented May 6, 2019

The app forces saving an empty note on the following actions:

  • adding a tag
  • attaching a file
  • setting an alarm

So it'd make sense the same behavior applies when you click on "edit on external note"
But it doesn't seem straightforward.

calling saveIfNeeded(true) before trying to open the external editor saves the note, but has 2 issues:

  1. The default note title is "Untitled", but users might be expecting a completely empty note to edit?
  2. saveIfNeeded(true) tries to update the external note file, to the call the external editor, which saves the note file. Could this cause any issues?

If that is not good enough, the other option would be to save the note to create it, then clear the title and save again, and only then open the external editor. Any better ideas?

@laurent22
Copy link
Owner

If that is not good enough, the other option would be to save the note to create it, then clear the title and save again, and only then open the external editor. Any better ideas?

I think that should be the way. Maybe we could have an option that disables the auto-title in that case, so that we can open the note directly.

@lock lock bot locked and limited conversation to collaborators Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

3 participants