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

Enable confirm quit by default #1440

Merged
merged 6 commits into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/window/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub struct WindowSettings {
pub touch_deadzone: f32,
pub touch_drag_timeout: f32,
pub background_color: String,
pub confirm_quit: bool,
}

impl Default for WindowSettings {
Expand All @@ -29,6 +30,7 @@ impl Default for WindowSettings {
touch_deadzone: 6.0,
touch_drag_timeout: 0.17,
background_color: "".to_string(),
confirm_quit: true,
}
}
}
Expand Down
11 changes: 11 additions & 0 deletions website/docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ Setting `g:neovide_fullscreen` to a boolean value will set whether the app shoul
screen. This uses the so called "windowed fullscreen" mode that is sometimes used in games which
want quick window switching.

#### Confirm Quit

```vim
let g:neovide_confirm_quit=v:false
" or
let g:neovide_confirm_quit=0
```

If set to `true`, quitting while having unsaved changes will require confirmation.
Enabled by default.

#### Remember Previous Window Size

```vim
Expand Down