verco icon indicating copy to clipboard operation
verco copied to clipboard

Add support for the stack command

Open Alphare opened this issue 4 years ago • 4 comments

I am note certain what the git equivalent is, so I left it unimplemented (and hidden) for now.

Related: I think the keyboard shortcuts should be part of the config file, although we would have to warn about conflicts and unreachable chords.

Alphare avatar May 08 '20 21:05 Alphare

Since there could be no git equivalent, couldn't this be a custom command? like, you can put this on the .verco/custom_commands.txt file:

s hg stack --color always

and then execute it with xs

vamolessa avatar May 09 '20 16:05 vamolessa

Well custom commands are more for unusual or... well truly custom commands I would say. I can see adding support for selecting through the stack to get the export or updateing to any given revision in the stack for example.

The hg stack command is used by pretty much all users of topic.

Alphare avatar May 09 '20 16:05 Alphare

From what I understand, this is a mercurial extension. So people may not have that command installed. I'm not sure how we should deal with that or even if it should be added as a regular command.

Maybe this is something that could be a verco extension itself?

vamolessa avatar May 09 '20 17:05 vamolessa

It could be gated behind a config option like hg.topic_enabled if you're uncomfortable with it being a top-level command?

Alphare avatar May 09 '20 18:05 Alphare