Replies: 1 comment
-
+1 here. Same scenario how i arrived at this question since i'm using the lazyvim preset, but setting a default view mode would be very nice to have in general. Thanks for mentioning the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
if I go to the Commits panel, do ctrl+s and find a file, the view that appears is "Commits / Reflog" on the left and "Patch" on the right (showing the commit patch preview for the file I selected in the filter); I think this the "half" view mode but I might have that wrong.
If I do
lazygit -f <file>
, then instead of the "half" view mode like above I get the mode where only the commit history is shown. I can obviously cycle through the view modes with+
but it would be nice if I could shortcut that in some way.Is it possible to specify the view mode when using
-f
?The context to me wanting to do this is that I use Lazygit inside Lazyvim. LV uses the
-f
flag to open up the file history view. I'd like to be able to say use "half" view mode by default.Thinking more generally, I can see how using
lazygit -f <file
from the command line outside of lazyvim and have it open the view in "half" mode would also be nice (I didn't know about-f
until today :) ). I now especially likelazygit -f **<tab>
to openfzf
to find the file I want to view the history of :)If the functionality doesn't exist today then some ideas could be...
Any other ideas?
I could give contributing a PR a go if there's a consensus on how it should be done.
Beta Was this translation helpful? Give feedback.
All reactions