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

Chording the commands doesn't work #42

Open
paul-lalonde opened this issue Oct 26, 2021 · 3 comments
Open

Chording the commands doesn't work #42

paul-lalonde opened this issue Oct 26, 2021 · 3 comments

Comments

@paul-lalonde
Copy link

I'd like to keep my L* commands in a guide file and 2-1 chord to invoke them.
But using $winid to find the command context returns the window containing the command, not the target.
Instead, it should likely use the chordorigin parameter of the acme message.

@paul-lalonde
Copy link
Author

I have an experiment now that reads the event file from the L command; this of course provides a poor experience because it reads the next event, not the previous event.
Next is to get acme-lsp itself to monitor the events on the source files and make them available to L.

@paul-lalonde
Copy link
Author

A bit more poking around, and it's clear that getting the full event in L is ugly. This points to an alternate possible, though maybe less modular implementation.
@fhs Would it make sense to have the acme-lsp server itself keep an eye on each file's events and dispatch its recognized L commands directly? I could maintain some modularity by letting L accept an address parameter which if present becomes the file/address to pass instead of doing the dispatch to the lsp server directly from the acme watcher.
Have you given this any thought or do you have another design in mind?

@paul-lalonde
Copy link
Author

Often I forget how much goodness is already in Acme.
$acmeaddr contains the chorded address, which L can easily interpret.
Patch incoming.

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

1 participant