Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wondering if this can be integrated with hammerspoon? #9

Open
NyanHelsing opened this issue Mar 17, 2024 · 5 comments
Open

wondering if this can be integrated with hammerspoon? #9

NyanHelsing opened this issue Mar 17, 2024 · 5 comments

Comments

@NyanHelsing
Copy link

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?

@alex35mil
Copy link
Owner

@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.

@NyanHelsing
Copy link
Author

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
Copy link
Author

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.

@falcucci
Copy link
Contributor

falcucci commented Jul 8, 2024

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.

@erlangparasu
Copy link

erlangparasu commented Jul 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants