organice icon indicating copy to clipboard operation
organice copied to clipboard

Implement routing for all actions

Open munen opened this issue 4 years ago • 7 comments

Right now, some actions create routes (directory traversal, opening org files). However, some pages use a concept of "modals" which re-uses the same route (for example visiting the changelog from the settings screen).

All views that make sense to have their own route should be refactored. This can also be done in an incremental manner. PRs for single fixes are very welcome.

Implementing proper routing will:

  • Add the ability to reload everywhere
  • Add the ability to link to actions like agenda

munen avatar Aug 28 '19 11:08 munen

Hi, @munen! Does this issue cover the use case below?

As an Android user, I would like to have a single icon on my home screen (or a gesture) to lunch organice in a capture mode to add a note or a todo item. At the moment I can only do it with 5 clicks before I get to write my note:

  • lunch organice with a shortcut icon on my home screen,
  • (wait for it to load the file list) open my org directory (/notes),
  • (wait for it to load the file list) open my notes sink (/notes/inbox.org),
  • tap on the "+" button for capture, and
  • tap on the notes capture.

Am I missing some feature or configuration?

I've discovered organice recently and was pleasantly surprised at how easy it is to use. Thank you for it! Shortening the workflow above would boost my efficiency working with org-mode even more.

necto avatar Aug 16 '20 16:08 necto

Does this issue cover the use case below?

I think so... but there is another problem: At least on my Android, I cannot link an arbitrary website/URL to the home screen. At least I don't know how. I can make bookmarks in the browser and I can link the offline version of a web app to the home screen. But the latter option always brings me to the homepage of the web app, it does not store the full URL.

Have you seen this already? https://github.com/200ok-ch/organice#capture-templates

Maybe there exists an Android app that is a "share target" and can open web pages with query string for you... that might be a work around...

schoettl avatar Aug 16 '20 16:08 schoettl

Hi, @necto

Does this issue cover the use case below?

Yes, this issue would cover your use case.

Am I missing some feature or configuration?

There's a good chance that you can already save a couple of clicks: When you create the bookmark for organice on your homescreen, you can directly use the relevant Org file. Personally, I'm using this workflow a lot. My main Org file is in /org/things.org, so what I do is:

  1. Open organice
  2. Click capture
  3. Select the relevant capture template

I'm an iOS user, though. I've heard it works on Android the same way.

I've discovered organice recently and was pleasantly surprised at how easy it is to use.

Thank you for your kind words :pray:

Thank you for it!

It's a community effort^^

munen avatar Aug 16 '20 16:08 munen

And then, you can also use capture templates through bookmarklets: https://organice.200ok.ch/documentation.html#capture_templates

Using that, on iOS, you could even have a Siri integration: https://organice.200ok.ch/documentation.html#siri_integration

I realize that you're not on iOS, but I'd hope that there's a similar workflow opportunity on Android.

munen avatar Aug 16 '20 16:08 munen

Here’s a video how it works on my phone: https://www.dropbox.com/s/t246soj0ytyicpj/Video%2016.08.20%2C%2018%2022%2049.mp4?dl=0

munen avatar Aug 16 '20 16:08 munen

Thanks for the quick replies. I've been able to cut 2 clicks off by (somewhat) replicating the @munen's iOS workflow on android using the chrome bookmarks widget: https://drive.google.com/file/d/15kRC4cIBQ955CSyPgJpm4DZcTd4F2BsY Might be not very pretty, but it works and requires no additional apps.

necto avatar Aug 16 '20 17:08 necto

Sample and Changelog now only work with their own routes /sample and /changelog. There's no weird 'modal logic' that puts stuff on top of stuff.

munen avatar Jun 30 '22 17:06 munen