aboutsummaryrefslogtreecommitdiff
path: root/dot_config/herdr/config.toml
blob: 3a5e2771f9b6bca914eeaa5be11e44de3a81b916 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
onboarding = false

[terminal]
# New panes inherit the focused pane's working directory.
new_cwd = "follow"

[ui]
# Keep the project/workspace sidebar visible and useful.
sidebar_width = 28
sidebar_min_width = 20
sidebar_max_width = 38

# Visually distinguish Herdr panes without wasting much space.
pane_borders = true
pane_gaps = false

# Hide the tab bar when a workspace only has one tab.
hide_tab_bar_when_single_tab = true

# Mouse support is useful on the Mac, particularly while learning Herdr.
mouse_capture = true
copy_on_select = true

[keys]
prefix = "ctrl+space"

# Project switching.
workspace_picker = "prefix+w"
goto = "prefix+g"
switch_workspace = "prefix+shift+1..9"
previous_workspace = "prefix+shift+["
next_workspace = "prefix+shift+]"

# Quickly return to the previously focused pane, even across workspaces.
last_pane = "prefix+backtick"

# Tabs inside the current project.
new_tab = "prefix+c"
previous_tab = "prefix+p"
next_tab = "prefix+n"
switch_tab = "prefix+1..9"

# Pane operations.
split_vertical = "prefix+/"
split_horizontal = "prefix+minus"
zoom = "prefix+z"
close_pane = "prefix+x"

# Keep prefixed navigation as an escape hatch.
focus_pane_left = "prefix+h"
focus_pane_down = "prefix+j"
focus_pane_up = "prefix+k"
focus_pane_right = "prefix+l"

# Direct Ctrl+HJKL is handled by herdr-splits below.

[[keys.command]]
key = "ctrl+h"
type = "plugin_action"
command = "herdr-splits.nav-left"
description = "navigate left through Neovim and Herdr"

[[keys.command]]
key = "ctrl+j"
type = "plugin_action"
command = "herdr-splits.nav-down"
description = "navigate down through Neovim and Herdr"

[[keys.command]]
key = "ctrl+k"
type = "plugin_action"
command = "herdr-splits.nav-up"
description = "navigate up through Neovim and Herdr"

[[keys.command]]
key = "ctrl+l"
type = "plugin_action"
command = "herdr-splits.nav-right"
description = "navigate right through Neovim and Herdr"

[[keys.command]]
key = "alt+h"
type = "plugin_action"
command = "herdr-splits.resize-left"
description = "resize left"

[[keys.command]]
key = "alt+j"
type = "plugin_action"
command = "herdr-splits.resize-down"
description = "resize down"

[[keys.command]]
key = "alt+k"
type = "plugin_action"
command = "herdr-splits.resize-up"
description = "resize up"

[[keys.command]]
key = "alt+l"
type = "plugin_action"
command = "herdr-splits.resize-right"
description = "resize right"

[ui.toast]
delivery = "herdr"