Cheatography
https://cheatography.com
Shortcuts that I wish to include in my Daily Workflow
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Vim
Create abbreviations |
:ab cra create react app |
Toggle Relative Line Numbers |
Cmd r |
Lowercase between current position and movement m |
gum |
Add a "." at the end of every line in file |
:%s/.*/&. |
Change until fred |
c/fred/e |
Conditional Substitution |
:g/^\s>http/s/\-/\-<wbr>/g Adds a wbr after each hypen when line starts with \s>http |
Carriage Return in Macro |
\r |
Paste a macro into register m from yanked text |
:let @m="<ctrl + r><">" |
:g does not work in VSCode. Hence, use it in SpaceVim
Cntl R pastes register contents at the end of the line of the Ex command. Hence, do not use it to paste a string in the middle of a line.
Git
Git's three state mgmt mechanisms Commit Tree, Staging Index, Working Directory
|
|
|
Bash / Zsh
Check file no matter how deep it is. |
cat **/file_name |
List (human readable, File/directory type, Permissions) |
// |
Limit Find Depth to current dir |
find . -name "*.pdf" -depth 1 |
Udemy Shortcuts
Shift <- / -> |
Decrease / Increase Playback Speed |
C |
Toggle Captions |
M |
Mute |
Space |
Play / Pause |
B |
Add Note |
|
|
cURL Flags
Pass user details in request |
-u |
Do a PUT Request |
-X |
|