raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.37k stars 3.07k forks source link

[Quick Notes] Draft Changes in Edit View saved when go back #12623

Closed Ernest0-Production closed 3 months ago

Ernest0-Production commented 5 months ago

Extension

https://www.raycast.com/biknandy/quick-notes

Raycast Version

1.73.2

macOS Version

15.2

Description

When I want to edit a note and go back without clicking the Save Note button, my intermediate changes are already saved.

This doesn't seem entirely logical.

Steps To Reproduce

  1. Edit Note
  2. Change title
  3. Go back (esc)

Current Behaviour

Changed title

Expected Behaviour

Origin title

raycastbot commented 5 months ago

Thank you for opening this issue!

🔔 @biknandy you might want to have a look.

💡 Author and Contributors commands The author and contributors of `biknandy/quick-notes` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
biknandy commented 5 months ago

@raycastbot assign me

This is by design as if you're editing a very large note and hit back by accident, it makes sense to save what you have (almost like autosave)

I can change it to not do this for just the title though

Ernest0-Production commented 5 months ago

@biknandy Hi! There is a suggestion to create a copy of the file and edit it until the note is saved)

You can also add support for Form Draft. I think, under the hood, raycast will save intermediate changes in some temporary files. In this case, you won't have to create your own draft logic.

biknandy commented 5 months ago

Ah yea I can maybe draft the current state as a new note. On save of that draft it can replace the current. Form draft won't work for this app (I tried it) due to the complexity of the file saving.

raycastbot commented 3 months ago

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot commented 3 months ago

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.