feat: move all keybind mode related options to keybind config
This commit is contained in:
		
							parent
							
								
									cf1befe3fa
								
							
						
					
					
						commit
						3b8982ac26
					
				
					 12 changed files with 85 additions and 140 deletions
				
			
		| 
						 | 
				
			
			@ -5,6 +5,9 @@
 | 
			
		|||
    },
 | 
			
		||||
    "normal": {
 | 
			
		||||
        "on_match_failure": "ignore",
 | 
			
		||||
        "name": "NOR",
 | 
			
		||||
        "line_numbers": "relative",
 | 
			
		||||
        "cursor": "block",
 | 
			
		||||
        "press": [
 | 
			
		||||
            ["ctrl+b", "move_scroll_page_up"],
 | 
			
		||||
            ["ctrl+f", "move_scroll_page_down"],
 | 
			
		||||
| 
						 | 
				
			
			@ -232,6 +235,9 @@
 | 
			
		|||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "insert": {
 | 
			
		||||
        "name": "INS",
 | 
			
		||||
        "line_numbers": "absolute",
 | 
			
		||||
        "cursor": "beam",
 | 
			
		||||
        "press": [
 | 
			
		||||
            ["ctrl+u", "move_scroll_page_up"],
 | 
			
		||||
            ["ctrl+d", "move_scroll_page_down"],
 | 
			
		||||
| 
						 | 
				
			
			@ -242,6 +248,9 @@
 | 
			
		|||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "select": {
 | 
			
		||||
        "name": "SEL",
 | 
			
		||||
        "line_numbers": "relative",
 | 
			
		||||
        "cursor": "block",
 | 
			
		||||
        "press": [
 | 
			
		||||
            ["ctrl+b", "move_scroll_page_up"],
 | 
			
		||||
            ["ctrl+f", "move_scroll_page_down"],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,9 @@
 | 
			
		|||
    "normal": {
 | 
			
		||||
        "syntax": "vim",
 | 
			
		||||
        "on_match_failure": "ignore",
 | 
			
		||||
        "name": "NORMAL",
 | 
			
		||||
        "line_numbers": "relative",
 | 
			
		||||
        "cursor": "block",
 | 
			
		||||
        "press": [
 | 
			
		||||
            ["b", "move_word_left"],
 | 
			
		||||
            ["w", "move_word_right_vim"],
 | 
			
		||||
| 
						 | 
				
			
			@ -63,8 +66,21 @@
 | 
			
		|||
            ["<CR>", "smart_insert_line"]
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "visual": {
 | 
			
		||||
        "syntax": "vim",
 | 
			
		||||
        "on_match_failure": "ignore",
 | 
			
		||||
        "name": "VISUAL",
 | 
			
		||||
        "line_numbers": "relative",
 | 
			
		||||
        "cursor": "underline",
 | 
			
		||||
        "press": [
 | 
			
		||||
            ["<Esc>", "enter_mode", "normal"],
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "insert": {
 | 
			
		||||
        "syntax": "vim",
 | 
			
		||||
        "name": "INSERT",
 | 
			
		||||
        "line_numbers": "absolute",
 | 
			
		||||
        "cursor": "beam",
 | 
			
		||||
        "press": [
 | 
			
		||||
            ["jk", "enter_mode", "normal"],
 | 
			
		||||
            ["<Esc>", "enter_mode", "normal"],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue