Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: adjust patch view layout for smaller screens #9

Open
1 task done
ceuk opened this issue Mar 20, 2024 · 9 comments
Open
1 task done

feature: adjust patch view layout for smaller screens #9

ceuk opened this issue Mar 20, 2024 · 9 comments
Labels
enhancement New feature or request

Comments

@ceuk
Copy link

ceuk commented Mar 20, 2024

Did you check the docs?

  • 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 ceuk added the enhancement New feature or request label Mar 20, 2024
@SuperBo
Copy link
Owner

SuperBo commented Mar 20, 2024

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!

@Miguerfi
Copy link

Miguerfi commented Apr 4, 2024

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

@Miguerfi
Copy link

Miguerfi commented Apr 4, 2024

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

@SuperBo
Copy link
Owner

SuperBo commented Apr 4, 2024

@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.

@Miguerfi
Copy link

Miguerfi commented Apr 4, 2024

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

edit: i'm using neovide.

@Miguerfi
Copy link

Miguerfi commented Apr 4, 2024

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

@SuperBo
Copy link
Owner

SuperBo commented Apr 4, 2024

@Miguerfi, @ceuk , you now can configure layout size, enabled via #41.

@Miguerfi: you can drop an email to supernbo@gmail.com :D, raise an issue or you can contact via Reddit.

@Miguerfi
Copy link

Miguerfi commented Apr 4, 2024

wow this come fast.

@SuperBo
Copy link
Owner

SuperBo commented Apr 5, 2024

wow this come fast.

because it's already in the roadmap 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants