Add configurable default vi mode (#660)

- `vi_default_mode` added
- supports `normal` and `insert`
This commit is contained in:
Varun Vasan V
2024-07-27 15:01:55 +05:30
committed by GitHub
parent 2b0301c1d0
commit a939b82179
4 changed files with 13 additions and 1 deletions

View File

@@ -194,7 +194,7 @@ pub fn main() !void {
defer password.deinit();
var active_input = config.default_input;
var insert_mode = !config.vi_mode;
var insert_mode = !config.vi_mode or config.vi_default_mode == .insert;
// Load last saved username and desktop selection, if any
if (config.load) {