fugit2.nvim icon indicating copy to clipboard operation
fugit2.nvim copied to clipboard

feature: adjust patch view layout for smaller screens

Open ceuk opened this issue 1 year ago • 9 comments

Did you check the docs?

  • [X] I have read all the docs

Is your feature request related to a problem? Please describe.

image

Patch view is basically unreadable on smaller screens (the neovim window in the above was 80% of my laptop screen width)

Describe the solution you'd like

Would be good if when under a certain width, the staged/unstaged panes were arranged vertically instead of horizontally

Describe alternatives you've considered

Using a bigger screen :)

Additional context

No response

ceuk avatar Mar 20 '24 10:03 ceuk

I agree to your solution (vertically showing patch), it is quite oppose to the original aesthetic design. However, the fix may take a while, I need to take a look at nui document.

Thank you!

SuperBo avatar Mar 20 '24 17:03 SuperBo

i think the better way to do this is let the user set their own window resolution.

m1guer avatar Apr 04 '24 12:04 m1guer

i think the better way to do this is let the user set their own window resolution.

@ceuk you can do something like this in the plugin folder. i don't know how to set this in the opt on plugin install but works. -- git_status.lua image

before: image

after: image

m1guer avatar Apr 04 '24 14:04 m1guer

@Miguerfi, I'm working on your suggestion, allow setting window size via opts.

Can I ask what colorscheme are you using, the git graph should have better colors lol.

SuperBo avatar Apr 04 '24 15:04 SuperBo

i'm currently using nvchad for my base cfg. the theme is "onedark"

edit: i'm using neovide.

m1guer avatar Apr 04 '24 16:04 m1guer

and how i can contribue for this project? how i can enter in contact with you?

m1guer avatar Apr 04 '24 16:04 m1guer

@Miguerfi, @ceuk , you now can configure layout size, enabled via https://github.com/SuperBo/fugit2.nvim/pull/41.

@Miguerfi: you can drop an email to [email protected] :D, raise an issue or you can contact via Reddit.

SuperBo avatar Apr 04 '24 17:04 SuperBo

wow this come fast.

m1guer avatar Apr 04 '24 17:04 m1guer

wow this come fast.

because it's already in the roadmap 🤘

SuperBo avatar Apr 05 '24 01:04 SuperBo