jesseduffield / lazygit

simple terminal UI for git commands
MIT License
51.14k stars 1.79k forks source link

Create a folder for staged and changes file #1105

Open Yuuki77 opened 3 years ago

Yuuki77 commented 3 years ago

Is your feature request related to a problem? Please describe. Currenlty it is kind of hard to know if the file is staged or not. I think you can check this by color of file. but I think it would be easer to add the folder for staged file like vscode does.

image

Describe the solution you'd like Create a folder for staged file Describe alternatives you've considered . Additional context .

jesseduffield commented 3 years ago

I'm interested to see who else would like to see this feature: I like having the files all in the same place so it's easy to toggle a file between staged and unstaged, however I'm open to making this something we can switch back and forth between or configure

jesseduffield commented 3 years ago

We can now filter our files panel by staged/unstaged/etc via the <c-b> keybinding which might help here

sersorrel commented 10 months ago

I'd really like this (that is: having separate panes for staged and unstaged files). Currently I struggle a bit to be sure of what exactly I have staged, if I have to scan through a big list of files.

An example of another git client that splits staged and unstaged files is Fork:

image

Obviously the ability to drag and drop files between staged and unstaged isn't possible in the terminal... but maybe it would be useful to have the display option nonetheless?

mark2185 commented 10 months ago

Currently I struggle a bit to be sure of what exactly I have staged, if I have to scan through a big list of files.

As Jesse mentioned in the comment above, does <C-B> help with that?

sersorrel commented 10 months ago

once I get used to it, potentially? it seems kind of annoying to use: either I have to awkwardly navigate a menu with the cursor keys, or double-click with the mouse – unless I'm aiming for "only staged files", then I have to only click once. (and I have to do this every time I make a commit...) but I'll give it a go!

mark2185 commented 10 months ago

once I get used to it, potentially? it seems kind of annoying to use: either I have to awkwardly navigate a menu with the cursor keys, or double-click

You can also use j and k for down and up, respectively.

But now that you mention it, they could have shortcuts like s, u and r for staged, unstaged and reset.