Push and set to upstream/remote #225
Replies: 1 comment 1 reply
-
Yes! I think if the user has not configured Documented by Magit:
There are a bunch of repeating cases where autocomplete/seeing a list of options to narrow down would be useful. These often also have a default value that would apply when pressing enter. Take the checkout prompt
What I make of a filtered list a'la fzf is that it:
And typical autocomplete:
They could become separate things. Since we're in the terminal, an easy way out could be to just spawn fzf. |
Beta Was this translation helpful? Give feedback.
-
When using
neogit
and before that the propermagit
, you can actually have 2 remotes: upstream (u) and "remote" or "elsewhere" (p).If you want to push, you can hit (
u
) and you'll get a list of possible remotes. After you select one, the remote will be set to the current branch's upstream. Same thing for (p
).I wanted to implement that, and I tried to see how easy it is, but I stopped because:
ratatui
and I don't think I know the repo well enough andHaving lightly studied the repo, it seems that we need a "filterable prompt":
Alongside that, we will need to implement a "Remotes" screen that allows to add/remove a remote, and change the "upstream" and "remote/elsewhere" values for the current branch.
I must admit, I care less about add/remove remote, but setting upstream and remotes I definitely need to make
gitu
my daily driver, and I really really really … want to :)So my questions would be:
gitu
?Beta Was this translation helpful? Give feedback.
All reactions