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

Add configuration option to set window size #178

Closed
chrisbouchard opened this issue Mar 27, 2021 · 8 comments
Closed

Add configuration option to set window size #178

chrisbouchard opened this issue Mar 27, 2021 · 8 comments

Comments

@chrisbouchard
Copy link

This is a feature request: I would like to be able to set the window's starting width and height in my ginit.vim configuration file, rather than restoring the previous size. Personally, I like to start from a known state when I launch vim, even if I may resize the window later (e.g., by maximizing or tiling to half-screen). Being able to set this in terms of rows and columns would be ideal.

@damanis
Copy link

damanis commented Jan 4, 2022

Also is good to add option to set default parameters, e.g. default workspace section in ~/.config/fvim/config.json.
Now for every new path FVim creates frame 800x600 and need to resize it manually.

@damanis
Copy link

damanis commented Mar 29, 2022

@yatli

Is it possible to add this ability?
Very uncomfortable change FVim window size every time it run from new folder.

@yatli
Copy link
Owner

yatli commented Mar 29, 2022

Let's see if I can do it in 10 minutes. Hang on.

@yatli
Copy link
Owner

yatli commented Mar 29, 2022

ok I'm done. classic. programmer's estimation of time.

@yatli yatli closed this as completed in c43c0c6 Mar 29, 2022
@damanis
Copy link

damanis commented Mar 29, 2022

@yatli

classic. programmer's estimation of time.

Great! Will you add release?

@yatli
Copy link
Owner

yatli commented Mar 29, 2022

CI pipeline full steam. 5mins.

@yatli
Copy link
Owner

yatli commented Mar 29, 2022

Usage:

" Default options (workspace-agnostic)
FVimDefaultWindowWidth 1600     " Default window size in a new workspace
FVimDefaultWindowHeight 900

@yatli
Copy link
Owner

yatli commented Mar 29, 2022

To self:

Next time for a 10min challenge, minimize distraction.
Felt too confident and went to default_font and default_font_wide, down the rabbit hole, realized it's a totally different problem. +8mins.

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

No branches or pull requests

3 participants