open-note-to-window-title icon indicating copy to clipboard operation
open-note-to-window-title copied to clipboard

Title might not really change when using cmd+arrow key

Open link-ding opened this issue 4 years ago • 12 comments

I am currently using Keyboard maestro. There is a trigger "when the window's title change". If I click the link or click the file from the side bar, the trigger will work. However, If I use command + arrow key to navigate the file, it will not triggering the macro. It might not be the issue of this plugin cos I download the old version of this plugin and it still have this problem. Hopefully you can give some suggestion to solve this problem.

Thanks in advance.

link-ding avatar Aug 20 '21 15:08 link-ding

https://user-images.githubusercontent.com/49264539/130347808-33f0c464-e67b-47a2-97ae-269bdb0cd5b3.mov

This video might be more clear to explain the issue. I first at "algorithm design" file and get the current file window title is correct. Then I use cmd+left arrow key to back to "Computer Science" file page and get current file again. It still show the window title is the last page's title.

link-ding avatar Aug 22 '21 08:08 link-ding

Sorry, but not quite sure what's going on in your video... maybe some voiceover would help, or just a written out step-by-step. When I try navigating using e.g. ⌘cmd ← the title is updating on my system.

luckman212 avatar Aug 22 '21 14:08 luckman212

It seems like the title is updating correctly on the window, except that Keyboard Meastro is not picking it up correctly.

As a user of Keyboard Meastro myself I can test if this is something on Keyboard Meastro's side, are you using the %WindowName%1% variable?

jplattel avatar Aug 22 '21 20:08 jplattel

It seems like the title is updating correctly on the window, except that Keyboard Meastro is not picking it up correctly.

As a user of Keyboard Meastro myself I can test if this is something on Keyboard Meastro's side, are you using the %WindowName%1% variable?

Yes, this is what I am talking about. The real trigger I use for the macro is "focused window's title changed". In the video, I just show the window title by using "%WindowName%1%".

link-ding avatar Aug 23 '21 03:08 link-ding

Alright, I'm trying to replicate the bug, but it seems to work properly for me, this is the macro I've been using:

Screenshot 2021-08-23 at 08 59 01

I'm using Keyboard Meastro 9.0.6. What version are you using?

jplattel avatar Aug 23 '21 07:08 jplattel

Alright, I'm trying to replicate the bug, but it seems to work properly for me, this is the macro I've been using:

Screenshot 2021-08-23 at 08 59 01

I'm using Keyboard Meastro 9.0.6. What version are you using?

I am using keyboard maestro 9.2 image

And just to make sure, the trigger does not work will only happen when using cmd + arrow key or use go back and go forward button.

link-ding avatar Aug 23 '21 09:08 link-ding

Mmh, strange I just can't replicate it with my version of KM, since it's a paid upgrade I'm not yet updating to 9.2, thus I'm unable to test it with that version.

As for the back/forward triggers, I've tried it with both the shortcuts and that works for me. Are you using any other plugins like Sliding panes or anything that might modify the focus?

jplattel avatar Aug 24 '21 07:08 jplattel

I try to create a new vault and only install this plugin to show the title but still have this issue.

https://user-images.githubusercontent.com/49264539/130721579-9fc5a75b-df7b-4431-898e-dcfd9da9c2b4.mov

link-ding avatar Aug 25 '21 03:08 link-ding

I asked my friend whose keyboard maestro's version is 9.0.5 to replicate the issue and he has this issue as well. If it is possible can you please record a video to show me how you replicate it?

https://user-images.githubusercontent.com/49264539/130723124-f82454bf-a526-4779-8ed8-3cb2f2e5e576.mp4

link-ding avatar Aug 25 '21 03:08 link-ding

Mmh, strange I just can't replicate it with my version of KM, since it's a paid upgrade I'm not yet updating to 9.2, thus I'm unable to test it with that version.

As for the back/forward triggers, I've tried it with both the shortcuts and that works for me. Are you using any other plugins like Sliding panes or anything that might modify the focus?

Could you please show me how to replicate the issue? I've been really struggling with this problem for a long time.

link-ding avatar Sep 01 '21 11:09 link-ding

I've just released 0.3.1. I think that's the reason it worked on my computer, since I was working with newly committed code.

Could you let me know if this new version works for you? Thanks!

jplattel avatar Sep 07 '21 12:09 jplattel

Thanks for replying, I update to latest version plugin and reopen obsidian but it still does not work.

link-ding avatar Sep 07 '21 14:09 link-ding