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

Detect org files in subfolders #225

Open
karlicoss opened this issue Nov 18, 2017 · 27 comments
Open

Detect org files in subfolders #225

karlicoss opened this issue Nov 18, 2017 · 27 comments

Comments

@karlicoss
Copy link
Contributor

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?

@nevenz
Copy link
Member

nevenz commented Nov 19, 2017

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!

@Nebucatnetzer
Copy link

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.

@karlicoss
Copy link
Contributor Author

@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.

@Nebucatnetzer
Copy link

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.

@karlicoss
Copy link
Contributor Author

@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 :)

@keithcrone
Copy link

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.

@vonpupp
Copy link

vonpupp commented Dec 3, 2018

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

@kimonoki
Copy link

Yes. Definitely need this. Boost the productivity

@Svanto24
Copy link

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

@Svanto24
Copy link

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

@nevenz
Copy link
Member

nevenz commented Dec 11, 2019

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

@Svanto24
Copy link

Svanto24 commented Dec 11, 2019

@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
Copy link

Svanto24 commented Dec 11, 2019

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

@nevenz
Copy link
Member

nevenz commented Dec 12, 2019

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/ěščřžýáíé/

@Svanto24
Copy link

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?

@nevenz
Copy link
Member

nevenz commented Dec 12, 2019

Should I clear up the superfluous posts I made?

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

@532910
Copy link

532910 commented Jun 25, 2020

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?

@lytex
Copy link

lytex commented Sep 8, 2020

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.

@007kevin
Copy link

007kevin commented Feb 10, 2021

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?

@alensiljak
Copy link

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.

@EncodePanda
Copy link

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

@AB1908
Copy link

AB1908 commented Jun 8, 2022

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

@sumanthyedoti
Copy link

sumanthyedoti commented Jun 16, 2023

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

@Maverobot
Copy link

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

@psamim
Copy link
Contributor

psamim commented Feb 10, 2024

@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

@Maverobot
Copy link

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

@psamim
Copy link
Contributor

psamim commented Feb 10, 2024

@Maverobot No, not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests