gitnow icon indicating copy to clipboard operation
gitnow copied to clipboard

Add support to previous branch shorthand

Open fpaguiar opened this issue 4 years ago • 2 comments

Hi,

Can I request an enhancement for the move comand? I usually go between current and previous branch by using the - shorthand. Would you consider adding support for it?

~/ (master) $ move staging
~/ (staging) $ move -
~/ (master) $ 

Thank you!

fpaguiar avatar Apr 21 '21 20:04 fpaguiar

The idea is not bad but I think we can use keybindings for movement instead. At least for forward and backward navigation if user is under the move command.

So I suggest: alt + → (forward) and alt + ← (backward). Remember that Fish default directory navigation is also using those keybindings but since these ones only apply for directories it won't interfere with move keybindings in that case.

What do you think?

joseluisq avatar Apr 22 '21 07:04 joseluisq

Thanks for the quick response!

Tbh I'm quite new to Fish, so I've never used keybindings before. It sounds really nice though! 👍

As long as there is a way to move to previous branch without typing its name, I'll be glad with any solution.

fpaguiar avatar Apr 22 '21 17:04 fpaguiar

Released on 2.11.0

joseluisq avatar Mar 18 '23 21:03 joseluisq