5454 </NcAppSettingsSection >
5555
5656 <!-- Appearance -->
57- <NcAppSettingsSection id =" settings " :name =" t('files', 'Appearance')" >
57+ <NcAppSettingsSection id =" appearance " :name =" t('files', 'Appearance')" >
5858 <NcCheckboxRadioSwitch
5959 data-cy-files-settings-setting =" show_hidden"
6060 :checked =" userConfig.show_hidden"
139139 </NcCheckboxRadioSwitch >
140140 </NcAppSettingsSection >
141141
142- <NcAppSettingsSection
143- id =" shortcuts"
144- :name =" t('files', 'Keyboard shortcuts')" >
145- <h3 >{{ t('files', 'Actions') }}</h3 >
146- <dl >
147- <div >
148- <dt class =" shortcut-key" >
149- <kbd >a</kbd >
150- </dt >
151- <dd class =" shortcut-description" >
152- {{ t('files', 'File actions') }}
153- </dd >
154- </div >
155- <div >
156- <dt class =" shortcut-key" >
157- <kbd >F2</kbd >
158- </dt >
159- <dd class =" shortcut-description" >
160- {{ t('files', 'Rename') }}
161- </dd >
162- </div >
163- <div >
164- <dt class =" shortcut-key" >
165- <kbd >Del</kbd >
166- </dt >
167- <dd class =" shortcut-description" >
168- {{ t('files', 'Delete') }}
169- </dd >
170- </div >
171- <div >
172- <dt class =" shortcut-key" >
173- <kbd >s</kbd >
174- </dt >
175- <dd class =" shortcut-description" >
176- {{ t('files', 'Add or remove favorite') }}
177- </dd >
178- </div >
179- <div v-if =" isSystemtagsEnabled" >
180- <dt class =" shortcut-key" >
181- <kbd >t</kbd >
182- </dt >
183- <dd class =" shortcut-description" >
184- {{ t('files', 'Manage tags') }}
185- </dd >
186- </div >
187- </dl >
188-
189- <h3 >{{ t('files', 'Selection') }}</h3 >
190- <dl >
191- <div >
192- <dt class =" shortcut-key" >
193- <kbd >Ctrl</kbd > + <kbd >A</kbd >
194- </dt >
195- <dd class =" shortcut-description" >
196- {{ t('files', 'Select all files') }}
197- </dd >
198- </div >
199- <div >
200- <dt class =" shortcut-key" >
201- <kbd >ESC</kbd >
202- </dt >
203- <dd class =" shortcut-description" >
204- {{ t('files', 'Deselect all') }}
205- </dd >
206- </div >
207- <div >
208- <dt class =" shortcut-key" >
209- <kbd >Ctrl</kbd > + <kbd >Space</kbd >
210- </dt >
211- <dd class =" shortcut-description" >
212- {{ t('files', 'Select or deselect') }}
213- </dd >
214- </div >
215- <div >
216- <dt class =" shortcut-key" >
217- <kbd >Ctrl</kbd > + <kbd >Shift</kbd > <span >+ <kbd >Space</kbd ></span >
218- </dt >
219- <dd class =" shortcut-description" >
220- {{ t('files', 'Select a range') }}
221- </dd >
222- </div >
223- </dl >
224-
225- <h3 >{{ t('files', 'Navigation') }}</h3 >
226- <dl >
227- <div >
228- <dt class =" shortcut-key" >
229- <kbd >Alt</kbd > + <kbd >↑</kbd >
230- </dt >
231- <dd class =" shortcut-description" >
232- {{ t('files', 'Go to parent folder') }}
233- </dd >
234- </div >
235- <div >
236- <dt class =" shortcut-key" >
237- <kbd >↑</kbd >
238- </dt >
239- <dd class =" shortcut-description" >
240- {{ t('files', 'Go to file above') }}
241- </dd >
242- </div >
243- <div >
244- <dt class =" shortcut-key" >
245- <kbd >↓</kbd >
246- </dt >
247- <dd class =" shortcut-description" >
248- {{ t('files', 'Go to file below') }}
249- </dd >
250- </div >
251- <div >
252- <dt class =" shortcut-key" >
253- <kbd >←</kbd >
254- </dt >
255- <dd class =" shortcut-description" >
256- {{ t('files', 'Go left in grid') }}
257- </dd >
258- </div >
259- <div >
260- <dt class =" shortcut-key" >
261- <kbd >→</kbd >
262- </dt >
263- <dd class =" shortcut-description" >
264- {{ t('files', 'Go right in grid') }}
265- </dd >
266- </div >
267- </dl >
268-
269- <h3 >{{ t('files', 'View') }}</h3 >
270- <dl >
271- <div >
272- <dt class =" shortcut-key" >
273- <kbd >V</kbd >
274- </dt >
275- <dd class =" shortcut-description" >
276- {{ t('files', 'Toggle grid view') }}
277- </dd >
278- </div >
279- <div >
280- <dt class =" shortcut-key" >
281- <kbd >D</kbd >
282- </dt >
283- <dd class =" shortcut-description" >
284- {{ t('files', 'Open file sidebar') }}
285- </dd >
286- </div >
287- <div >
288- <dt class =" shortcut-key" >
289- <kbd >?</kbd >
290- </dt >
291- <dd class =" shortcut-description" >
292- {{ t('files', 'Show those shortcuts') }}
293- </dd >
294- </div >
295- </dl >
296- </NcAppSettingsSection >
142+ <FilesAppSettingsShortcuts />
297143 </NcAppSettingsDialog >
298144</template >
299145
@@ -310,14 +156,16 @@ import NcAppSettingsSection from '@nextcloud/vue/components/NcAppSettingsSection
310156import NcCheckboxRadioSwitch from ' @nextcloud/vue/components/NcCheckboxRadioSwitch'
311157import NcInputField from ' @nextcloud/vue/components/NcInputField'
312158import Clipboard from ' vue-material-design-icons/ContentCopy.vue'
313- import FilesAppSettingsEntry from ' ../components/FilesAppSettingsEntry.vue'
159+ import FilesAppSettingsEntry from ' ../components/FilesAppSettings/FilesAppSettingsEntry.vue'
160+ import FilesAppSettingsShortcuts from ' ../components/FilesAppSettings/FilesAppSettingsShortcuts.vue'
314161import { useUserConfigStore } from ' ../store/userconfig.ts'
315162
316163export default {
317164 name: ' FilesAppSettings' ,
318165 components: {
319166 Clipboard,
320167 FilesAppSettingsEntry,
168+ FilesAppSettingsShortcuts,
321169 NcAppSettingsDialog,
322170 NcAppSettingsSection,
323171 NcCheckboxRadioSwitch,
@@ -385,7 +233,7 @@ export default {
385233 this .settings .forEach ((setting ) => setting .open ())
386234 },
387235
388- beforeDestroy () {
236+ beforeUnmount () {
389237 // Update the settings API entries state
390238 this .settings .forEach ((setting ) => setting .close ())
391239 },
0 commit comments