dhth / omm

"on-my-mind": A keyboard-driven task manager for the command line
https://tools.dhruvs.space/omm
MIT License
245 stars 3 forks source link

[Feature Request] Consider more URI a bookmark / Open Obsidian URI #20

Closed danielwerg closed 3 months ago

danielwerg commented 3 months ago

Describe the solution you'd like

Consider obsidian URI a "bookmark" and potentially not only obsidian URIs.

Is your feature request related to a problem? Please describe.

Putting obsidian://open?vault=VAULT&file=FILE in task context doesn't add it to "bookmarks". Makes it impossible to open Obsidian note from omm.

Describe alternatives you've considered

Copy Obsidian URI and paste:

xdg-open "obsidian://open?vault=VAULT&file=FILE"
dhth commented 3 months ago

@danielwerg Could you build omm on the branch used for #21 and let me know if that works for you?

danielwerg commented 3 months ago

@dhth Obsidian URIs work! The only thing is they look like just a regular text. Different text style and click-ability would be great.

2024-07-31_14-44-04 2024-07-31_14-48-59

dhth commented 3 months ago

The ability to click on a URI most likely is a feature of the terminal, not omm.

Here are two examples:

Alacritty:

https://github.com/user-attachments/assets/37184cc4-0795-42b3-a983-1663d504398f

Mac's default terminal:

Screen Recording 2024-07-31 at 5 05 35 PM

I'll see if I can highlight such URIs, but the ability to make text clickable is out of scope for omm, I'm afraid. Let me know if you think I got it wrong.