]> Freerunner's - dotfiles.git/commitdiff
rename banners to cheatsheets
authorAndre Ramnitz <tux.rising@gmail.com>
Sun, 22 Dec 2024 20:02:51 +0000 (21:02 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 22 Dec 2024 20:02:51 +0000 (21:02 +0100)
banner-bash.asc [deleted file]
banner-git.asc [deleted file]
banner-kak.asc [deleted file]
banner.asc [deleted file]
cheatsheet-bash.txt [new file with mode: 0644]
cheatsheet-gentoo.txt [new file with mode: 0644]
cheatsheet-git.txt [new file with mode: 0644]
cheatsheet-kak.md [new file with mode: 0644]

diff --git a/banner-bash.asc b/banner-bash.asc
deleted file mode 100644 (file)
index 47e539d..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-                        _                  _     
-                       | |__    __ _  ___ | |__  
-                       | '_ \  / _` |/ __|| '_ \ 
-                       | |_) || (_| |\__ \| | | |
-                       |_.__/  \__,_||___/|_| |_|
-                                                 
-Line movement:
-ctrl+a
-    Move cursor to the beginning of the line (home).
-ctrl+e
-    Move cursor to the end of the line (end).
-ctrl+f
-    Move the cursor forward one character.
-ctrl+b
-    Move the cursor back one character.
-alt+f
-    Move cursor forward one word.
-alt+b
-    Move cursor backward one word.
-ctrl+xx
-    Toggle the cursor between the current position and the beginning of the line.
-ctrl+]-<char>
-    Move cursor to the first occurrence of the entered character to the right.
-ctrl+alt-]-<char>
-    Move cursor to the first occurrence of the entered character to the left.
-
-Directory movement:
-cd /path
-    Change to /path directory.
-cd -
-    Change to previous directory.
-cd
-    Change to home directory.
-
-Screen control:
-ctrl+s
-    Stop (pause) output on the screen.
-ctrl+q
-    Resume output on the screen (after stopping it with the previous command).
-ctrl+l
-    Clears the screen preserving the current command (very similar to the clear command).
-
-Text manipulation:
-ctrl+u
-    Remove text relative to the cursor's current position to the beginning of the line.
-ctrl+k
-    Remove text relative to the cursor's current position to the end of the line.
-alt+d
-    Remove one word moving forward from the cursor's current position.
-ctrl+w
-    Remove one word moving backward from the cursor's current position.
-ctrl+y
-    Paste deleted text.
-
-Command history:
-ctrl+p
-    Scroll backward through previous command history for the current session.
-ctrl+p
-    Scroll forward through next entry in command history for the current session
-ctrl+r
-    Reverse search through history (type parts of the command to initiate query).
diff --git a/banner-git.asc b/banner-git.asc
deleted file mode 100644 (file)
index d0951f8..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-
-░█▀▀░█░▀█▀░░░█▀▀░█░█░█▀▀░█▀█░▀█▀░░░░░█▀▀░█░█░█▀▀░█▀▀░▀█▀
-░█░█░█░░█░░░░█░░░█▀█░█▀▀░█▀█░░█░░▄▄▄░▀▀█░█▀█░█▀▀░█▀▀░░█░
-░▀▀▀░▀░░▀░░░░▀▀▀░▀░▀░▀▀▀░▀░▀░░▀░░░░░░▀▀▀░▀░▀░▀▀▀░▀▀▀░░▀░
-
-# delete references to files: 
-# git filter-branch -f --index-filter git rm --cached --ignore-unmatch "[FILENAME]" --tag-name-filter cat -- --all
-
diff --git a/banner-kak.asc b/banner-kak.asc
deleted file mode 100644 (file)
index 180108b..0000000
+++ /dev/null
@@ -1,200 +0,0 @@
-# Kakoune
-
-set verbose mode (good for learning)
-`:set -add global autoinfo normal`
-
-## Movement
-
-### Goto
-
-`10g` - go to line 10
-
-`g` +
-
-`g` - buffer start
-
-`e` - buffer end
-
-`j` - buffer bottom
-
-`t` - window top
-
-`c` - window center
-
-`b` - window bottom
-
-
-`l` - line end
-
-`h` - line begin
-
-`i` - line non blank start
-
-### Align screen relative to cursor (Vim z+)
-
-`v` +
-
-`v` - center vertically
-
-`m` - center horizontally
-
-`t` - top
-
-`b` - bottom
-
-`h`, `j`, `k`, `l` - scroll one char
-
-### Search
-
-`/ <a-/>` - start search forward (backward)
-
-`n <a-n>` - search next search pattern forward (backward)
-
-`N <a-N>` - extend next search pattern forward (backward)
-
-### Selections
-
-`%` - select whole buffer
-
-`s` - select (find) regex in selected text
-
-`<a-S>` - select first and last char of selection(s)
-
-`<a-s>` - split selection on line ends
-
-`S` - split selection on given regex
-
-`x` - select line (`X` - next line below)
-
-`<a-x>` - extend selections to whole lines
-
-`<a-X>` - crop selections to whole lines
-
-`<a-;>` - switch anchor and cursor
-
-`;` - collapse selection to its anchor (one char, effectively reduce selection to one char)
-
-`<a-i>` - select inner object
-
-`<a-a>` - select all object (paragraph, sentence, etc)
-
-`[` - select to beginning of an object; `<a-[` - inner object
-
-`{` - extend to beginning of an object; `<a-{` - inner object
-
-`]` - select to the end of an object; `<a-]` - inner object
-
-`}` - extend to beginning of an object; `<a-}` - inner object
-
-`<a-s>` - split selected text on line ends
-
-`<a-k>` - select lines matching regexp inside selection
-
-`<a-K>` - select lines NOT matching regexp inside selection
-
-`7G` - select to line 7
-
-`<a-h>` - select until beginning of; line like Vim `0`
-
-`<a-l>` - select until end of line; like Vim `$`
-
-`m` - match paranthesis; like Vim's `%`, select parans and content inside
-
-`<a-m>` - match parens backwards (direction)
-
-`M` - get a selection from current cursor to next block end or rather extend to next parans included
-
-`<a-M>` - extend to prev parens
-
-`f` - select to next char included (`<a-f>` - prev char)
-
-`C` - copy selection on next lines (`<a-C>` - previus lines)
-
-`<a-&>` - copy identation
-
-`Z` - save selection in mark register `^`
-
-`z` - restore selections stored in register `^`
-
-`<a-z>` - combine selection from register, confirm by hitting `a` for example
-
-`<a-Z>` - combine selections to register
-
-`<space>` - remove all selections except main  
-
-`<a-space>` - remove main selection
-
-`_` - trim selections
-
-### Text manipulation
-
-`y` - yank
-
-`p` - paste after (`P` before)
-
-`<a-p>` - paste every yanked selection after selected text, keep new (pasted) selection (`<a-P>` before)
-
-`d` - delete
-
-`i` - instert
-
-`c` - delete and inserst
-
-`R` - replace selection with the content of the register
-
-`<a-R>` - replace selected text with yanked text
-
-`u` - undo
-
-`U` - redo
-
-`<a-j>` - join with next line (`<a-J>` include spaces)
-
-`backtick` - convert to lower-case (`<a-backtick>` - swap case)
-
-`~` - convert to upper-case
-
-`o` - insert on new line below (`O` above)
-
-`<a-o>` - add new line below (`<a-O>` above)
-
-## Advanced
-
-`)` - loop through selections (`(` backward)
-
-`<a-)>` - rotate splitted selection clock-wise (`<a-(>` counter clock-wise)
-
-`"m*` - save smart search (*) pattern to register `m` (`_` is a null register)
-
-`<c-r>` - instert into the buffer value stored in the register (`%` - buffer name, etc.); numbers correspond to submatches, like `(\w+)`
-
-`.` - repeat last insert session
-
-`<a-.>` - repeat last selection (for example `]p`); like Vim' `;`
-
-`Q` - start recording macro until `Esc` is hit
-
-`q` - replay the macro (saved in the `@` register)
-
-### Shell
-
-`|` - modify selections by passind to the shell command which will transform them and write back (`<a-|>` will ignore results)
-
-`!` - insert a result of the shell cmd before selections (`<a-!>` - append result)
-
-`$` - apply predicate to selections (0 return value is considered a success); filiter them
-
-### Tips
-
-`|fold -w80` - wrap selection
-
-`!date` - insert date before selection
-
-`$xsel -bi` - copy selection to clipboard. `-bi` stands for `--clipboard --input`
-
-`%|diff -u <c-r>% -` - compare current buffer contents with the version saved to disk
-
-`<a-;>` insert mode -> normal mode (for one cmd) -> back, preseving selections/bindings, modes can be deeply nested (hit Esc more than once if needed)
-
-The couple `u` and `U` lets you move backward and forward in the last branch while their alternative versions `<a-u>` `<a-U>` follow absolute history id which may be located somewhere else in the history tree.
-
diff --git a/banner.asc b/banner.asc
deleted file mode 100644 (file)
index b2b7125..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-
-░█▀▀░█▀▀░█▀█░▀█▀░█▀█░█▀█░░░█▀▀░█░█░█▀▀░█▀█░▀█▀░░░░░█▀▀░█░█░█▀▀░█▀▀░▀█▀
-░█░█░█▀▀░█░█░░█░░█░█░█░█░░░█░░░█▀█░█▀▀░█▀█░░█░░▄▄▄░▀▀█░█▀█░█▀▀░█▀▀░░█░
-░▀▀▀░▀▀▀░▀░▀░░▀░░▀▀▀░▀▀▀░░░▀▀▀░▀░▀░▀▀▀░▀░▀░░▀░░░░░░▀▀▀░▀░▀░▀▀▀░▀▀▀░░▀░
-
-dist-upgrade: 'sudo emaint sync -a && sudo emerge -avuDN @world'
-list all pkgs installed : 'cat /var/lib/portage/world' or 'ls -d /var/db/pkg/*/*'
-list all pkgs installed from group: 'qlist -IC kde-plasma kde-apps kde-frameworks'
-search in overlays: 'eix-remote update && eix-sync && eix -R [search term]'
-rebuild @world & @system  'emerge --ask --verbose --deep --emptytree --with-bdeps=y --keep-going @world'
-*** *** *** *** *** *** *** *** ***
-redirect STDOUT: foo 1> /dev/null *** redirect STDERR: foo 2> /dev/null *** redirect BOTH: foo > /dev/null 2>&1
-launch if not already running: 'pidof foo 1> /dev/null || foo &' (posix compliant)
-restart plasmashell in-place: 'kquitapp5 plasmashell || killall plasmashell && kstart5 plasmashell'
-*** *** *** *** *** *** *** *** ***
-To execute programs with the amdgpu-pro-vulkan driver:
-   - Use the  wrapper script: e.g. 'vk_pro vkcube'
-   - Define the following environment variable: 
-     VK_DRIVER_FILES=/usr/share/vulkan/icd.d/amd_pro_icd64.json:/usr/share/vulkan/icd.d/amd_pro_icd32.json
diff --git a/cheatsheet-bash.txt b/cheatsheet-bash.txt
new file mode 100644 (file)
index 0000000..47e539d
--- /dev/null
@@ -0,0 +1,61 @@
+                        _                  _     
+                       | |__    __ _  ___ | |__  
+                       | '_ \  / _` |/ __|| '_ \ 
+                       | |_) || (_| |\__ \| | | |
+                       |_.__/  \__,_||___/|_| |_|
+                                                 
+Line movement:
+ctrl+a
+    Move cursor to the beginning of the line (home).
+ctrl+e
+    Move cursor to the end of the line (end).
+ctrl+f
+    Move the cursor forward one character.
+ctrl+b
+    Move the cursor back one character.
+alt+f
+    Move cursor forward one word.
+alt+b
+    Move cursor backward one word.
+ctrl+xx
+    Toggle the cursor between the current position and the beginning of the line.
+ctrl+]-<char>
+    Move cursor to the first occurrence of the entered character to the right.
+ctrl+alt-]-<char>
+    Move cursor to the first occurrence of the entered character to the left.
+
+Directory movement:
+cd /path
+    Change to /path directory.
+cd -
+    Change to previous directory.
+cd
+    Change to home directory.
+
+Screen control:
+ctrl+s
+    Stop (pause) output on the screen.
+ctrl+q
+    Resume output on the screen (after stopping it with the previous command).
+ctrl+l
+    Clears the screen preserving the current command (very similar to the clear command).
+
+Text manipulation:
+ctrl+u
+    Remove text relative to the cursor's current position to the beginning of the line.
+ctrl+k
+    Remove text relative to the cursor's current position to the end of the line.
+alt+d
+    Remove one word moving forward from the cursor's current position.
+ctrl+w
+    Remove one word moving backward from the cursor's current position.
+ctrl+y
+    Paste deleted text.
+
+Command history:
+ctrl+p
+    Scroll backward through previous command history for the current session.
+ctrl+p
+    Scroll forward through next entry in command history for the current session
+ctrl+r
+    Reverse search through history (type parts of the command to initiate query).
diff --git a/cheatsheet-gentoo.txt b/cheatsheet-gentoo.txt
new file mode 100644 (file)
index 0000000..b2b7125
--- /dev/null
@@ -0,0 +1,19 @@
+
+░█▀▀░█▀▀░█▀█░▀█▀░█▀█░█▀█░░░█▀▀░█░█░█▀▀░█▀█░▀█▀░░░░░█▀▀░█░█░█▀▀░█▀▀░▀█▀
+░█░█░█▀▀░█░█░░█░░█░█░█░█░░░█░░░█▀█░█▀▀░█▀█░░█░░▄▄▄░▀▀█░█▀█░█▀▀░█▀▀░░█░
+░▀▀▀░▀▀▀░▀░▀░░▀░░▀▀▀░▀▀▀░░░▀▀▀░▀░▀░▀▀▀░▀░▀░░▀░░░░░░▀▀▀░▀░▀░▀▀▀░▀▀▀░░▀░
+
+dist-upgrade: 'sudo emaint sync -a && sudo emerge -avuDN @world'
+list all pkgs installed : 'cat /var/lib/portage/world' or 'ls -d /var/db/pkg/*/*'
+list all pkgs installed from group: 'qlist -IC kde-plasma kde-apps kde-frameworks'
+search in overlays: 'eix-remote update && eix-sync && eix -R [search term]'
+rebuild @world & @system  'emerge --ask --verbose --deep --emptytree --with-bdeps=y --keep-going @world'
+*** *** *** *** *** *** *** *** ***
+redirect STDOUT: foo 1> /dev/null *** redirect STDERR: foo 2> /dev/null *** redirect BOTH: foo > /dev/null 2>&1
+launch if not already running: 'pidof foo 1> /dev/null || foo &' (posix compliant)
+restart plasmashell in-place: 'kquitapp5 plasmashell || killall plasmashell && kstart5 plasmashell'
+*** *** *** *** *** *** *** *** ***
+To execute programs with the amdgpu-pro-vulkan driver:
+   - Use the  wrapper script: e.g. 'vk_pro vkcube'
+   - Define the following environment variable: 
+     VK_DRIVER_FILES=/usr/share/vulkan/icd.d/amd_pro_icd64.json:/usr/share/vulkan/icd.d/amd_pro_icd32.json
diff --git a/cheatsheet-git.txt b/cheatsheet-git.txt
new file mode 100644 (file)
index 0000000..d0951f8
--- /dev/null
@@ -0,0 +1,8 @@
+
+░█▀▀░█░▀█▀░░░█▀▀░█░█░█▀▀░█▀█░▀█▀░░░░░█▀▀░█░█░█▀▀░█▀▀░▀█▀
+░█░█░█░░█░░░░█░░░█▀█░█▀▀░█▀█░░█░░▄▄▄░▀▀█░█▀█░█▀▀░█▀▀░░█░
+░▀▀▀░▀░░▀░░░░▀▀▀░▀░▀░▀▀▀░▀░▀░░▀░░░░░░▀▀▀░▀░▀░▀▀▀░▀▀▀░░▀░
+
+# delete references to files: 
+# git filter-branch -f --index-filter git rm --cached --ignore-unmatch "[FILENAME]" --tag-name-filter cat -- --all
+
diff --git a/cheatsheet-kak.md b/cheatsheet-kak.md
new file mode 100644 (file)
index 0000000..90c5dee
--- /dev/null
@@ -0,0 +1,200 @@
+# Kakoune
+###### [source](https://gist.github.com/lambda-mike/7ce75275b519c583a2a3410c56a7d546)
+
+set verbose mode (good for learning)
+`:set -add global autoinfo normal`
+
+## Movement
+
+### Goto
+
+`10g` - go to line 10
+
+`g` +
+
+`g` - buffer start
+
+`e` - buffer end
+
+`j` - buffer bottom
+
+`t` - window top
+
+`c` - window center
+
+`b` - window bottom
+
+
+`l` - line end
+
+`h` - line begin
+
+`i` - line non blank start
+
+### Align screen relative to cursor (Vim z+)
+
+`v` +
+
+`v` - center vertically
+
+`m` - center horizontally
+
+`t` - top
+
+`b` - bottom
+
+`h`, `j`, `k`, `l` - scroll one char
+
+### Search
+
+`/ <a-/>` - start search forward (backward)
+
+`n <a-n>` - search next search pattern forward (backward)
+
+`N <a-N>` - extend next search pattern forward (backward)
+
+### Selections
+
+`%` - select whole buffer
+
+`s` - select (find) regex in selected text
+
+`<a-S>` - select first and last char of selection(s)
+
+`<a-s>` - split selection on line ends
+
+`S` - split selection on given regex
+
+`x` - select line (`X` - next line below)
+
+`<a-x>` - extend selections to whole lines
+
+`<a-X>` - crop selections to whole lines
+
+`<a-;>` - switch anchor and cursor
+
+`;` - collapse selection to its anchor (one char, effectively reduce selection to one char)
+
+`<a-i>` - select inner object
+
+`<a-a>` - select all object (paragraph, sentence, etc)
+
+`[` - select to beginning of an object; `<a-[` - inner object
+
+`{` - extend to beginning of an object; `<a-{` - inner object
+
+`]` - select to the end of an object; `<a-]` - inner object
+
+`}` - extend to beginning of an object; `<a-}` - inner object
+
+`<a-s>` - split selected text on line ends
+
+`<a-k>` - select lines matching regexp inside selection
+
+`<a-K>` - select lines NOT matching regexp inside selection
+
+`7G` - select to line 7
+
+`<a-h>` - select until beginning of; line like Vim `0`
+
+`<a-l>` - select until end of line; like Vim `$`
+
+`m` - match paranthesis; like Vim's `%`, select parans and content inside
+
+`<a-m>` - match parens backwards (direction)
+
+`M` - get a selection from current cursor to next block end or rather extend to next parans included
+
+`<a-M>` - extend to prev parens
+
+`f` - select to next char included (`<a-f>` - prev char)
+
+`C` - copy selection on next lines (`<a-C>` - previus lines)
+
+`<a-&>` - copy identation
+
+`Z` - save selection in mark register `^`
+
+`z` - restore selections stored in register `^`
+
+`<a-z>` - combine selection from register, confirm by hitting `a` for example
+
+`<a-Z>` - combine selections to register
+
+`<space>` - remove all selections except main  
+
+`<a-space>` - remove main selection
+
+`_` - trim selections
+
+### Text manipulation
+
+`y` - yank
+
+`p` - paste after (`P` before)
+
+`<a-p>` - paste every yanked selection after selected text, keep new (pasted) selection (`<a-P>` before)
+
+`d` - delete
+
+`i` - instert
+
+`c` - delete and inserst
+
+`R` - replace selection with the content of the register
+
+`<a-R>` - replace selected text with yanked text
+
+`u` - undo
+
+`U` - redo
+
+`<a-j>` - join with next line (`<a-J>` include spaces)
+
+`backtick` - convert to lower-case (`<a-backtick>` - swap case)
+
+`~` - convert to upper-case
+
+`o` - insert on new line below (`O` above)
+
+`<a-o>` - add new line below (`<a-O>` above)
+
+## Advanced
+
+`)` - loop through selections (`(` backward)
+
+`<a-)>` - rotate splitted selection clock-wise (`<a-(>` counter clock-wise)
+
+`"m*` - save smart search (*) pattern to register `m` (`_` is a null register)
+
+`<c-r>` - instert into the buffer value stored in the register (`%` - buffer name, etc.); numbers correspond to submatches, like `(\w+)`
+
+`.` - repeat last insert session
+
+`<a-.>` - repeat last selection (for example `]p`); like Vim' `;`
+
+`Q` - start recording macro until `Esc` is hit
+
+`q` - replay the macro (saved in the `@` register)
+
+### Shell
+
+`|` - modify selections by passind to the shell command which will transform them and write back (`<a-|>` will ignore results)
+
+`!` - insert a result of the shell cmd before selections (`<a-!>` - append result)
+
+`$` - apply predicate to selections (0 return value is considered a success); filiter them
+
+### Tips
+
+`|fold -w80` - wrap selection
+
+`!date` - insert date before selection
+
+`$xsel -bi` - copy selection to clipboard. `-bi` stands for `--clipboard --input`
+
+`%|diff -u <c-r>% -` - compare current buffer contents with the version saved to disk
+
+`<a-;>` insert mode -> normal mode (for one cmd) -> back, preseving selections/bindings, modes can be deeply nested (hit Esc more than once if needed)
+
+The couple `u` and `U` lets you move backward and forward in the last branch while their alternative versions `<a-u>` `<a-U>` follow absolute history id which may be located somewhere else in the history tree.