pvojtechovsky / obsidian-link-with-alias

Obsidian plugin for handy creation of links and alias in front matter of target document
MIT License
33 stars 1 forks source link

[Feature Request] New Behavior → Create a Link AUTOMATIC when Target Note already HAS an aliases frontmatter #1

Closed FelipeRearden closed 1 year ago

FelipeRearden commented 1 year ago

Hello @pvojtechovsky !!!!

I just saw your plugin submission and I have to say thank you for creating a plugin to deal with aliases. I have been struggling with this subject for a long time and I am very excited about your plugin :)

In this FR I would like to share with you an idea about an additional workflow that I have that is not supported yet in this this plugin.

In a nutshell → When the selected text in Source Note is an alias of a note in the vault (Target Note ) after executing the command Create Link with Alias it will automatic create a link with the connection of the Target Note

This is the behavior that I am talking about...

📸 BEFORE HITTING THE COMMAND Create Link with Alias D42C4961-1A10-4C37-B5BB-6A66B4D4A935

📸 AFTER HITTING THE COMMAND Create Link with Alias 48FB7324-033D-46B6-9BF2-BDB222D062C1

⚙️ The idea is to: 1️⃣ get the selection and 2️⃣ search for all notes that has the selection in the frontmatter under the item aliases and 3️⃣ return the target note as a backlink with the selection as an alias

Please, let me know if something is not 100% clear about this FR. I try my best to explain my idea but I can elaborate more about this.

Thanks for reading this !!!!

I wish you a fantastic day ☀️

pvojtechovsky commented 1 year ago

Hi @FelipeRearden

The request is clear and it is already supported by Obsidian link autocompletion popup which searches for aliases and offers them for you. So usually it is enough to run the command and then press ENTER and you are done with your use case. I used that use case a lot too :-)

use_case_4

pvojtechovsky commented 1 year ago

I have an experience that this feature is not fitting for my use case, because sometime I want to create new different target note for the existing alias. It sometime happens for me that alias is an synonym used for more target notes... and I would have no chance to enter different target name when plugin would immediately create link to existing note.

I have a hotkey for my action CTRL+K. So I handle your use case with simply pressing CTRL+K and then immediately ENTER. It is quite fast and very flexible.

pvojtechovsky commented 1 year ago

@FelipeRearden I suggest to keep the original issue request and all comments visible, because you are not the only who will come with similar idea. So others can continue in that discussion and may be found a use case where it can be really improved. It can help me to save time. Therefore I restored as much as i was able to restore.

FelipeRearden commented 1 year ago

Now I am gonna tell you what I am felling about this....

ABOUT ME

I am in the Obsidian community for more than 3 years. If you check, you will see that I have more than 400 contributions to plugins (FR and BR). I share my ideas developers to improve there plugins and to improve my workflow.

You probably using a plugin that was tested by me.

Your behavior

The way that you respond to my FR indicates...

The request is clear and it is already supported by Obsidian link autocompletion popup which searches for aliases and offers them for you. So usually it is enough to run the command and then press ENTER and you are done with your use case. I used that use case a lot too :-)

When a developer answer a FR by suggesting a native feature is because he did not know how to solve the users problem.

Since he dont have courage to overcome this absence of knowledge (which is common in the Obsidian community since there is not much documentation) he took the easiest way which saying to user a native command.

I have an experience that this feature is not fitting for my use case, because sometime I want to create new different target note for the existing alias.

If you are developing and publishing a plugin to the whole communitty YOU HAVE TO CONSIDER NEW FEATURES BASED O THE NEED OF THE COMMUNITY .

If you are not willing to add new features that you are not gonna use but it will makes peoples life better, DONT SUBMIT your plugin. Keep with you and use as your wish, your behavior is not aligned with the community.

We are a bunch of people that follow there axioms: TEACH, LEARN and SHARE. Look at Discord and see that people answer easy and hard questions about plugins, themes, code every time.

Everybody is willing to help based in their strong knowledge. We are not selfish. that why Obsidiain is so powerful

I suggest to keep the original issue request and all comments visible, because you are not the only who will come with similar idea. So others can continue in that discussion and may be found a use case where it can be really improved. It can help me to save time. Therefore I restored as much as i was able to restore.

You want this open to be able to hurt other people that will came here ask for features. You will repeat the behavior that did to me.

MY FR

My FR is a good idea for your plugin: → it's a new feature that doesn't break current features. PUT A TOGGLE IN THE SETTING to change the behavior when there is an alias in the Target Note and everybody is happy.

→ It's aligned with the core principles of the plugin. I am not asking for a sidebar view that there is any relation with your plugin.

My FR is a new criteria that evaluates the alias in the target note before executing a command:

Matrix → There is no alias in the Target Note ✅ → There is alias in the Target Note BUT I wan to choose some possible notes ✅ (this is important for users that has the same alias for two different notes); → There is alias in the Target Note and I want to create the backlink without any decision ❌ ITS MY FR !!!!!

My FR is the missing point of this puzzle. after this, all cases were covered. BUT I THINK I KNOW WHY YOU CANT SEE THIS ....

YOUR ISSUE

The real issue here is that I dont know how to solve my FR. Instead of been humble and interact with me saying that you are gonna try to solve but you dont know if would be possible, you took the wrong path.

nobody here knows everything, we are here trying to solve our plugins issues by trial and error and we ask for help and we give help.

It will work with newbies, not if a user like me that is here for almost 4 years.

This FR is very important to me. I am trying to solve this by myself through templater and js scripts for almost a year. I dont know how to code but I am trying to solve this.

As you already could see english is not my native language and I need the aliases frontmatter to generate a backlink from a text in my native language that has a note in english. 90% of my vault is in english but I have some notes that are not in english because I can't understand.

DF61051C-1350-474D-A1CC-2C685ABAFBAF

Test selected in the Source Note: amor Target Note name: Love Aliases: [amor]

amor means Love in my native language.

You answer to my FR hurts me a lot, because I know that my idea is feasible with this plugin which is the only one that deals with alias, which is a subject that few people care.

pvojtechovsky commented 1 year ago

Hi @FelipeRearden

Thanks for explaining how do you feel, thanks to my answer. It was not intentional from my side. I am sorry.

I just tried your test case with "amore" and current version of this plugin delivers solution you need in 100ms. It is enough to press Ctrl+K and then ENTER for me. With my current understanding of your feature request, the only change will be that it will be enough to press Ctrl+K only. So the improvement which this feature request brings is avoiding of pressing of ENTER.

Do I understand it right?

FelipeRearden commented 1 year ago

Hello @pvojtechovsky

Thanks for explaining how do you feel, thanks to my answer. It was not intentional from my side. I am sorry.

Thanks for reading my long reply. Apologies accepted and thank you for the patience with my feelings. We are good :)

With my current understanding of your feature request, the only change will be that it will be enough to press Ctrl+K only. So the improvement which this feature request brings is avoiding of pressing of ENTER.

Do I understand it right?

100% perfect @pvojtechovsky

The FR is about creating the backlink without out pressing ENTER . I did this video manually (using the clipboard) to demonstrate what we could get after hitting CRTL+K when the selection is a frontmatter alias of a note in the vault

https://github.com/pvojtechovsky/obsidian-link-with-alias/assets/85180696/f3936e41-8632-4ff6-9846-cfce9aeacf69

Let me know if you need more information and I wish you a fantastic day.

pvojtechovsky commented 1 year ago

Hello @FelipeRearden

I am glad that I can be sure now that I understand your request.

I feel that it will help here if I tell you about myself. I am software developer and architect with more then 20 years of experience in IT. And my experience tells me that if I compare A) the effort which I (or any contributor) have to spent on developing the feature which saves pressing of one ENTER + effort needed to maintain it in future and to describe configuration + effort needed by plugin clients to decide which configuration setting to use + increase of complexity caused by extra setting B) the effort which is saved for client when he press CTRL+K and ENTER or just CTRL+K ...then I still come to decision that it would be not good decision to implement this feature request.

I am open to discuss that. The best approach how to convince me to spent the expensive time of my live on that, is to provide a real use case where this new feature really saves some measurable time for the Obsidian users.

And last question. Did you already tried to install this plugin and tried to use it? Is it really so big problem to press ENTER?

Without plugin you need about 20s to create a link with alias. With plugin you can do it in 100ms. With the suggested feature request you can do it in 95ms. Does that 0.005s of saving really makes sense?

Or do I understand it wrong?

Have a nice weekend, and thanks for your feedback and interest in this plugin. I want to help Obsidian community and I love Obsidian, but you did not convinced me yet ;-)

FelipeRearden commented 1 year ago

Hello @pvojtechovsky

I feel that it will help here if I tell you about myself. I am software developer and architect with more then 20 years of experience in IT.

Thanks for sharing this information !

And my experience tells me that if I compare A) the effort which I (or any contributor) have to spent on developing the feature which saves pressing of one ENTER + effort needed to maintain it in future and to describe configuration + effort needed by plugin clients to decide which configuration setting to use + increase of complexity caused by extra setting B) the effort which is saved for client when he press CTRL+K and ENTER or just CTRL+K ...then I still come to decision that it would be not good decision to implement this feature request.

100% understand your approach about this decision.

Without plugin you need about 20s to create a link with alias. With plugin you can do it in 100ms. With the suggested feature request you can do it in 95ms. Does that 0.005s of saving really makes sense? Or do I understand it wrong?

The main issue here is that I spend 6-8 hours working inside Obsidian I have to do this command around 70-100 times. That's why the automation is important to me. Every time that I need to create a backlink with an alias I have to break my flow to hit enter and then continue to work. More about this below ...

Have a nice weekend, and thanks for your feedback and interest in this plugin. I want to help Obsidian community and I love Obsidian, but you did not convinced me yet ;-) :)

I understand you input and I am gonna share my real workflow below to see what you think.

I am open to discuss that. The best approach how to convince me to spent the expensive time of my live on that, is to provide a real use case where this new feature really saves some measurable time for the Obsidian users.

My Workflow

My vault is English but I have some content that is my native language Portuguese. To deal with this issue I decide to apply the following criteria: → Notes will be in English → Alias will have with the translation of the note title in Portuguese

800FC147-1DA6-4DF4-B6D2-2256A109B344

This way I can process content in English and Portuguese and keep everything connected when creating backlinks and new content.

My Automation

Based on this I have a bunch of Templater Scripts to help me to automate my workflow of creating backlinks which is the subject of this FR.

This is my output matrix: C498AD86-6215-4FEE-9AF1-B44DCDAC8866

This script is a bunch of IF STATEMENT that runs different QuickAdd macros is based on each state. This way, with a single command I can create the output that I need based on the status quo.

DEMO

To save time I run this command from the context menu from Fn + ← which automatic selects the nearest word. And I have a bunch of other scripts to run another commands in the selection.

🅰️ Selection is Empty

https://github.com/pvojtechovsky/obsidian-link-with-alias/assets/85180696/b3908524-cafb-4e32-b86e-aaf40b349716

🅱️ Selection is NOT Empty

🅱️1️⃣ Selection is a Note

https://github.com/pvojtechovsky/obsidian-link-with-alias/assets/85180696/4bea6d1e-4063-4e37-93bb-59fa8276a488

🅱️2️⃣ Selection is an Alias →

Run your plugin without hitting ENTER 🙏🙏🙏

🅱️3️⃣ Selection does NOT exist in the Vault

https://github.com/pvojtechovsky/obsidian-link-with-alias/assets/85180696/93ae2770-37f1-49fe-b987-2a2cf0ed4032


Let me know if something is not clear. I hope I convinced you 🙏🙏🙏

Have a great day ☀️

pvojtechovsky commented 1 year ago

Hello Felipe,

that really makes sense. More I (as architect) understand your user story/use case/problem, more I can give you the best and cheapest solution in current situation.

If I understood it well, the problem you are solving seems to me same like problem I had before I implemented my plugin. Actually I wonder why the plugin fits to my process and doesn't fit to your. During last 2 weeks I made more 1700 links in my vault using my plugin. And all cases I faced were solvable in fast way.

Did you tried my plugin directly without integration with Templater scripts? It does nearly the same like that Templater script. So may be you do not need that?

There is one use case which I do different ... when I need a new link, then

  1. type in the link display text
  2. select the text and press CTRL+K
  3. usually just press ENTER and I am done, because Obsidian looks for aliases on its own and offers them automatically.

Let me know how plugin works for you without Templater. What is missing in such case?

Have a nice day ;-)

FelipeRearden commented 1 year ago

Hello @pvojtechovsky !

I was thinking about this before seen your message ...

I agree with you. it is time for me to fit your plugin into my workflow and test to see how I feel instead of change the how the plugins to fit my workflow.

I am gonna to this and I get back to you. Let's keep talking !

Have a great day too :)

FelipeRearden commented 1 year ago

I am gonna to this and I get back to you. Let's keep talking !

Hello @pvojtechovsky !!!

Just to let you know that I did a two 3h sessions using your plugin instead my script and it worked very well !

Feel absolutely free to close this issue :)

Have a great day !!!!!

pvojtechovsky commented 1 year ago

Glad to hear that this feature is not needed and current behavior is sufficient.

Felipe, Have a nice day too