Use alejandra formatter / fix warnings

This commit is contained in:
DashieTM 2025-02-15 16:23:22 +01:00
parent c5b1041bbb
commit 693d4e3c70
70 changed files with 1424 additions and 1547 deletions

View file

@ -99,125 +99,125 @@
keymap = {
manager.keymap = [
{
on = [ "<Esc>" ];
on = ["<Esc>"];
run = "escape";
desc = "Exit visual mode clear selected or cancel search";
}
{
on = [ "q" ];
on = ["q"];
run = "quit";
desc = "Exit the process";
}
{
on = [ "Q" ];
on = ["Q"];
run = "quit --no-cwd-file";
desc = "Exit the process without writing cwd-file";
}
{
on = [ "<C-q>" ];
on = ["<C-q>"];
run = "close";
desc = "Close the current tab or quit if it is last tab";
}
{
on = [ "<C-z>" ];
on = ["<C-z>"];
run = "suspend";
desc = "Suspend the process";
}
# Navigation
{
on = [ "l" ];
on = ["l"];
run = "arrow -1";
desc = "Move cursor up";
}
{
on = [ "k" ];
on = ["k"];
run = "arrow 1";
desc = "Move cursor down";
}
{
on = [ "L" ];
on = ["L"];
run = "arrow -5";
desc = "Move cursor up 5 lines";
}
{
on = [ "K" ];
on = ["K"];
run = "arrow 5";
desc = "Move cursor down 5 lines";
}
{
on = [ "<C-u>" ];
on = ["<C-u>"];
run = "arrow -50%";
desc = "Move cursor up half page";
}
{
on = [ "<C-d>" ];
on = ["<C-d>"];
run = "arrow 50%";
desc = "Move cursor down half page";
}
{
on = [ "<C-b>" ];
on = ["<C-b>"];
run = "arrow -100%";
desc = "Move cursor up one page";
}
{
on = [ "<C-f>" ];
on = ["<C-f>"];
run = "arrow 100%";
desc = "Move cursor down one page";
}
{
on = [ "j" ];
on = ["j"];
run = "leave";
desc = "Go back to the parent directory";
}
{
on = [ ";" ];
on = [";"];
run = "enter";
desc = "Enter the child directory";
}
{
on = [ "J" ];
on = ["J"];
run = "back";
desc = "Go back to the previous directory";
}
{
on = [ "P" ];
on = ["P"];
run = "forward";
desc = "Go forward to the next directory";
}
{
on = [ "<C-k>" ];
on = ["<C-k>"];
run = "peek -5";
desc = "Peek up 5 units in the preview";
}
{
on = [ "<C-j>" ];
on = ["<C-j>"];
run = "peek 5";
desc = "Peek down 5 units in the preview";
}
{
on = [ "<Up>" ];
on = ["<Up>"];
run = "arrow -1";
desc = "Move cursor up";
}
{
on = [ "<Down>" ];
on = ["<Down>"];
run = "arrow 1";
desc = "Move cursor down";
}
{
on = [ "<Left>" ];
on = ["<Left>"];
run = "leave";
desc = "Go back to the parent directory";
}
{
on = [ "<Right>" ];
on = ["<Right>"];
run = "enter";
desc = "Enter the child directory";
}
@ -231,116 +231,116 @@
desc = "Move cursor to the top";
}
{
on = [ "G" ];
on = ["G"];
run = "arrow 99999999";
desc = "Move cursor to the bottom";
}
# Selection
{
on = [ "v" ];
on = ["v"];
run = "visual_mode";
desc = "Enter visual mode (selection mode)";
}
{
on = [ "V" ];
on = ["V"];
run = "visual_mode --unset";
desc = "Enter visual mode (unset mode)";
}
{
on = [ "<C-a>" ];
on = ["<C-a>"];
run = "select_all --state=true";
desc = "Select all files";
}
{
on = [ "<C-r>" ];
on = ["<C-r>"];
run = "select_all --state=none";
desc = "Inverse selection of all files";
}
# Operation
{
on = [ "o" ];
on = ["o"];
run = "open";
desc = "Open the selected files";
}
{
on = [ "O" ];
on = ["O"];
run = "open --interactive";
desc = "Open the selected files interactively";
}
{
on = [ "<Enter>" ];
on = ["<Enter>"];
run = "open";
desc = "Open the selected files";
}
{
on = [ "<C-Enter>" ];
on = ["<C-Enter>"];
run = "open --interactive";
desc = "Open the selected files interactively";
} # It's cool if you're using a terminal that supports CSI u
{
on = [ "y" ];
on = ["y"];
run = "yank";
desc = "Copy the selected files";
}
{
on = [ "x" ];
on = ["x"];
run = "yank --cut";
desc = "Cut the selected files";
}
{
on = [ "p" ];
on = ["p"];
run = "paste";
desc = "Paste the files";
}
{
on = [ "P" ];
on = ["P"];
run = "paste --force";
desc = "Paste the files (overwrite if the destination exists)";
}
{
on = [ "-" ];
on = ["-"];
run = "link";
desc = "Symlink the absolute path of files";
}
{
on = [ "_" ];
on = ["_"];
run = "link --relative";
desc = "Symlink the relative path of files";
}
{
on = [ "d" ];
on = ["d"];
run = "remove";
desc = "Move the files to the trash";
}
{
on = [ "D" ];
on = ["D"];
run = "remove --permanently";
desc = "Permanently delete the files";
}
{
on = [ "a" ];
on = ["a"];
run = "create";
desc = "Create a file or directory (ends with / for directories)";
}
{
on = [ "r" ];
on = ["r"];
run = "rename";
desc = "Rename a file or directory";
}
{
on = [ ";" ];
on = [";"];
run = "shell";
desc = "Run a shell command";
}
{
on = [ ":" ];
on = [":"];
run = "shell --block";
desc = "Run a shell command (block the UI until the command finishes)";
}
{
on = [ "." ];
on = ["."];
run = "hidden toggle";
desc = "Toggle the visibility of hidden files";
}
@ -363,17 +363,17 @@
desc = "Search files by content using ripgrep";
}
{
on = [ "<C-s>" ];
on = ["<C-s>"];
run = "search none";
desc = "Cancel the ongoing search";
}
{
on = [ "z" ];
on = ["z"];
run = "jump zoxide";
desc = "Jump to a directory using zoxide";
}
{
on = [ "Z" ];
on = ["Z"];
run = "jump fzf";
desc = "Jump to a directory or reveal a file using fzf";
}
@ -414,19 +414,19 @@
# Find
{
on = [ "/" ];
on = ["/"];
run = "find --smart";
}
{
on = [ "?" ];
on = ["?"];
run = "find --previous --smart";
}
{
on = [ "n" ];
on = ["n"];
run = "find_arrow";
}
{
on = [ "N" ];
on = ["N"];
run = "find_arrow --previous";
}
@ -514,82 +514,82 @@
# Tabs
{
on = [ "t" ];
on = ["t"];
run = "tab_create --current";
desc = "Create a new tab using the current path";
}
{
on = [ "1" ];
on = ["1"];
run = "tab_switch 0";
desc = "Switch to the first tab";
}
{
on = [ "2" ];
on = ["2"];
run = "tab_switch 1";
desc = "Switch to the second tab";
}
{
on = [ "3" ];
on = ["3"];
run = "tab_switch 2";
desc = "Switch to the third tab";
}
{
on = [ "4" ];
on = ["4"];
run = "tab_switch 3";
desc = "Switch to the fourth tab";
}
{
on = [ "5" ];
on = ["5"];
run = "tab_switch 4";
desc = "Switch to the fifth tab";
}
{
on = [ "6" ];
on = ["6"];
run = "tab_switch 5";
desc = "Switch to the sixth tab";
}
{
on = [ "7" ];
on = ["7"];
run = "tab_switch 6";
desc = "Switch to the seventh tab";
}
{
on = [ "8" ];
on = ["8"];
run = "tab_switch 7";
desc = "Switch to the eighth tab";
}
{
on = [ "9" ];
on = ["9"];
run = "tab_switch 8";
desc = "Switch to the ninth tab";
}
{
on = [ "[" ];
on = ["["];
run = "tab_switch -1 --relative";
desc = "Switch to the previous tab";
}
{
on = [ "]" ];
on = ["]"];
run = "tab_switch 1 --relative";
desc = "Switch to the next tab";
}
{
on = [ "{" ];
on = ["{"];
run = "tab_swap -1";
desc = "Swap the current tab with the previous tab";
}
{
on = [ "}" ];
on = ["}"];
run = "tab_swap 1";
desc = "Swap the current tab with the next tab";
}
# Tasks
{
on = [ "w" ];
on = ["w"];
run = "tasks_show";
desc = "Show the tasks manager";
}
@ -638,7 +638,7 @@
# Help
{
on = [ "~" ];
on = ["~"];
run = "help";
desc = "Open help";
}
@ -646,56 +646,56 @@
tasks.keymap = [
{
on = [ "<Esc>" ];
on = ["<Esc>"];
run = "close";
desc = "Hide the task manager";
}
{
on = [ "<C-q>" ];
on = ["<C-q>"];
run = "close";
desc = "Hide the task manager";
}
{
on = [ "w" ];
on = ["w"];
run = "close";
desc = "Hide the task manager";
}
{
on = [ "k" ];
on = ["k"];
run = "arrow -1";
desc = "Move cursor up";
}
{
on = [ "j" ];
on = ["j"];
run = "arrow 1";
desc = "Move cursor down";
}
{
on = [ "<Up>" ];
on = ["<Up>"];
run = "arrow -1";
desc = "Move cursor up";
}
{
on = [ "<Down>" ];
on = ["<Down>"];
run = "arrow 1";
desc = "Move cursor down";
}
{
on = [ "<Enter>" ];
on = ["<Enter>"];
run = "inspect";
desc = "Inspect the task";
}
{
on = [ "x" ];
on = ["x"];
run = "cancel";
desc = "Cancel the task";
}
{
on = [ "~" ];
on = ["~"];
run = "help";
desc = "Open help";
}
@ -703,56 +703,56 @@
select.keymap = [
{
on = [ "<C-q>" ];
on = ["<C-q>"];
run = "close";
desc = "Cancel selection";
}
{
on = [ "<Esc>" ];
on = ["<Esc>"];
run = "close";
desc = "Cancel selection";
}
{
on = [ "<Enter>" ];
on = ["<Enter>"];
run = "close --submit";
desc = "Submit the selection";
}
{
on = [ "k" ];
on = ["k"];
run = "arrow -1";
desc = "Move cursor up";
}
{
on = [ "j" ];
on = ["j"];
run = "arrow 1";
desc = "Move cursor down";
}
{
on = [ "K" ];
on = ["K"];
run = "arrow -5";
desc = "Move cursor up 5 lines";
}
{
on = [ "J" ];
on = ["J"];
run = "arrow 5";
desc = "Move cursor down 5 lines";
}
{
on = [ "<Up>" ];
on = ["<Up>"];
run = "arrow -1";
desc = "Move cursor up";
}
{
on = [ "<Down>" ];
on = ["<Down>"];
run = "arrow 1";
desc = "Move cursor down";
}
{
on = [ "~" ];
on = ["~"];
run = "help";
desc = "Open help";
}
@ -760,39 +760,39 @@
input.keymap = [
{
on = [ "<C-q>" ];
on = ["<C-q>"];
run = "close";
desc = "Cancel input";
}
{
on = [ "<Enter>" ];
on = ["<Enter>"];
run = "close --submit";
desc = "Submit the input";
}
{
on = [ "<Esc>" ];
on = ["<Esc>"];
run = "escape";
desc = "Go back the normal mode or cancel input";
}
# Mode
{
on = [ "i" ];
on = ["i"];
run = "insert";
desc = "Enter insert mode";
}
{
on = [ "a" ];
on = ["a"];
run = "insert --append";
desc = "Enter append mode";
}
{
on = [ "v" ];
on = ["v"];
run = "visual";
desc = "Enter visual mode";
}
{
on = [ "V" ];
on = ["V"];
run = [
"move -999"
"visual"
@ -803,28 +803,28 @@
# Navigation
{
on = [ "h" ];
on = ["h"];
run = "move -1";
desc = "Move cursor left";
}
{
on = [ "l" ];
on = ["l"];
run = "move 1";
desc = "Move cursor right";
}
{
on = [ "0" ];
on = ["0"];
run = "move -999";
desc = "Move to the BOL";
}
{
on = [ "$" ];
on = ["$"];
run = "move 999";
desc = "Move to the EOL";
}
{
on = [ "I" ];
on = ["I"];
run = [
"move -999"
"insert"
@ -832,7 +832,7 @@
desc = "Move to the BOL and enter insert mode";
}
{
on = [ "A" ];
on = ["A"];
run = [
"move 999"
"insert --append"
@ -841,40 +841,40 @@
}
{
on = [ "<Left>" ];
on = ["<Left>"];
run = "move -1";
desc = "Move cursor left";
}
{
on = [ "<Right>" ];
on = ["<Right>"];
run = "move 1";
desc = "Move cursor right";
}
{
on = [ "b" ];
on = ["b"];
run = "backward";
desc = "Move to the beginning of the previous word";
}
{
on = [ "w" ];
on = ["w"];
run = "forward";
desc = "Move to the beginning of the next word";
}
{
on = [ "e" ];
on = ["e"];
run = "forward --end-of-word";
desc = "Move to the end of the next word";
}
# Deletion
{
on = [ "d" ];
on = ["d"];
run = "delete --cut";
desc = "Cut the selected characters";
}
{
on = [ "D" ];
on = ["D"];
run = [
"delete --cut"
"move 999"
@ -882,12 +882,12 @@
desc = "Cut until the EOL";
}
{
on = [ "c" ];
on = ["c"];
run = "delete --cut --insert";
desc = "Cut the selected characters and enter insert mode";
}
{
on = [ "C" ];
on = ["C"];
run = [
"delete --cut --insert"
"move 999"
@ -895,7 +895,7 @@
desc = "Cut until the EOL and enter insert mode";
}
{
on = [ "x" ];
on = ["x"];
run = [
"delete --cut"
"move 1 --in-operating"
@ -905,36 +905,36 @@
# Yank/Paste
{
on = [ "y" ];
on = ["y"];
run = "yank";
desc = "Copy the selected characters";
}
{
on = [ "p" ];
on = ["p"];
run = "paste";
desc = "Paste the copied characters after the cursor";
}
{
on = [ "P" ];
on = ["P"];
run = "paste --before";
desc = "Paste the copied characters before the cursor";
}
# Undo/Redo
{
on = [ "u" ];
on = ["u"];
run = "undo";
desc = "Undo the last operation";
}
{
on = [ "<C-r>" ];
on = ["<C-r>"];
run = "redo";
desc = "Redo the last operation";
}
# Help
{
on = [ "~" ];
on = ["~"];
run = "help";
desc = "Open help";
}
@ -942,58 +942,58 @@
help.keymap = [
{
on = [ "<Esc>" ];
on = ["<Esc>"];
run = "escape";
desc = "Clear the filter or hide the help";
}
{
on = [ "q" ];
on = ["q"];
run = "close";
desc = "Exit the process";
}
{
on = [ "<C-q>" ];
on = ["<C-q>"];
run = "close";
desc = "Hide the help";
}
# Navigation
{
on = [ "k" ];
on = ["k"];
run = "arrow -1";
desc = "Move cursor up";
}
{
on = [ "j" ];
on = ["j"];
run = "arrow 1";
desc = "Move cursor down";
}
{
on = [ "K" ];
on = ["K"];
run = "arrow -5";
desc = "Move cursor up 5 lines";
}
{
on = [ "J" ];
on = ["J"];
run = "arrow 5";
desc = "Move cursor down 5 lines";
}
{
on = [ "<Up>" ];
on = ["<Up>"];
run = "arrow -1";
desc = "Move cursor up";
}
{
on = [ "<Down>" ];
on = ["<Down>"];
run = "arrow 1";
desc = "Move cursor down";
}
# Filtering
{
on = [ "/" ];
on = ["/"];
run = "filter";
desc = "Apply a filter for the help items";
}