Skip to content

Allow extending modifier builder with custom to* #138

Answered by evan-liu
ImanMahmoudinasab asked this question in Q&A
Discussion options

You must be logged in to vote

You can define functions then use in to(), e.g.

map("l")
      .to(chromeTab("http://localhost:8080"))
      .description("Launch Localhost"),

function chromeTab(url) {
  return to$(`...`)
}

I have a few examples in my config

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ImanMahmoudinasab
Comment options

Answer selected by ImanMahmoudinasab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #137 on August 27, 2024 05:28.