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

handle files that don't have a .org extension #989

Open
jibal opened this issue Sep 19, 2024 · 3 comments
Open

handle files that don't have a .org extension #989

jibal opened this issue Sep 19, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@jibal
Copy link

jibal commented Sep 19, 2024

The organice file browser only displays files with a .org extension, but there's no requirement that org files have that extension (-*- mode: org; -*- works fine in emacs). It's possible to specify a path to an arbitrary file in the browser, but organice treats a filename like .../org.txt as a directory ... usually (and then gets stuck listing it). Once in a while it opens it as an org file, but I don't know what the circumstances are. 

@jibal jibal added the bug Something isn't working label Sep 19, 2024
@munen
Copy link
Collaborator

munen commented Sep 19, 2024

Hi @jibal

Thank you for your report. You are right that Emacs can interpret files with other extensions as Org files given the correct file local variable.

There are two reasons organice does not parse other files as Org files:

  1. At this point, organice only supports few in-buffer settings and no local variables.

  2. Furthermore, it's a design decision to show only folders as well as '.org' and '.org_archive' files in the file browser in organice to remove potential clutter.

Remedies:

Regarding 1: Are you interested to build this file local variable as new feature?

Regarding 2: I propose a new config flag in the settings. Some people might prefer to show only .org and .org_archive files, some might chose to show all. Are you interested in building this new feature?

NB: Please take a look at https://organice.200ok.ch/documentation.html#contributing

@munen munen added enhancement New feature or request question Further information is requested and removed bug Something isn't working labels Sep 19, 2024
@jibal
Copy link
Author

jibal commented Sep 19, 2024

I solved it for myself with a hard link to a name ending with .org (no symlinks on Dropbox/Windows). I'll have to think about contributing ... I have decades of experience with many programming languages but JavaScript isn't one of them.

@munen
Copy link
Collaborator

munen commented Sep 20, 2024

Good workaround with the hardlinks 👍 Symlinks unfortunately won't work in different scenarios (also webdav).

I'll have to think about contributing ... I have decades of experience with many programming languages but JavaScript isn't one of them.

That sounds great! JavaScript is not that hard when you have background in other languages. I'd say that's especially true when you're in a codebase with established patterns to adhere to.

If you do want to contribute, we'd be happy to help with reviews, docs and testing, of course!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants