NeoHub icon indicating copy to clipboard operation
NeoHub copied to clipboard

wondering if this can be integrated with hammerspoon?

Open NyanHelsing opened this issue 1 year ago • 5 comments

would love to be able to configure this from hammerspoon; i.e have hammerspoon handle the keybinding and then a lua func to launch NeoHub?

NyanHelsing avatar Mar 17 '24 23:03 NyanHelsing

@NyanHelsing Can you elaborate more on the workflow you want to achieve? I never used hammerspoon and I don't understand what you mean by integration.

alex35mil avatar Apr 05 '24 11:04 alex35mil

hammerspoon enables a bunch of automation right? so right now I have a neovim server set up and connect neovide to that neovim server.

I then use hammerspoon to sen commands to that neovim server to switch sessions.

I think it would be cool to have neohub integrated into a workflow like that, so that the switcher could be used to switch sessions with something that has a gui, that could be triggered by a hammerspoon binding, and subsequently switch the active session that the neovim server has active(swapping/saving buffers etc).

NyanHelsing avatar Apr 06 '24 20:04 NyanHelsing

i wrote a blog post about what i've set up here https://nyanhelsing.io/blog/neovide-session-hammerspoon

Its got some rough edges, and i'm thinking it could be integrated with somthing like NeoHub that has a lot of similar goals to make something that people could use a little more batteries included.

NyanHelsing avatar Apr 06 '24 20:04 NyanHelsing

in theory it should work but it seems that neohub doesn't support the neovim commands passed by opts. for example:

neohub $PWD/$1 --opts -- -c "echo 'hey'"

all we need to do is fix this trick and then you would be able to reproduce your scripts through neohub.

falcucci avatar Jul 08 '24 20:07 falcucci

Maybe neohub need to adds new command like neohub instances to output a json data that contains available instances info (like id, neovide cwd, proccess id, etc.). Also add custom command like neohub activate <id> to open specific window.

erlangparasu avatar Jul 26 '24 19:07 erlangparasu