orgzly-revived / orgzly-android-revived

Outliner for taking notes and managing to-do lists
https://www.orgzlyrevived.com
GNU General Public License v3.0
584 stars 37 forks source link

Sync before adding quick note to inbox #136

Open eyJhb opened 8 months ago

eyJhb commented 8 months ago

I've tried to search the current issues, but I don't think this has been opened before.

Recently, I've started getting errors on remote and local out of sync, and I need to remember to sync before I actually add the quick note. Is it possible to adding an option, that will sync the inbox note, before adding a quick note using the notifications? The inbox is a somewhat messy note, that needs sorting, and I just want the ability to throw stuff into it, and then I can organize it later.

It's not that I want autosync, I just want "sync before adding quick notes".

Hopefully this isn't a duplicate feature request.

amberin commented 6 months ago

Just curious, which repo type are you using? Because it seems very inconvenient if you get conflicts as soon as you add something without having the latest changes on the remote side.

I suppose you have already considered adding quick notes to a different notebook, which is not updated on the remote side? As I see it, part of the beauty of org-mode is the ability of the agenda to show content from multiple files, and the ease of sorting items from something like an "inbox" notebook.

eyJhb commented 6 months ago

Sorry for the late reply @amberin , I'll try to explain as best as I can.

So when I add a quick note, it goes to inbox.org, which I use WebDAV to sync my phone with my Nextcloud server. My inbox is just my various notes/todo/things to remember/ideas, that I can't write down properly, or need to be refined later.

The refining/categorizing etc. happens on my computer. This means that I'll open my inbox.org, and cleanup my inbox, and move all the items to the correct .org places, delete them if no longer needed etc. and then in the end save inbox.org.

The issue then comes, when I have updated inbox.org from my computer, but haven't synced these changes manually on my phone yet. So next time I have something important I need to remember, I add it to my inbox, but then I get a conflict.

This is why, I would much rather it just try to sync it before trying to add any note as a quick note. As sync errors (both modified) are impossible to fix. You can either keep the thing you added, and have all the old inbox stuff be there, or you can then sync the remote copy, and have to add the note again.

I hope this clears it up.

stfl commented 6 months ago

+1

paulelms commented 1 month ago

This is an old orgzly issue. I solved it using Tasker, which started syncing every time the phone screen was unlocked. But using Tasker for such a simple task seems redundant.

amberin commented 1 month ago

I am hoping that solving #92 will make this less of an issue. That one should have high priority, considering the number of "likes" in the original repo.

k11m1 commented 1 month ago

@paulelms How did you get tasker to sync orgzly? I am curious. Even in the sub activity menu I don't see anything related to sync.

paulelms commented 1 month ago

@paulelms How did you get tasker to sync orgzly? I am curious. Even in the sub activity menu I don't see anything related to sync.

This was the case with orgzly, but I didn't check with revived:

  1. System → Send Intent
  2. Action: com.orgzly.intent.action.SYNC_START
  3. Package: com.orgzly
  4. Class: com.orgzly.android.ActionReceiver
  5. Target: Broadcast Receiver
k11m1 commented 1 month ago

Thanks! Indeed it doesn't work with revived. I think it is due to the package name:

Package: com.orgzly

If i change that to com.orgzlyrevived it seems to work. Thanks for your time.