'ignore' mode not working properly #78
|
So I was trying to play on QBReader for a little bit, only to discover the website's shortcut to buzz (it's a trivia game), the spacebar, was conflicting with Glide's spacebar in normal mode. It worked in insert mode, but it kept putting me on normal mode after every question. I figured it would be better to just put it in ignore mode on that website only. This is when I discovered the issue. It wouldn't put me in ignore mode (Shift + Escape) worked fine, but I don't want to have to do that every time I go to the website. This is my current glide config snippet that isn't working: glide.autocmds.create("UrlEnter", {
hostname: "https://www.qbreader.org/*",
}, async () => {
await glide.excmds.execute("mode_change ignore");
return () => glide.excmds.execute("mode_change normal");
});I used |
Replies: 1 comment 1 reply
|
Ah your autocmd will never be triggered because you're matching with I think this should work: glide.autocmds.create("UrlEnter", {
hostname: "www.qbreader.org",
}, async () => {
await glide.excmds.execute("mode_change ignore");
return () => glide.excmds.execute("mode_change normal");
}); |
Ah your autocmd will never be triggered because you're matching with
hostnamebut passing a full URL.I think this should work: