vrtmrz / obsidian-tagfolder

MIT License
221 stars 17 forks source link

【feature request】change default behavior when clicking tag inside note #41

Open liangzh-404 opened 2 years ago

liangzh-404 commented 2 years ago

After using tag folder, I don't use the original tag pane(and search) anymore. But every time I click the tag inside notes, they will jump to the search pane. Is it possible to change the behavior and every time you click the tag, it will highlight and unfold the tag inside tag folder?

vrtmrz commented 2 years ago

@liangzh-404 Thank you for your waiting! (and sorry to forget the reply)

After using tag folder, I don't use the original tag pane(and search) anymore.

Yes, I am completely like you.

I couldn't figure out how to implement this for a long time, but I did it today, with the reference to some great code from a pioneer!

Would you please try the latest version? This can be enabled by the new configuration that Search tags inside TagFolder when clicking tags

liangzh-404 commented 1 year ago

@liangzh-404 Thank you for your waiting! (and sorry to forget the reply)

After using tag folder, I don't use the original tag pane(and search) anymore.

Yes, I am completely like you.

I couldn't figure out how to implement this for a long time, but I did it today, with the reference to some great code from a pioneer!

Would you please try the latest version? This can be enabled by the new configuration that Search tags inside TagFolder when clicking tags

thanks for your implementation! Much better. But I think there are 2 things maybe you can consider:

  1. currently, when you click a tag, it will append in the search box, will it be better if we can "replace" it?
  2. when you click a tag, it will search the tag , but can we auto expand the tag?
vrtmrz commented 1 year ago

@liangzh-404
Thank you for your brilliant advice! I also thought so and fixed it as so about No.1. For detail, now we can modify search words, replacing them with clicking a tag, adding with ctrl key, and excepting with ctrl+shift. No.2 is possibly a bit harder. if they are deeply in the hierarchy, it takes a bit large load.