Replies: 2 comments 1 reply
-
We're considering it, but we'd like to collect enough real use cases first.
What you've described is one, but it could be achieved by adding a
dedicated feature without having to implement generic chaining.
…On Wed, Jan 8, 2025, 1:18 PM Nic ***@***.***> wrote:
Is it possible to do action chaining?
my use case is simple... when I save with Cmd-S I also would like to run
gofmt.
I could bind Cmd-S to a [Run] build which would save the file as well as
run gofmt. I'm not aware of a command to 'save' though.
A cleaner way would be allow *sequencing* actions, so Cmd-S saves and
then runs an action.
Thanks!
—
Reply to this email directly, view it on GitHub
<#501>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4OX77UXAIPKMTBRQQZZSKT2JRVF3AVCNFSM6AAAAABUYYVMWKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXG44TKMJYG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Not saying you need to implement it, it's what we're considering
implementing instead of more generic chaining if it's the only real use
case that people have. All of what you've said is "do an action on save",
which would be a simpler feature
…On Wed, Jan 8, 2025, 6:53 PM Nic ***@***.***> wrote:
Understandably. But because of the nature of the compiler being
unaccessible, it's impossible for me to do it.
There are plenty of reason why chaining of action is a good idea though,
such as formatting above.
You might also want to build after save, or kick off a linter, or
automatically check that the file contains a company header by running a
script, etc.
—
Reply to this email directly, view it on GitHub
<#501 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4OX77WZVNW5TC37DTG2AKD2JS4NTAVCNFSM6AAAAABUYYVMWKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNZWHEYDCOI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to do action chaining?
my use case is simple... when I save with
Cmd-S
I also would like to rungofmt
.I could bind
Cmd-S
to a[Run]
build which would save the file as well as rungofmt
. I'm not aware of a command to 'save' though.A cleaner way would be allow sequencing actions, so Cmd-S saves and then runs an action.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions