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

change internal org-mode links from file:///[filename].org to https://org-web.org/file/[filename].org #94

Open
elliottw opened this issue Sep 6, 2020 · 7 comments

Comments

@elliottw
Copy link

elliottw commented Sep 6, 2020

I rely heavily on internal links to jump around between org-mode files. Currently internal links are just like in emacs (file:///) which doesn't resolve in a browser.

@DSMasterson
Copy link

Read the chapter on "Hyperlinks" (particularly Internal and External) in the OrgMode Info documentation. Then read the chapter on "Exporting" (particularly HTML) in the OrgMode Info documentation.

@elliottw
Copy link
Author

elliottw commented Sep 6, 2020

Ah so is org-web using the backend to convert to HTML or are you saying i am supposed to export to html and point org-web to that? For some reason, I thought it wasn't since org-web produces .org links and the docs for exporting to html say:

For Org links to other .org files, the back-end automatically changes the file extension to .html and makes file paths relative.

When I export to HTML from within emacs, it seems to do the right thing and create a relative html link (removing file:) to a .html file.

@DSMasterson
Copy link

Sorry, I answered the question as a basic OrgMode question. I forgot this was an Org-Web site. I'm not supporting Org-Web -- I just happened to be looking. Judging by the age the latest messages, I'm not sure how much Org-Web is being supported, but it does seem to be working. The sample doesn't say anything about Org-Web's support of hyperlinks, though.

As to your question, I would say that your standard workflow is going to be:

  1. Write your standard Org files with Emacs on your home machine.
  2. Link them into Dropbox or Google Drive
  3. Access them with Org-Web from (say) your phone and continue editing them
  4. Iterate between your home machine and telephone to work on your Org files.
  5. Export/Publish your Org files in other forms (PDF, HTML, ...) if needed.

Note: Org-Web appears to be only for editting Org files -- not for getting an agenda of TODOs.

@DanielDe
Copy link
Owner

DanielDe commented Sep 7, 2020

Hey folks!

@elliottw I think this is a great suggestion! Can you think of any cases in which this wouldn't be the desired behavior? I suppose it's probably pretty safe if the file you're linking to is a .org.

@DSMasterson org-web does, in fact, support an agenda of your todos! You can hit the little calendar icon on the bottom (2nd from the right) to bring it up.

@DSMasterson
Copy link

Ah yes -- thanks for chiming in. Didn't mean to steal your thunder.

The agenda is just the time-line of todos for this week, correct?

@DanielDe
Copy link
Owner

DanielDe commented Sep 7, 2020

No, no worries at all!

The agenda is just the time-line of todos for this week, correct?

Yep, but you can view just a day or an entire month as well:

image

@elliottw
Copy link
Author

elliottw commented Sep 7, 2020

@DanielDe I can't realistically think of a usecase where you'd want a file:/// link for an internal org-mode (.org) link inside a web browser. I guess if you were running org-web locally, then maybe you'd just want a web interface to traverse your local org-mode file collection, but then you probably wouldn't start at https://org-web.org.

Also, I think the popularity of deft and org-roam, we're going to see a lot more linking between org-mode files than before these packages helped to support smaller/more org-mode files versus 10 years ago everyone would just have something like brain.org.

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

No branches or pull requests

3 participants