chore: Auto generate docs

remotes/origin/HEAD
stevenxxiu 2023-12-31 09:00:52 +00:00 committed by pseudometa
parent 50bc0cce60
commit 3e2dc62657
1 changed files with 9 additions and 1 deletions

View File

@ -69,7 +69,7 @@ create keybindings for the commands you want to use:
keymap("n", "<leader>mf", genghis.moveAndRenameFile)
keymap("n", "<leader>nf", genghis.createNewFile)
keymap("n", "<leader>yf", genghis.duplicateFile)
keymap("n", "<leader>df", function() genghis.trashFile { trashLocation = "your/path" } end) -- default: "$HOME/.Trash".
keymap("n", "<leader>df", genghis.trashFile)
keymap("x", "<leader>x", genghis.moveSelectionToNewFile)
<
@ -88,6 +88,14 @@ FILE OPERATION COMMAND ~
- `.moveAndRenameFile` or `:Move`Move and Rename the current file. Keeps the
old name if the new path ends with `/`. Works like the UNIX `mv` command. Best
used with |genghis-autocompletion-of-directories|.
- `.trashFile`Trash the current file.
- Use `trashCmd` to specify an external trash command. It defaults to
`gio trash` on _Linux_, `trash` on _Mac_ and _Windows_.
- Otherwise specify `trashLocation` to move the file to that directory. It
defaults to `$HOME/.Trash`. This does NOT trash the file the usual way. The
trashed file is NOT restorable to its original path.
- For backwards compatibility, the default behavior on _Mac_ moves files to
`$HOME/.Trash`.
The following applies to all commands above: - If no extension has been
provided, uses the extension of the original file. - If the new file name