orgzly-android icon indicating copy to clipboard operation
orgzly-android copied to clipboard

Detect org files in subfolders

Open karlicoss opened this issue 8 years ago • 27 comments

Just checked out the experimental automatic file repository sync — thanks, it works fantastic! However, I think a common pattern is having a directory tree with bunch of org files around it, and right now orgzly only detects the org files on top level. Wouldn't it be useful to detect the ones in subfolders as well? If you think it's a good idea, I'd be even happy to implement it and contribute. Alternatively, might be even better if we had proper directories support within orgzly?

karlicoss avatar Nov 18 '17 21:11 karlicoss

It has been requested before, it's definitely needed.

Directories are probably a way to go, flattening directory structure could create a mess. This could be simulated later, so I wouldn't focus too much on it in the beginning.

Notebook names have to be unique in DB currently, so a new field for path would need to be added (and unique constraint changed). There are few places in the code that depend on that, so those will need updating too.

Thanks!

nevenz avatar Nov 19 '17 10:11 nevenz

This feature would be really great. I use Orgzly mostly for viewing my agenda. However with this I could use it to access all my note files. Currently it would be too much work to constantly readd all the subfolders as repositories.

Nebucatnetzer avatar Apr 01 '18 23:04 Nebucatnetzer

@Nebucatnetzer if you are mostly using it read only, as a workaround for now you might get away with using org-agenda-write to export your agenda in a single file (e.g. daily/hourly in a cron job), and then point Orgzly at it. A bit ugly, wouldn't update entries from Orgzly, but kinda does the job.

karlicoss avatar Apr 01 '18 23:04 karlicoss

The agenda is not the problem I already use that in Orgzly. The problem are all my notes which are spread across multiple files in multiple folders. In addition I often create new note folders etc. The agenda is always in the same place.

Nebucatnetzer avatar Apr 04 '18 16:04 Nebucatnetzer

@Nebucatnetzer ah, I see. Anyway, you could use a special agenda view to collect all your notes and export them to a single file (or even just concatenate all of them). Yes, wouldn't for adding new notes, but better than not being able to use them at all :)

karlicoss avatar Apr 04 '18 16:04 karlicoss

I sympathize. I use a lot of internal linking in my files to navigate quickly between important business stuff. Since Orgzly just lists files in a single row, I pleaded with Nevenz to implement internal linking to make it easier to get to information across many locations. Unfortunately, the current implementation doesn't work the same way as it does in Emacs so it didn't help at all.

I tried condensing my files into larger ones to rely less on searching but go a few levels deep and it starts to get hard to read because of screen real estate and formatting.

Search results only include the file title and not any other heading location information so you really need to have many seperate files to narrow down the topics of search.

I hate to say it, but I have a hard time using Orgzly for anything other than the simplest of tasks, so I've had to start migrating off of Org-mode and Orgzly (I need a mobile solution). But I hold out hope that Nevenz will put out an update to make information a bit easier to find.

The point...I'm adding a +1 for this in the hopes someone will work on this sooner. Being able to navigate to smaller files will add another layer of organization to make files and information a bit easier to locate.

keithcrone avatar Apr 04 '18 16:04 keithcrone

Huge +1. I also think this is a feature that would be very much needed. Congrats on Orgzly!

vonpupp avatar Dec 03 '18 04:12 vonpupp

Yes. Definitely need this. Boost the productivity

kimonoki avatar May 19 '19 23:05 kimonoki

+1 for this, I loved the app but sadly this is the big thing preventing me from using it seriously...

Svanto24 avatar Dec 11 '19 13:12 Svanto24

Meanwhile, is there any way to get around this? I tried symlink but the app isn't really designed for that I think. I tend not to have any notes lying around in the home directory, I tend to put everythink in folders.

I was wondering if it was possible to do something like having a single .org file full of links to the respective directories on my device synced via nextcloud as a workaround, hope it makes sense the way I described it

Svanto24 avatar Dec 11 '19 14:12 Svanto24

@Svanto24, how many folders? Can you create a repository for each? They'd have contain unique filenames though.

nevenz avatar Dec 11 '19 16:12 nevenz

@nevenz I see! Eight folders, some of them nested into each other. They do have unique filenames. It didn't occur to me that webdav would work that way since nextcloud only provides a direct link to the main repository, but it should probably be possible to append them to address specific folders, I just need to find out how... Thank you very much for the tip.

EDIT: Sadly I'd been having no luck. I keep trying to guess the adress of the specific folders in the webdav, but I keep getting 409s.

Svanto24 avatar Dec 11 '19 16:12 Svanto24

Some of said folders have spaces or ěščřžýáíé symbols in their names, how would I work with those when linking the directory via WebDAV?

Svanto24 avatar Dec 11 '19 19:12 Svanto24

Some of said folders have spaces or ěščřžýáíé symbols in their names, how would I work with those when linking the directory via WebDAV?

These work for me:

http://192.168.1.5/remote.php/webdav/test/Folder with spaces/ http://192.168.1.5/remote.php/webdav/test/ěščřžýáíé/

nevenz avatar Dec 12 '19 13:12 nevenz

Some of said folders have spaces or ěščřžýáíé symbols in their names, how would I work with those when linking the directory via WebDAV?

These work for me:

http://192.168.1.5/remote.php/webdav/test/Folder with spaces/ http://192.168.1.5/remote.php/webdav/test/ěščřžýáíé/

Sorry for posting so much, finally found out what was the cause. Turns out there's a bit of a discrepancy between what it says in the docs and what actually works, and I assumed some sort of URL encoding was needed. That or I can't bloody read. Either way, what worked for me with nextcloud was:

https://subdomain.providerdomain.eu/remote.php/webdav/Path/to/file

Just like you said. Thanks again, great app! Should I clear up the superfluous posts I made?

Svanto24 avatar Dec 12 '19 14:12 Svanto24

Should I clear up the superfluous posts I made?

No need, it could be useful to someone. Thanks.

nevenz avatar Dec 12 '19 15:12 nevenz

I switched from orgzly to markor exactly because of the lack of this feature. Yes, I know, these apps differs a lot, but I use them simply as a text editor. I'm still waiting when this will become available in orgzly. Why it's so hard to implement it?

532910 avatar Jun 25 '20 07:06 532910

I'm writing a workaround to implement this feature: orgzly-index-files The idea is to create a index notebook, with links to another files (I choose 0.org so that it will be at the top of all the notebooks alphabetically), while adding all subfolders to the orgzly repositories, so that this index notebook will be used as the interface to select notebooks grouped by subfolders, mimicking the file system folder hierarchy.

I have a Raspberry Pi where my orgzly files are synchronized so that I can setup a script to recreate the index every day.

lytex avatar Sep 08 '20 14:09 lytex

As a workaround I can manually add the nested folders as a separate repository

Orgzly -> Settings -> Sync -> Repositories -> Select '+' to add

Now I see all notes within Orgzly. Is this not enough for supporting org files in sub folders?

007kevin avatar Feb 10 '21 22:02 007kevin

As a workaround I can manually add the nested folders as a separate repository Now I see all notes within Orgzly. Is this not enough for supporting org files in sub folders?

If you don't mind reading the very first comment, you might learn that this has already been explained some three years ago.

alensiljak avatar Feb 27 '21 23:02 alensiljak

@nevenz I'm happy to hack the Backend side of this, can you find someone who would cover the frontend of this feature

EncodePanda avatar Nov 02 '21 22:11 EncodePanda

This would be great. A little surprised to see karlicoss be the one who opened this nearly 5 years ago haha. Hey there!

AB1908 avatar Jun 08 '22 12:06 AB1908

As a workaround I can manually add the nested folders as a separate repository

Orgzly -> Settings -> Sync -> Repositories -> Select '+' to add

Now I see all notes within Orgzly. Is this not enough for supporting org files in subfolders?

Sorry, this is not enough. Like this, all the files from the child directory end up at top level. Plus, I need to add multiple folders and subfolders manually

sumanthyedoti avatar Jun 16 '23 18:06 sumanthyedoti

+1. Before this is implemented, I guess I have to find something else:(

Maverobot avatar Feb 10 '24 12:02 Maverobot

@Maverobot By the way, this repo is not longer maintained. The new repo for this project is at https://github.com/orgzly-revived/orgzly-android-revived

psamim avatar Feb 10 '24 12:02 psamim

@psamim thanks for the info. But the feature is Still not supported in the new repo, right?

Maverobot avatar Feb 10 '24 12:02 Maverobot

@Maverobot No, not supported.

psamim avatar Feb 10 '24 12:02 psamim