lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Feature: Allow selecting default file on open

Open 80avin opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. I regularly use lazygit in neovim. Most of the times, I want to see the status of currently opened file, but opening lazygit highlights the first modified file by default. It doesn't even support vim motions, hence it always becomes frustrating to go to desired fle.

Describe the solution you'd like Using CLI interface, allow providing a default file selection. This is the minimum requirement, however I would like the cli interface to grow and cover more options.

Describe alternatives you've considered No alternative.

Additional context Not possible using custom commands.

80avin avatar May 29 '24 18:05 80avin

It doesn't even support vim motions

It should, right out of the box. Which version are you using?

mark2185 avatar May 29 '24 18:05 mark2185

@mark2185 I'm using it inside neovim without any major modifications in the shortcuts. It provides the simpler ones like hjkl, but not ranges (4j) or gg and G shortcuts to quickly jump around in large lists.

80avin avatar May 31 '24 19:05 80avin

<count><movement> isn't supported, but I don't even think it should be, simple navigation is more than enough.

gg and G are there, but under < and >, I think.

mark2185 avatar May 31 '24 21:05 mark2185