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

Multiple actions in keybindings - possible? #638

Closed
haakonstorm opened this issue Apr 25, 2020 · 5 comments
Closed

Multiple actions in keybindings - possible? #638

haakonstorm opened this issue Apr 25, 2020 · 5 comments
Milestone

Comments

@haakonstorm
Copy link

keyBindings {
  "Tab" {   
    id "core.change.current.pane" 
    id "core.swap.panes" 
  }
}

I'm trying to get Marta to just interchange the path with the path in the inactive pane. :)

@yanex
Copy link
Member

yanex commented Jul 7, 2020

I will add a virtual action that accepts other action ids in arguments.

@yanex yanex added the feature label Jul 7, 2020
@yanex yanex added this to the 0.7.2 milestone Jul 7, 2020
@yanex yanex added the fixed label Aug 4, 2020
@yanex yanex closed this as completed Aug 4, 2020
@yanex
Copy link
Member

yanex commented Nov 12, 2020

Here's the syntax (Marta 0.8):

keyBindings {
    "Cmd+Shift+A" {
        id "core.run.actions"
        actions {
            <action id 1> <args>
            ...
            <action id N> <args>
        }
    }
}

e.g.

keyBindings {
    "Cmd+Shift+A" {
        id "core.run.actions"
        actions {
            "core.open" null
            "core.go" null
        }
    }
}

@yanex yanex mentioned this issue Nov 13, 2020
@haakonstorm
Copy link
Author

Awesome!
Possible to become beta - tester somehow?

@yanex
Copy link
Member

yanex commented Nov 15, 2020

Just download the binary from here :)

#688

@sublimal
Copy link

sublimal commented Jun 5, 2022

Can this syntax be added to the documentation?
Alternatively an example in the preferences/config would be helpful.

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

No branches or pull requests

3 participants