Replies: 6 comments 8 replies
-
@gi1242 |
Beta Was this translation helpful? Give feedback.
-
@gi1242 I may not have fully understood it yet, but I first created a version with a simple command to raise the application window. |
Beta Was this translation helpful? Give feedback.
-
On Wed, Aug 10, 2022 at 06:57:53AM -0700, akiyosi wrote:
I have fixed the command process.
Could you please check the operation here?
https://github.com/akiyosi/goneovim/actions/runs/2832029269
WOW! It works! Thanks so much. How did you do it?
Everything I googled seemed to say that it's not possible. Neovim-qt has
a function `GuiForeground()`, which does nothing on Plasma/Wayland.
Thanks again!
GI
…--
Don't have awk? Use this simple sh emulation:
#!/bin/sh
echo 'Awk bailing out!'
exit 2
|
Beta Was this translation helpful? Give feedback.
-
I just took a look at your code. I think your addition of
editor.window.SetWindowState(core.Qt__WindowActive)
is what did the trick. Now I have to see if I can add this line of code
into my PDF viewer. (Unfortunately it is Gtk based, so probably it won't
work 🙄)
Thanks again!
GI
…--
The energizer bunny went to jail. He was charged with battery.
|
Beta Was this translation helpful? Give feedback.
-
Oh bummer. It doesn't work 🙁. So the issue is that when I tested it earlier, there was something wrong with the nightly build. It ran under XWayland, and not natively under Wayland. I just recompiled it on my system (merged window-raise-cmd into master), so that it runs natively under Wayland. In this case the window raise command doesn't work 🙁. It prints out a message saying:
I'll check again when the QT Wayland supports this... (It's blurry if I run it under XWayland, so unfortunately I can't run it under XWayland.) Thanks again for adding it. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info. By the way, I am concerned about the blurring issue(#399). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to raise the GoNeoVim window from a script? If no, would you consider providing one?
Use case: LaTeX inverse searches. Many plugins provide the functionality by which when the user clicks a PDF file, NeoVim (or whatever frontend) moves to the corresponding location in the source (LaTeX) file. It would be desirable to also raise the corresponding NeoVim Window, but this doesn't seem possible as far as I can tell. (Note, I'm using Wayland, so I can't raise windows using
xdotool
or the likes.)If you could provide a function, say
GoneovimRaise()
(or a command) that raises the window, then it would improve the user experience a lot.There are many probably other use cases.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions