-
-
Notifications
You must be signed in to change notification settings - Fork 478
-
-
Notifications
You must be signed in to change notification settings - Fork 478
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
There should be a command to add a link description to the destination's #+ROAM_ALIAS #1149
Comments
🤔 I've spent some time trying to better understand your use case, so let me share my thoughts and please let me know if I missed the point 😸 From my experience, I need an alias in two cases - when (1) I want to open a note or when (2) I link a note. Both of them rely on searching for a note, but use cases are different. (1) So when I just want to open a note and I realise that it requires an alias, I open the file by original name and add an alias using (2) When I want to link a note, if I realise that the note requires an alias, I usually stop linking process, open a note and the task boils down to the (1) scenario. But here comes your interesting proposal - to link using an old name and be able to add an alias for the linked note without opening it! It actually might be useful in other scenarios - even for long existing links. @spacekitteh Is that right? :) That being said, @jethrokuan would you be interested to get a PR with functions to add/remove roam tags/aliases? I believe it might be useful by itself and possibly for resolving this issue. |
That's pretty much it. For example, I have a lot of "definition" notes, and I like to add aliases for, e.g. plural forms of the title, the initial letter capitalised, adjective forms, synonyms, etc, so that links are suggested in more cases. A concrete example:
When I'm writing in another note, say I write "topologically defective". Currently write that, then mark it, and
|
Sure. Tags was a pretty ad-hoc thing, but if people are using it extensively (I'm not), it makes sense to have first-class support for it, probably under its own file. @spacekitteh the example you gave above suggests to me that tags is just a makeshift solution for a deeper issue. You'd like to be able to find/link to notes, based on some stemmed version of your original phrase. e.g. searching for "topological defects" should also show "topological defect" I think it makes more sense to look into finding or building completion frameworks that support these. |
@jethrokuan cool, I will prepare it in few days. @jethrokuan I think that @spacekitteh example is not about tags and search, but rather about aliases and how links are titled when using
On the first though it sounds cool, but then I realised that in order to type plural form, one has to type singular form meaning that 'topological defect' will be found anyways. @spacekitteh wdyt? :) |
Oh, actually I had some time now, so here is PR: #1183 |
Yep, this is not about tags or searching at all :) #1183 is a great start; it shouldn't be much more difficult to make a wrapper function to add it to the link at point! |
v2 has |
Brief Abstract
In order to more easily populate the
#+ROAM_ALIAS
field, there should be a command to add a link's description to the destination's alias field.Long Description
org-roam
note#+ROAM_ALIAS:
for the destination, create one. Note that forid
links, this means there should be a:ROAM_ALIAS:
property, treated just like the#+ROAM_ALIAS
file headerROAM_ALIAS
field, adding quotes if necessaryThis should not bring up the destination's buffer.
Please check the following:
The text was updated successfully, but these errors were encountered: