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

Feature request: assign F2 key to "Rename branch" #3503

Closed
jrfnl opened this issue Jan 23, 2017 · 10 comments
Closed

Feature request: assign F2 key to "Rename branch" #3503

jrfnl opened this issue Jan 23, 2017 · 10 comments

Comments

@jrfnl
Copy link

jrfnl commented Jan 23, 2017

I often rename branches to keep track of work in progress / PR / waiting for.... etc. and I noticed myself intuitively using the F2 key to do this - which doesn't work -.
F2 seems to make sense as it is used in a lot of other programs for "edit name" type functionality and I was wondering whether it could be added or alternatively, whether the "Rename branch" command could be added to the list of commands you can assign a hotkey to.

@marazt
Copy link
Contributor

marazt commented Jan 23, 2017

It is a good idea. But there is one problem. If you have multiple branches on the same line, the shortcut does not know which branch you want to rename. So for this situation there must be some option how to specify a branch to be renamed (probably some dialog).

@jrfnl
Copy link
Author

jrfnl commented Jan 23, 2017

Just thinking out loud: what about automatically assuming the branch to rename is the one selected on the screen if the selected commit is the head of a branch (is that the right term?).

screenshot

If a commit is selected without a branch head or if no commit is selected, show a dialogue ?

@mdonatas
Copy link
Contributor

@jrfnl I think the point of previous comment was regarding situation when there are multiple branches pointing at the same commit. Then you'd need a dialog to make a selection.

@jrfnl
Copy link
Author

jrfnl commented Jan 25, 2017

@mdonatas Sorry, I read it too quickly. Still a (minimalistic) dialogue for multiple branches pointing to the same commit and for a selected commit not being the head of a branch, sounds good.

@vbjay
Copy link
Contributor

vbjay commented Jan 25, 2017 via email

@marazt
Copy link
Contributor

marazt commented Jan 25, 2017

@vbjay That is exactly what I pointed in my previous post.

@vbjay
Copy link
Contributor

vbjay commented Jan 25, 2017 via email

@vbjay
Copy link
Contributor

vbjay commented Jan 25, 2017 via email

@jrfnl
Copy link
Author

jrfnl commented Jan 25, 2017

@vbjay No need to get all wound up over some terminology confusion. I already pointed out myself in my second comment that I wasn't sure if I was using the right terms to express what I meant.

All the same I did get the point. You clearly didn't.

I know. He didn't seem to get it

Oh dear... misogyny or just professional deformation ?

RussKie pushed a commit to RussKie/gitextensions that referenced this issue Apr 8, 2017
Allow to rename and delete branches and tags from keyboard.
Actions:
* F2 - rename
* Del - delete

If there is...
* no valid branch or tag to rename or delete the action is ignored
* a single branch or tag - the respective action dialog is launched
* multiple branches or tags then a quick select dialog is launched to
specify the exact ref to perform action on.

Addresses gitextensions#3503
RussKie pushed a commit to RussKie/gitextensions that referenced this issue Apr 8, 2017
Allow to rename and delete branches and tags from keyboard.
Actions:
* F2 - rename
* Del - delete

If there is...
* no valid branch or tag to rename or delete the action is ignored
* a single branch or tag - the respective action dialog is launched
* multiple branches or tags then a quick select dialog is launched to
specify the exact ref to perform action on.

Addresses gitextensions#3503
RussKie pushed a commit to RussKie/gitextensions that referenced this issue Apr 8, 2017
Allow to rename and delete branches and tags from keyboard.
Actions:
* F2 - rename
* Del - delete

If there is...
* no valid branch or tag to rename or delete the action is ignored
* a single branch or tag - the respective action dialog is launched
* multiple branches or tags then a quick select dialog is launched to
specify the exact ref to perform action on.

Addresses gitextensions#3503
RussKie pushed a commit to RussKie/gitextensions that referenced this issue Apr 9, 2017
Allow to rename and delete branches and tags from keyboard.
Actions:
* F2 - rename
* Del - delete

If there is...
* no valid branch or tag to rename or delete the action is ignored
* a single branch or tag - the respective action dialog is launched
* multiple branches or tags then a quick select dialog is launched to
specify the exact ref to perform action on.

Addresses gitextensions#3503
@jbialobr jbialobr added this to the 2.50 milestone Apr 9, 2017
@jbialobr jbialobr closed this as completed Apr 9, 2017
@jrfnl
Copy link
Author

jrfnl commented Apr 9, 2017

Thank you @RussKie for adding this in!

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

5 participants