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

acme.rc: winwriteevent drops chorded arguments #165

Open
mkhl opened this issue Apr 10, 2018 · 0 comments
Open

acme.rc: winwriteevent drops chorded arguments #165

mkhl opened this issue Apr 10, 2018 · 0 comments

Comments

@mkhl
Copy link
Contributor

mkhl commented Apr 10, 2018

  1. Write a script that reads acme events and passes them through to Acme:

    #!/usr/local/plan9/bin/rc
    
    . $PLAN9/lib/acme.rc
    
    fn event {
    	winwriteevent $*
    }
    
    wineventloop
    
  2. Run that script in an Acme window.

  3. In that window, 2-1 chord some arguments to some command, say a path to ls.

  4. Notice that winwriteevent dropped the chorded arguments.

The same thing happens for Win.WriteEvent from the 9fans.net/go/acme Go package.

The acmeevent(1) man page states:

Only the first four arguments are necessary: the rest are ignored.

but it doesn’t seem to be the case that only those are necessary, and this makes it impossible to use chording in Acme clients on commands that the clients don’t handle themselves.

Or maybe I’m misunderstanding, in which case maybe we could improve the docs?

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