@@ -103,40 +103,40 @@ export const useNavigationIndexHotkeys = ({
103103 } ;
104104
105105 useCommand ( selectPreviousItem , {
106+ group,
106107 enabled : focusedPanel === panel ,
107- layer : "focused-selection-tree" ,
108108 shortcutsBar : { label : "Up" } ,
109109 hotkeys : [ { hotkey : "ArrowUp" } , { hotkey : "K" } ] ,
110110 } ) ;
111111
112112 useCommand ( selectNextItem , {
113+ group,
113114 enabled : focusedPanel === panel ,
114- layer : "focused-selection-tree" ,
115115 shortcutsBar : { label : "Down" } ,
116116 hotkeys : [ { hotkey : "ArrowDown" } , { hotkey : "J" } ] ,
117117 } ) ;
118118
119119 useCommand ( selectPreviousSection , {
120+ group,
120121 enabled : focusedPanel === panel ,
121- layer : "focused-selection-tree" ,
122122 hotkeys : [ { hotkey : "Shift+ArrowUp" } , { hotkey : "Shift+K" } ] ,
123123 } ) ;
124124
125125 useCommand ( selectNextSection , {
126+ group,
126127 enabled : focusedPanel === panel ,
127- layer : "focused-selection-tree" ,
128128 hotkeys : [ { hotkey : "Shift+ArrowDown" } , { hotkey : "Shift+J" } ] ,
129129 } ) ;
130130
131131 useCommand ( selectFirstItem , {
132+ group,
132133 enabled : focusedPanel === panel ,
133- layer : "focused-selection-tree" ,
134134 hotkeys : [ { hotkey : "Home" } , { hotkey : "Meta+ArrowUp" } , { sequence : [ "G" , "G" ] } ] ,
135135 } ) ;
136136
137137 useCommand ( selectLastItem , {
138+ group,
138139 enabled : focusedPanel === panel ,
139- layer : "focused-selection-tree" ,
140140 hotkeys : [ { hotkey : "End" } , { hotkey : "Meta+ArrowDown" } , { hotkey : "Shift+G" } ] ,
141141 } ) ;
142142
@@ -163,33 +163,33 @@ export const useNavigationIndexHotkeys = ({
163163 } ;
164164
165165 useCommand ( enterMoveMode , {
166+ group,
166167 enabled : focusedPanel === panel && outlineMode . _tag === "Default" ,
167- layer : "focused-selection-tree" ,
168- commandPalette : { group, label : "Move" } ,
168+ commandPalette : { label : "Move" } ,
169169 shortcutsBar : { label : "Move" } ,
170170 hotkeys : [ { hotkey : "M" } ] ,
171171 } ) ;
172172
173173 useCommand ( enterCutMode , {
174+ group,
174175 enabled : focusedPanel === panel && outlineMode . _tag === "Default" ,
175- layer : "focused-selection-tree" ,
176- commandPalette : { group, label : "Cut" } ,
176+ commandPalette : { label : "Cut" } ,
177177 shortcutsBar : { label : "Cut" } ,
178178 hotkeys : [ { hotkey : "Mod+X" , ignoreInputs : true } ] ,
179179 } ) ;
180180
181181 useCommand ( enterRubMode , {
182+ group,
182183 enabled : focusedPanel === panel && outlineMode . _tag === "Default" ,
183- layer : "focused-selection-tree" ,
184- commandPalette : { group, label : "Rub" } ,
184+ commandPalette : { label : "Rub" } ,
185185 shortcutsBar : { label : "Rub" } ,
186186 hotkeys : [ { hotkey : "R" } ] ,
187187 } ) ;
188188
189189 useCommand ( enterCommitMode , {
190+ group,
190191 enabled : focusedPanel === panel && outlineMode . _tag === "Default" ,
191- layer : "focused-selection-tree" ,
192- commandPalette : { group, label : "Commit" } ,
192+ commandPalette : { label : "Commit" } ,
193193 shortcutsBar : { label : "Commit" } ,
194194 hotkeys : [ { hotkey : "C" } ] ,
195195 } ) ;
0 commit comments