diff --git a/source/_posts/adobe-lightroom.md b/source/_posts/adobe-lightroom.md index 05406f5..4fbb1c5 100644 --- a/source/_posts/adobe-lightroom.md +++ b/source/_posts/adobe-lightroom.md @@ -2,376 +2,368 @@ title: Adobe Lightroom CC date: 2022-11-23 16:23:31.702312 background: bg-[#081c32] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 251 keyboard shortcuts found in Adobe Lightroom CC + A visual cheat-sheet for the 251 keyboard shortcuts found in Adobe Lightroom CC --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Working with panels {.row-span-2} -Shortcut | Action ----|--- -`Tab` | Show/hide side panels -`Shift` `Tab` | Show/hide all panels -`T` | Show/hide toolbar -`F5` | Show/hide Module Picker -`F6` | Show/hide Filmstrip -`F7` | Show/hide left panels -`F8` | Show/hide right panels -`Alt` `(click a panel)` | Toggle solo mode -`Shift` `(click a panel)` | Open a new panel without closing soloed panel -`Ctrl` `(click a panel)` | Open/close all panels -`Ctrl` `Shift` `0-5` | Open/close left panels, top to bottom -`Ctrl` `0-9` | Open/close right panels, Library and Develop modules, top to bottom -`Ctrl` `1-7` | Open/close right panels, Slideshow, Print, and Web modules, top to bottom -{.shortcuts} +| Shortcut | Action | +| ------------------------- | ------------------------------------------------------------------------- | +| `Tab` | Show/hide side panels | +| `Shift` `Tab` | Show/hide all panels | +| `T` | Show/hide toolbar | +| `F5` | Show/hide Module Picker | +| `F6` | Show/hide Filmstrip | +| `F7` | Show/hide left panels | +| `F8` | Show/hide right panels | +| `Alt` `(click a panel)` | Toggle solo mode | +| `Shift` `(click a panel)` | Open a new panel without closing soloed panel | +| `Ctrl` `(click a panel)` | Open/close all panels | +| `Ctrl` `Shift` `0-5` | Open/close left panels, top to bottom | +| `Ctrl` `0-9` | Open/close right panels, Library and Develop modules, top to bottom | +| `Ctrl` `1-7` | Open/close right panels, Slideshow, Print, and Web modules, top to bottom | +{.shortcuts} ### Navigating modules -Shortcut | Action ----|--- -`Ctrl` `Alt` `1` | Go to Library module -`Ctrl` `Alt` `2` | Go to Develop module -`Ctrl` `Alt` `3` | Go to Slideshow module -`Ctrl` `Alt` `4` | Go to Print module -`Ctrl` `Alt` `5` | Go to Web module -`Ctrl` `Alt` `Left/Right` | Go back/go forward -`Ctrl` `Alt` `Up` | Go back to previous module -{.shortcuts} +| Shortcut | Action | +| ------------------------- | -------------------------- | +| `Ctrl` `Alt` `1` | Go to Library module | +| `Ctrl` `Alt` `2` | Go to Develop module | +| `Ctrl` `Alt` `3` | Go to Slideshow module | +| `Ctrl` `Alt` `4` | Go to Print module | +| `Ctrl` `Alt` `5` | Go to Web module | +| `Ctrl` `Alt` `Left/Right` | Go back/go forward | +| `Ctrl` `Alt` `Up` | Go back to previous module | +{.shortcuts} ### Using a secondary window -Shortcut | Action ----|--- -`F11` | Open secondary window -`Shift` `G` | Enter Grid view -`Shift` `E` | Enter normal Loupe view -`Ctrl` `Shift` `Enter` | Enter locked Loupe view -`Shift` `C` | Enter Compare view -`Shift` `N` | Enter Survey view -`Ctrl` `Alt` `Shift` `Enter` | Enter Slideshow view -`Shift` `F11` | Enter full-screen mode (requires second monitor) -`Shift` `\` | Show/hide Filter bar -`Ctrl` `Shift` `+/-` | Zoom in/out +| Shortcut | Action | +| ---------------------------- | ------------------------------------------------ | +| `F11` | Open secondary window | +| `Shift` `G` | Enter Grid view | +| `Shift` `E` | Enter normal Loupe view | +| `Ctrl` `Shift` `Enter` | Enter locked Loupe view | +| `Shift` `C` | Enter Compare view | +| `Shift` `N` | Enter Survey view | +| `Ctrl` `Alt` `Shift` `Enter` | Enter Slideshow view | +| `Shift` `F11` | Enter full-screen mode (requires second monitor) | +| `Shift` `\` | Show/hide Filter bar | +| `Ctrl` `Shift` `+/-` | Zoom in/out | + {.shortcuts} - - ### Working in the Develop module {.row-span-3} -Shortcut | Action ----|--- -`V` | Convert to grayscale -`Ctrl` `U` | Auto tone -`Ctrl` `Shift` `U` | Auto white balance -`Ctrl` `E` | Edit in Photoshop -`Ctrl` `Shift` `C/V` | Copy/paste Develop settings -`Ctrl` `Alt` `V` | Paste settings from previous photo -`Ctrl` `Alt` `Shift` `Left` | Copy After settings to Before -`Ctrl` `Alt` `Shift` `Right` | Copy Before settings to After -`Ctrl` `Alt` `Shift` `Up` | Swap Before and After settings -`Up/Down` | Increase/decrease selected slider in small increments -`Shift` `Up/Down` | Increase/decrease selected slider in larger increments -`./,` | Cycle through Basic panel settings (forward/backward) -`(double-click slider name)` | Reset a slider -`Alt` `(click group name)` | Reset a group of sliders -`Ctrl` `Shift` `R` | Reset all settings -`Ctrl` `Shift` `S` | Sync settings -`Ctrl` `Alt` `S` | Sync settings bypassing Synchronize Settings dialog box -`Ctrl` `(click Sync button)` | Toggle Auto Sync -`Ctrl` `Alt` `Shift` `A` | Enable Auto Sync -`Ctrl` `Alt` `Shift` `M` | Match total exposures -`W` | Select White Balance tool (from any module) -`R` | Select the Crop tool (from any module) -`A` | Constrain aspect ratio when Crop tool is selected -`Shift` `A` | Crop to same aspect ratio as previous crop -`Alt` `(drag)` | Crop from center of photo -`O` | Cycle Crop grid overlay -`Shift` `O` | Cycle Crop grid overlay orientation -`X` | Switch crop between portrait and landscape orientation -`Ctrl` `Alt` `R` | Reset crop -`Shift` `T` | Select the Guided Upright tool -`Q` | Select the Spot Removal tool -`Shift` `T` | Toggle Brush between Clone and Heal modes when Spot Removal tool is selected -`K` | Select the Adjustment Brush tool (from any module) -`M` | Select the Graduated Filter tool -`Shift` `T` | Toggle Mask between Edit and Brush modes when the Graduated/Radial Filter is selected -`]/[` | Increase/decrease brush size -`Shift` `]/[` | Increase/decrease brush feathering -`/` | Switch between local adjustment brush A and B -`Alt` `(drag)` | Temporarily switch from brush A or B to Eraser -`Shift` `(drag)` | Paint a horizontal or vertical line -`H` | Show/hide local adjustment pin -`O` | Show/hide local adjustment mask overlay -`Shift` `O` | Cycle local adjustment mask overlay colors -`Ctrl` `Alt` `Shift` `T` | Select Targeted Adjustment tool to apply a Tone Curve adjustment -`Ctrl` `Alt` `Shift` `H` | Select Targeted Adjustment tool to apply a Hue adjustment -`Ctrl` `Alt` `Shift` `S` | Select Targeted Adjustment tool to apply a Saturation adjustment -`Ctrl` `Alt` `Shift` `L` | Select Targeted Adjustment tool to apply a Luminance adjustment -`Ctrl` `Alt` `Shift` `G` | Select Targeted Adjustment tool to apply a Grayscale Mix adjustment -`Ctrl` `Alt` `Shift` `N` | Deselect Targeted Adjustment tool -`J` | Show clipping -`Ctrl` `]` | Rotate photo right (clockwise) -`Ctrl` `[` | Rotate photo left (counterclockwise) -`Space/Z` | Toggle between Loupe and 1:1 Zoom preview -`Ctrl` `+/-` | Zoom in/out -`Ctrl` `Enter` | Play impromptu slide show -`Y` | View Before and After left/right -`Alt` `Y` | View Before and After top/bottom -`Shift` `Y` | View Before and After in a split screen -`\` | View Before only -`Ctrl` `N` | Create a new snapshot -`Ctrl` `Shift` `N` | Create a new preset -`Ctrl` `Alt` `N` | Create a new preset folder -`Ctrl` `J` | Open Develop view options -{.shortcuts} +| Shortcut | Action | +| ---------------------------- | ------------------------------------------------------------------------------------- | +| `V` | Convert to grayscale | +| `Ctrl` `U` | Auto tone | +| `Ctrl` `Shift` `U` | Auto white balance | +| `Ctrl` `E` | Edit in Photoshop | +| `Ctrl` `Shift` `C/V` | Copy/paste Develop settings | +| `Ctrl` `Alt` `V` | Paste settings from previous photo | +| `Ctrl` `Alt` `Shift` `Left` | Copy After settings to Before | +| `Ctrl` `Alt` `Shift` `Right` | Copy Before settings to After | +| `Ctrl` `Alt` `Shift` `Up` | Swap Before and After settings | +| `Up/Down` | Increase/decrease selected slider in small increments | +| `Shift` `Up/Down` | Increase/decrease selected slider in larger increments | +| `./,` | Cycle through Basic panel settings (forward/backward) | +| `(double-click slider name)` | Reset a slider | +| `Alt` `(click group name)` | Reset a group of sliders | +| `Ctrl` `Shift` `R` | Reset all settings | +| `Ctrl` `Shift` `S` | Sync settings | +| `Ctrl` `Alt` `S` | Sync settings bypassing Synchronize Settings dialog box | +| `Ctrl` `(click Sync button)` | Toggle Auto Sync | +| `Ctrl` `Alt` `Shift` `A` | Enable Auto Sync | +| `Ctrl` `Alt` `Shift` `M` | Match total exposures | +| `W` | Select White Balance tool (from any module) | +| `R` | Select the Crop tool (from any module) | +| `A` | Constrain aspect ratio when Crop tool is selected | +| `Shift` `A` | Crop to same aspect ratio as previous crop | +| `Alt` `(drag)` | Crop from center of photo | +| `O` | Cycle Crop grid overlay | +| `Shift` `O` | Cycle Crop grid overlay orientation | +| `X` | Switch crop between portrait and landscape orientation | +| `Ctrl` `Alt` `R` | Reset crop | +| `Shift` `T` | Select the Guided Upright tool | +| `Q` | Select the Spot Removal tool | +| `Shift` `T` | Toggle Brush between Clone and Heal modes when Spot Removal tool is selected | +| `K` | Select the Adjustment Brush tool (from any module) | +| `M` | Select the Graduated Filter tool | +| `Shift` `T` | Toggle Mask between Edit and Brush modes when the Graduated/Radial Filter is selected | +| `]/[` | Increase/decrease brush size | +| `Shift` `]/[` | Increase/decrease brush feathering | +| `/` | Switch between local adjustment brush A and B | +| `Alt` `(drag)` | Temporarily switch from brush A or B to Eraser | +| `Shift` `(drag)` | Paint a horizontal or vertical line | +| `H` | Show/hide local adjustment pin | +| `O` | Show/hide local adjustment mask overlay | +| `Shift` `O` | Cycle local adjustment mask overlay colors | +| `Ctrl` `Alt` `Shift` `T` | Select Targeted Adjustment tool to apply a Tone Curve adjustment | +| `Ctrl` `Alt` `Shift` `H` | Select Targeted Adjustment tool to apply a Hue adjustment | +| `Ctrl` `Alt` `Shift` `S` | Select Targeted Adjustment tool to apply a Saturation adjustment | +| `Ctrl` `Alt` `Shift` `L` | Select Targeted Adjustment tool to apply a Luminance adjustment | +| `Ctrl` `Alt` `Shift` `G` | Select Targeted Adjustment tool to apply a Grayscale Mix adjustment | +| `Ctrl` `Alt` `Shift` `N` | Deselect Targeted Adjustment tool | +| `J` | Show clipping | +| `Ctrl` `]` | Rotate photo right (clockwise) | +| `Ctrl` `[` | Rotate photo left (counterclockwise) | +| `Space/Z` | Toggle between Loupe and 1:1 Zoom preview | +| `Ctrl` `+/-` | Zoom in/out | +| `Ctrl` `Enter` | Play impromptu slide show | +| `Y` | View Before and After left/right | +| `Alt` `Y` | View Before and After top/bottom | +| `Shift` `Y` | View Before and After in a split screen | +| `\` | View Before only | +| `Ctrl` `N` | Create a new snapshot | +| `Ctrl` `Shift` `N` | Create a new preset | +| `Ctrl` `Alt` `N` | Create a new preset folder | +| `Ctrl` `J` | Open Develop view options | +{.shortcuts} ### Changing view and screen modes -Shortcut | Action ----|--- -`E` | Enter Library Loupe view -`G` | Enter Library Grid view -`C` | Enter Library Compare view -`N` | Enter Library Survey view -`D` | Open selected photo in the Develop module -`L` | Cycle forward through Lights Out modes -`Shift` `L` | Cycle backward through Lights Out modes -`Ctrl` `Shift` `L` | Toggle Lights Dim mode -`F` | Cycle screen modes -`Ctrl` `Shift` `F` | Switch between Normal and full-screen, hide panels -`Ctrl` `Alt` `F` | Go to Normal screen mode -`I` | Cycle info overlay -`Ctrl` `I` | Show/hide info overlay +| Shortcut | Action | +| ------------------ | -------------------------------------------------- | +| `E` | Enter Library Loupe view | +| `G` | Enter Library Grid view | +| `C` | Enter Library Compare view | +| `N` | Enter Library Survey view | +| `D` | Open selected photo in the Develop module | +| `L` | Cycle forward through Lights Out modes | +| `Shift` `L` | Cycle backward through Lights Out modes | +| `Ctrl` `Shift` `L` | Toggle Lights Dim mode | +| `F` | Cycle screen modes | +| `Ctrl` `Shift` `F` | Switch between Normal and full-screen, hide panels | +| `Ctrl` `Alt` `F` | Go to Normal screen mode | +| `I` | Cycle info overlay | +| `Ctrl` `I` | Show/hide info overlay | + {.shortcuts} - - ### Managing photos and catalogs -Shortcut | Action ----|--- -`Ctrl` `Shift` `I` | Import photos from disk -`Ctrl` `O` | Open catalog -`Ctrl` `,` | Open Preferences -`Ctrl` `Alt` `,` | Open Catalog Settings -`Ctrl` `Shift` `T` | Create new subfolder (segmented tethered capture) -`Ctrl` `T` | Hide/show tether capture bar -`Ctrl` `Shift` `N` | Create a new folder in the Library module -`Ctrl` `'` | Create virtual copy (Library and Develop module only) -`Ctrl` `R` | Show in Explorer/Finder (Library and Develop module only) -`Right/Left` | Go to next/previous photo in the Filmstrip -`Shift/Ctrl` `Click` | Select multiple folders or collections (in Library, Slideshow, Print, and Web modules) -`F2` | Rename photo (in Library module) -`Delete` | Delete selected photo(s) -`Alt` `Backspace` | Remove selected photo(s) from catalog -`Ctrl` `Alt` `Shift` `Backspace` | Delete selected photo(s) and move to Trash -`Ctrl` `Backspace` | Delete rejected photo(s) -`Ctrl` `E` | Edit in Photoshop -`Ctrl` `Alt` `E` | Open in other editor -`Ctrl` `Shift` `E` | Export selected photo(s) -`Ctrl` `Alt` `Shift` `E` | Export with previous settings -`Ctrl` `Alt` `Shift` `,` | Open plug-in manager -`Ctrl` `P` | Print selected photo -`Ctrl` `Shift` `P` | Open Page Setup dialog box -{.shortcuts} +| Shortcut | Action | +| -------------------------------- | -------------------------------------------------------------------------------------- | +| `Ctrl` `Shift` `I` | Import photos from disk | +| `Ctrl` `O` | Open catalog | +| `Ctrl` `,` | Open Preferences | +| `Ctrl` `Alt` `,` | Open Catalog Settings | +| `Ctrl` `Shift` `T` | Create new subfolder (segmented tethered capture) | +| `Ctrl` `T` | Hide/show tether capture bar | +| `Ctrl` `Shift` `N` | Create a new folder in the Library module | +| `Ctrl` `'` | Create virtual copy (Library and Develop module only) | +| `Ctrl` `R` | Show in Explorer/Finder (Library and Develop module only) | +| `Right/Left` | Go to next/previous photo in the Filmstrip | +| `Shift/Ctrl` `Click` | Select multiple folders or collections (in Library, Slideshow, Print, and Web modules) | +| `F2` | Rename photo (in Library module) | +| `Delete` | Delete selected photo(s) | +| `Alt` `Backspace` | Remove selected photo(s) from catalog | +| `Ctrl` `Alt` `Shift` `Backspace` | Delete selected photo(s) and move to Trash | +| `Ctrl` `Backspace` | Delete rejected photo(s) | +| `Ctrl` `E` | Edit in Photoshop | +| `Ctrl` `Alt` `E` | Open in other editor | +| `Ctrl` `Shift` `E` | Export selected photo(s) | +| `Ctrl` `Alt` `Shift` `E` | Export with previous settings | +| `Ctrl` `Alt` `Shift` `,` | Open plug-in manager | +| `Ctrl` `P` | Print selected photo | +| `Ctrl` `Shift` `P` | Open Page Setup dialog box | +{.shortcuts} ### Comparing photos in the Library module -Shortcut | Action ----|--- -`E/Enter` | Switch to Loupe view -`G/Esc` | Switch to Grid view -`C` | Switch to Compare view -`N` | Switch to Survey view -`Space/E` | Switch from Grid to Loupe view -`Down` | Swap select and candidate photos in Compare view -`Up` | Make next photos select and candidate in Compare view -`Z` | Toggle Zoom view -`Ctrl` `+/-` | Zoom in/out in Loupe view -`PgUp/PgDown` | Scroll up/down zoomed photo in Loupe view -`Home/End` | Go to beginning/end of Grid view -`Ctrl` `Enter` | Play impromptu slide show -`Ctrl` `]` | Rotate photo right (clockwise) -`Ctrl` `[` | Rotate photo left (counterclockwise) -`=/-` | Increase/decrease Grid thumbnail size -`PgUp/PgDown` | Scroll up/down Grid thumbnails -`Ctrl` `Shift` `H` | Toggle cell extras -`Ctrl` `Alt` `Shift` `H` | Show/hide badges -`J` | Cycle Grid views -`Ctrl` `J` | Open Library view options -`Ctrl` `(click)` | Select multiple discrete photos -`Shift` `(click)` | Select multiple contiguous photos -`Ctrl` `A` | Select all photos -`Ctrl` `D` | Deselect all photos -`Ctrl` `Shift` `D` | Select only active photo -`/` | Deselect active photo -`Shift` `Left/Right` | Add previous/next photo to selection -`Ctrl` `Alt` `A` | Select flagged photos -`Ctrl` `Alt` `Shift` `D` | Deselect unflagged photos -`Ctrl` `G` | Group into stack -`Ctrl` `Shift` `G` | Unstack -`S` | Toggle stack -`Shift` `S` | Move to top of stack -`Shift` `[` | Move up in stack -`Shift` `]` | Move down in stack -{.shortcuts} +| Shortcut | Action | +| ------------------------ | ----------------------------------------------------- | +| `E/Enter` | Switch to Loupe view | +| `G/Esc` | Switch to Grid view | +| `C` | Switch to Compare view | +| `N` | Switch to Survey view | +| `Space/E` | Switch from Grid to Loupe view | +| `Down` | Swap select and candidate photos in Compare view | +| `Up` | Make next photos select and candidate in Compare view | +| `Z` | Toggle Zoom view | +| `Ctrl` `+/-` | Zoom in/out in Loupe view | +| `PgUp/PgDown` | Scroll up/down zoomed photo in Loupe view | +| `Home/End` | Go to beginning/end of Grid view | +| `Ctrl` `Enter` | Play impromptu slide show | +| `Ctrl` `]` | Rotate photo right (clockwise) | +| `Ctrl` `[` | Rotate photo left (counterclockwise) | +| `=/-` | Increase/decrease Grid thumbnail size | +| `PgUp/PgDown` | Scroll up/down Grid thumbnails | +| `Ctrl` `Shift` `H` | Toggle cell extras | +| `Ctrl` `Alt` `Shift` `H` | Show/hide badges | +| `J` | Cycle Grid views | +| `Ctrl` `J` | Open Library view options | +| `Ctrl` `(click)` | Select multiple discrete photos | +| `Shift` `(click)` | Select multiple contiguous photos | +| `Ctrl` `A` | Select all photos | +| `Ctrl` `D` | Deselect all photos | +| `Ctrl` `Shift` `D` | Select only active photo | +| `/` | Deselect active photo | +| `Shift` `Left/Right` | Add previous/next photo to selection | +| `Ctrl` `Alt` `A` | Select flagged photos | +| `Ctrl` `Alt` `Shift` `D` | Deselect unflagged photos | +| `Ctrl` `G` | Group into stack | +| `Ctrl` `Shift` `G` | Unstack | +| `S` | Toggle stack | +| `Shift` `S` | Move to top of stack | +| `Shift` `[` | Move up in stack | +| `Shift` `]` | Move down in stack | +{.shortcuts} ### Rating and filtering photos -Shortcut | Action ----|--- -`1-5` | Set star rating -`Shift` `1-5` | Set star rating and go to next photo -`0` | Remove star rating -`Shift` `0` | Remove star rating and go to next photo -`]/[` | Increase/decrease rating by one star -`6` | Assign a red label -`7` | Assign a yellow label -`8` | Assign a green label -`9` | Assign a blue label -`Shift` `6-9` | Assign a color label and go to next photo -`P` | Flag photo as a pick -`Shift` `P` | Flag photo as a pick and go to next photo -`X` | Flag photo as a reject -`Shift` `X` | Flag photo as a reject and go to next photo -`U` | Unflag photo -`Shift` `U` | Unflag photo and go to next photo -`Ctrl` `Up/Down` | Increase/decrease flag status -\` | Cycle flag settings -`Ctrl` `Alt` `R` | Refine photos -`\` | Show/hide Library Filter bar -`Shift` `(click filter labels)` | Open multiple filters in the Filter bar -`Shift` `L` | Toggle filters on/off -`Ctrl` `F` | Find photo in the Library module -{.shortcuts} +| Shortcut | Action | +| ------------------------------- | ------------------------------------------- | +| `1-5` | Set star rating | +| `Shift` `1-5` | Set star rating and go to next photo | +| `0` | Remove star rating | +| `Shift` `0` | Remove star rating and go to next photo | +| `]/[` | Increase/decrease rating by one star | +| `6` | Assign a red label | +| `7` | Assign a yellow label | +| `8` | Assign a green label | +| `9` | Assign a blue label | +| `Shift` `6-9` | Assign a color label and go to next photo | +| `P` | Flag photo as a pick | +| `Shift` `P` | Flag photo as a pick and go to next photo | +| `X` | Flag photo as a reject | +| `Shift` `X` | Flag photo as a reject and go to next photo | +| `U` | Unflag photo | +| `Shift` `U` | Unflag photo and go to next photo | +| `Ctrl` `Up/Down` | Increase/decrease flag status | +| \` | Cycle flag settings | +| `Ctrl` `Alt` `R` | Refine photos | +| `\` | Show/hide Library Filter bar | +| `Shift` `(click filter labels)` | Open multiple filters in the Filter bar | +| `Shift` `L` | Toggle filters on/off | +| `Ctrl` `F` | Find photo in the Library module | +{.shortcuts} ### Working with collections -Shortcut | Action ----|--- -`Ctrl` `N` | Create a new collection in the Library module -`B` | Add to Quick Collection -`Shift` `B` | Add to Quick Collection and go to next photo -`Ctrl` `B` | Show Quick Collection -`Ctrl` `Alt` `B` | Save Quick Collection -`Ctrl` `Shift` `B` | Clear Quick Collection -`Ctrl` `Alt` `Shift` `B` | Set as target collection -{.shortcuts} +| Shortcut | Action | +| ------------------------ | --------------------------------------------- | +| `Ctrl` `N` | Create a new collection in the Library module | +| `B` | Add to Quick Collection | +| `Shift` `B` | Add to Quick Collection and go to next photo | +| `Ctrl` `B` | Show Quick Collection | +| `Ctrl` `Alt` `B` | Save Quick Collection | +| `Ctrl` `Shift` `B` | Clear Quick Collection | +| `Ctrl` `Alt` `Shift` `B` | Set as target collection | +{.shortcuts} ### Working with metadata and keywords in the Library module -Shortcut | Action ----|--- -`Ctrl` `K` | Add keywords -`Ctrl` `Shift` `K` | Edit keywords -`Ctrl` `Alt` `Shift` `K` | Set a keyword shortcut -`Shift` `K` | Add/remove keyword shortcut from selected photo -`Ctrl` `Alt` `K` | Enable painting -`Alt` `1-9` | Add a keyword from a keyword set to selected photo -`Alt` `0` | Cycle forward through keyword sets -`Alt` `Shift` `0` | Cycle backward through keyword sets -`Ctrl` `Alt` `Shift` `C/V` | Copy/paste metadata -`Ctrl` `S` | Save metadata to file -{.shortcuts} +| Shortcut | Action | +| -------------------------- | -------------------------------------------------- | +| `Ctrl` `K` | Add keywords | +| `Ctrl` `Shift` `K` | Edit keywords | +| `Ctrl` `Alt` `Shift` `K` | Set a keyword shortcut | +| `Shift` `K` | Add/remove keyword shortcut from selected photo | +| `Ctrl` `Alt` `K` | Enable painting | +| `Alt` `1-9` | Add a keyword from a keyword set to selected photo | +| `Alt` `0` | Cycle forward through keyword sets | +| `Alt` `Shift` `0` | Cycle backward through keyword sets | +| `Ctrl` `Alt` `Shift` `C/V` | Copy/paste metadata | +| `Ctrl` `S` | Save metadata to file | +{.shortcuts} ### Working in the Slideshow module -Shortcut | Action ----|--- -`Enter` | Play slide show -`Ctrl` `Enter` | Play impromptu slide show -`Space` | Pause slide show -`Alt` `Enter` | Preview slide show -`Esc` | End slide show -`Right` | Go to next slide -`Left` | Go to previous slide -`Ctrl` `]` | Rotate photo right (clockwise) -`Ctrl` `[` | Rotate photo left (counterclockwise) -`Ctrl` `Shift` `H` | Show/hide guides -`Ctrl` `J` | Export PDF slide show -`Ctrl` `Shift` `J` | Export JPEG slide show -`Ctrl` `Alt` `J` | Export video slide show -`Ctrl` `N` | Create a new slide show template -`Ctrl` `Shift` `N` | Create a new slide show template folder -`Ctrl` `S` | Save slide show settings -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------------------------------- | +| `Enter` | Play slide show | +| `Ctrl` `Enter` | Play impromptu slide show | +| `Space` | Pause slide show | +| `Alt` `Enter` | Preview slide show | +| `Esc` | End slide show | +| `Right` | Go to next slide | +| `Left` | Go to previous slide | +| `Ctrl` `]` | Rotate photo right (clockwise) | +| `Ctrl` `[` | Rotate photo left (counterclockwise) | +| `Ctrl` `Shift` `H` | Show/hide guides | +| `Ctrl` `J` | Export PDF slide show | +| `Ctrl` `Shift` `J` | Export JPEG slide show | +| `Ctrl` `Alt` `J` | Export video slide show | +| `Ctrl` `N` | Create a new slide show template | +| `Ctrl` `Shift` `N` | Create a new slide show template folder | +| `Ctrl` `S` | Save slide show settings | +{.shortcuts} ### Working in the Print module -Shortcut | Action ----|--- -`Ctrl` `P` | Print -`Ctrl` `Alt` `P` | Print one copy -`Ctrl` `Shift` `P` | Open Page Setup dialog box -`Ctrl` `Alt` `Shift` `P` | Open Print Settings dialog box -`Ctrl` `Shift` `Left` | Go to first page -`Ctrl` `Shift` `Right` | Go to last page -`Ctrl` `Left` | Go to previous page -`Ctrl` `Right` | Go to next page -`Ctrl` `Shift` `H` | Show/hide guides -`Ctrl` `R` | Show/hide rulers -`Ctrl` `Shift` `J` | Show/hide page bleed -`Ctrl` `Shift` `M` | Show/hide margins and gutters -`Ctrl` `Shift` `K` | Show/hide image cells -`Ctrl` `Shift` `U` | Show/hide dimensions -`Ctrl` `Enter` | Play impromptu slide show -`Ctrl` `]` | Rotate photo right (clockwise) -`Ctrl` `[` | Rotate photo left (counterclockwise) -`Ctrl` `N` | Create a new print template -`Ctrl` `Shift` `N` | Create a new print template folder -`Ctrl` `S` | Save print settings -{.shortcuts} +| Shortcut | Action | +| ------------------------ | ------------------------------------ | +| `Ctrl` `P` | Print | +| `Ctrl` `Alt` `P` | Print one copy | +| `Ctrl` `Shift` `P` | Open Page Setup dialog box | +| `Ctrl` `Alt` `Shift` `P` | Open Print Settings dialog box | +| `Ctrl` `Shift` `Left` | Go to first page | +| `Ctrl` `Shift` `Right` | Go to last page | +| `Ctrl` `Left` | Go to previous page | +| `Ctrl` `Right` | Go to next page | +| `Ctrl` `Shift` `H` | Show/hide guides | +| `Ctrl` `R` | Show/hide rulers | +| `Ctrl` `Shift` `J` | Show/hide page bleed | +| `Ctrl` `Shift` `M` | Show/hide margins and gutters | +| `Ctrl` `Shift` `K` | Show/hide image cells | +| `Ctrl` `Shift` `U` | Show/hide dimensions | +| `Ctrl` `Enter` | Play impromptu slide show | +| `Ctrl` `]` | Rotate photo right (clockwise) | +| `Ctrl` `[` | Rotate photo left (counterclockwise) | +| `Ctrl` `N` | Create a new print template | +| `Ctrl` `Shift` `N` | Create a new print template folder | +| `Ctrl` `S` | Save print settings | +{.shortcuts} ### Working in the Web module -Shortcut | Action ----|--- -`Ctrl` `R` | Reload web gallery -`Ctrl` `Alt` `P` | Preview in browser -`Ctrl` `Enter` | Play impromptu slide show -`Ctrl` `J` | Export web gallery -`Ctrl` `N` | Create a new web gallery template -`Ctrl` `Shift` `N` | Create a new web gallery template folder -`Ctrl` `S` | Save web gallery settings -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------------------------- | +| `Ctrl` `R` | Reload web gallery | +| `Ctrl` `Alt` `P` | Preview in browser | +| `Ctrl` `Enter` | Play impromptu slide show | +| `Ctrl` `J` | Export web gallery | +| `Ctrl` `N` | Create a new web gallery template | +| `Ctrl` `Shift` `N` | Create a new web gallery template folder | +| `Ctrl` `S` | Save web gallery settings | +{.shortcuts} ### Using help -Shortcut | Action ----|--- -`Ctrl` `/` | Display current module shortcuts -`(click)` | Hide current module shortcuts -`Ctrl` `Alt` `/` | Go to current module Help -`F1` | Open Community Help +| Shortcut | Action | +| ---------------- | -------------------------------- | +| `Ctrl` `/` | Display current module shortcuts | +| `(click)` | Hide current module shortcuts | +| `Ctrl` `Alt` `/` | Go to current module Help | +| `F1` | Open Community Help | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Adobe Lightroom CC](https://helpx.adobe.com/lightroom/help/keyboard-shortcuts.html) _(helpx.adobe.com)_ +- [Keyboard shortcuts for Adobe Lightroom CC](https://helpx.adobe.com/lightroom/help/keyboard-shortcuts.html) + _(helpx.adobe.com)_ diff --git a/source/_posts/adobe-photoshop.md b/source/_posts/adobe-photoshop.md index 912bfc4..10c66ed 100644 --- a/source/_posts/adobe-photoshop.md +++ b/source/_posts/adobe-photoshop.md @@ -2,462 +2,456 @@ title: Adobe Photoshop date: 2022-11-23 16:23:31.706034 background: bg-[#071c25] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 283 keyboard shortcuts found in Adobe Photoshop + A visual cheat-sheet for the 283 keyboard shortcuts found in Adobe Photoshop --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Popular shortcuts -Shortcut | Action ----|--- -`Ctrl` `T` | Free transform -`[` | Decrease brush size -`]` | Increase brush size -`Shift` `[` | Decrease brush hardness -`Shift` `]` | Increase brush hardness -`D` | Default foreground/background colors -`X` | Switch foreground/background colors -`Ctrl` `J` | New layer via copy -`Ctrl` `Shift` `J` | New layer via cut -`Esc` | Cancel any modal dialog window (including the Start Workspace) -`Enter` | Select the first edit field of the tool bar -`Tab` | Navigate between fields -`Shift` `Tab` | Navigate between fields in the opposite direction -`Alt` | Change cancel to reset -`Ctrl` `F` | Invoke the search experience -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------------------------------------------------------- | +| `Ctrl` `T` | Free transform | +| `[` | Decrease brush size | +| `]` | Increase brush size | +| `Shift` `[` | Decrease brush hardness | +| `Shift` `]` | Increase brush hardness | +| `D` | Default foreground/background colors | +| `X` | Switch foreground/background colors | +| `Ctrl` `J` | New layer via copy | +| `Ctrl` `Shift` `J` | New layer via cut | +| `Esc` | Cancel any modal dialog window (including the Start Workspace) | +| `Enter` | Select the first edit field of the tool bar | +| `Tab` | Navigate between fields | +| `Shift` `Tab` | Navigate between fields in the opposite direction | +| `Alt` | Change cancel to reset | +| `Ctrl` `F` | Invoke the search experience | +{.shortcuts} ### Use function keys -Shortcut | Action ----|--- -`F1` | Start help -`F2` | Cut -`F3` | Copy -`F4` | Paste -`F5` | Show/hide brush panel -`F6` | Show/hide color panel -`F7` | Show/hide layers panel -`F8` | Show/hide info panel -`F9` | Show/hide actions panel -`F12` | Revert -`Shift` `F5` | Fill -`Shift` `F6` | Feather selection -`Shift` `F7` | Inverse selection -{.shortcuts} +| Shortcut | Action | +| ------------ | ----------------------- | +| `F1` | Start help | +| `F2` | Cut | +| `F3` | Copy | +| `F4` | Paste | +| `F5` | Show/hide brush panel | +| `F6` | Show/hide color panel | +| `F7` | Show/hide layers panel | +| `F8` | Show/hide info panel | +| `F9` | Show/hide actions panel | +| `F12` | Revert | +| `Shift` `F5` | Fill | +| `Shift` `F6` | Feather selection | +| `Shift` `F7` | Inverse selection | +{.shortcuts} ### Select tools {.row-span-2} -Shortcut | Action ----|--- -`V` | Move tool -`M` | Rectangular marquee tool -`L` | Lasso tool -`W` | Magic wand tool > quick selection tool -`C` | Crop tool > slice tool > slice select tool -`I` | Eyedropper tool > ruler tool > note tool -`J` | Spot healing brush tool > healing brush tool > patch tool > red eye tool -`B` | Brush tool > pencil tool > color replacement tool > mixer brush tool -`S` | Clone stamp tool > pattern stamp tool -`Y` | History brush tool > Art history brush tool -`E` | Eraser tool > background eraser tool > magic eraser tool -`G` | Gradient tool > paint bucket tool -`O` | Dodge tool > burn tool > sponge tool -`P` | Pen tool > freeform pen tool -`T` | Horizontal type tool > vertical type tool > horizontal type mask tool > vertical type mask tool -`A` | Path selection tool > direct selection tool -`U` | Rectangle tool > rounded rectangle tool > ellipse tool > polygon tool > line tool -`H` | Hand tool -`R` | Rotate view tool -`Z` | Zoom tool -`D` | Default foreground/background colors -`X` | Switch foreground/background colors -`Q` | Toggle standard/quick mask modes -`J` | Content-aware move tool -`C` | Perspective crop tool -`V` | Artboard tool -`R` | Rotate view tool -`/` | Toggle preserve transparency -`,` | Previous brush -`.` | Next brush -`Shift` `,` | First brush -`Shift` `.` | Last brush -{.shortcuts} +| Shortcut | Action | +| ----------- | ----------------------------------------------------------------------------------------------- | +| `V` | Move tool | +| `M` | Rectangular marquee tool | +| `L` | Lasso tool | +| `W` | Magic wand tool > quick selection tool | +| `C` | Crop tool > slice tool > slice select tool | +| `I` | Eyedropper tool > ruler tool > note tool | +| `J` | Spot healing brush tool > healing brush tool > patch tool > red eye tool | +| `B` | Brush tool > pencil tool > color replacement tool > mixer brush tool | +| `S` | Clone stamp tool > pattern stamp tool | +| `Y` | History brush tool > Art history brush tool | +| `E` | Eraser tool > background eraser tool > magic eraser tool | +| `G` | Gradient tool > paint bucket tool | +| `O` | Dodge tool > burn tool > sponge tool | +| `P` | Pen tool > freeform pen tool | +| `T` | Horizontal type tool > vertical type tool > horizontal type mask tool > vertical type mask tool | +| `A` | Path selection tool > direct selection tool | +| `U` | Rectangle tool > rounded rectangle tool > ellipse tool > polygon tool > line tool | +| `H` | Hand tool | +| `R` | Rotate view tool | +| `Z` | Zoom tool | +| `D` | Default foreground/background colors | +| `X` | Switch foreground/background colors | +| `Q` | Toggle standard/quick mask modes | +| `J` | Content-aware move tool | +| `C` | Perspective crop tool | +| `V` | Artboard tool | +| `R` | Rotate view tool | +| `/` | Toggle preserve transparency | +| `,` | Previous brush | +| `.` | Next brush | +| `Shift` `,` | First brush | +| `Shift` `.` | Last brush | +{.shortcuts} ### View images {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `Tab` | Cycle through open documents -`Ctrl` `Shift` `Tab` | Switch to previous document -`Ctrl` `Shift` `W` | Close a file in Photoshop and open Bridge -`F` | Toggle forward between Standard screen > Full screen with menu bar > Full screen modes -`Shift` `F` | Toggle backwards between Standard screen > Full screen with menu bar > Full screen modes -`Space` `F` | Toggle forward canvas color -`Shift` `Space` `F` | Toggle backwards canvas color -`Space` | Switch to hand tool (when not in text-edit mode) -`Ctrl` `Space` | Switch to zoom in tool -`Alt` `Space` | Switch to zoom out tool -`Shift` `Enter` | Apply zoom percentage, and keep zoom percentage box active -`PgUp/PgDn` | Scroll up or down 1 screen -`Shift` `PgUp/PgDn` | Scroll up or down 10 units -`Home` | Move view to upper-left corner -`End` | Move view to lower-right corner -`\` | Toggle layer mask on/off as rubylith (layer mask must be selected) -{.shortcuts} +| Shortcut | Action | +| -------------------- | ---------------------------------------------------------------------------------------- | +| `Ctrl` `Tab` | Cycle through open documents | +| `Ctrl` `Shift` `Tab` | Switch to previous document | +| `Ctrl` `Shift` `W` | Close a file in Photoshop and open Bridge | +| `F` | Toggle forward between Standard screen > Full screen with menu bar > Full screen modes | +| `Shift` `F` | Toggle backwards between Standard screen > Full screen with menu bar > Full screen modes | +| `Space` `F` | Toggle forward canvas color | +| `Shift` `Space` `F` | Toggle backwards canvas color | +| `Space` | Switch to hand tool (when not in text-edit mode) | +| `Ctrl` `Space` | Switch to zoom in tool | +| `Alt` `Space` | Switch to zoom out tool | +| `Shift` `Enter` | Apply zoom percentage, and keep zoom percentage box active | +| `PgUp/PgDn` | Scroll up or down 1 screen | +| `Shift` `PgUp/PgDn` | Scroll up or down 10 units | +| `Home` | Move view to upper-left corner | +| `End` | Move view to lower-right corner | +| `\` | Toggle layer mask on/off as rubylith (layer mask must be selected) | +{.shortcuts} ### Use Puppet Warp -Shortcut | Action ----|--- -`Esc` | Cancel completely -`Ctrl` `Z` | Undo last pin adjustment -`Ctrl` `A` | Select all pins -`Ctrl` `D` | Deselect all pins -`H` | Temporarily hide pins -{.shortcuts} +| Shortcut | Action | +| ---------- | ------------------------ | +| `Esc` | Cancel completely | +| `Ctrl` `Z` | Undo last pin adjustment | +| `Ctrl` `A` | Select all pins | +| `Ctrl` `D` | Deselect all pins | +| `H` | Temporarily hide pins | +{.shortcuts} ### Use Refine Edge -Shortcut | Action ----|--- -`Ctrl` `Alt` `R` | Open the Refine Edge dialog box -`F` | Cycle forward through preview modes -`Shift` `F` | Cycle backwards through preview modes -`X` | Toggle between original image and selection preview -`P` | Toggle between original selection and refined version -`J` | Toggle radius preview on and off -`Shift` `E` | Toggle between Refine Radius and Erase Refinement tools -{.shortcuts} +| Shortcut | Action | +| ---------------- | ------------------------------------------------------- | +| `Ctrl` `Alt` `R` | Open the Refine Edge dialog box | +| `F` | Cycle forward through preview modes | +| `Shift` `F` | Cycle backwards through preview modes | +| `X` | Toggle between original image and selection preview | +| `P` | Toggle between original selection and refined version | +| `J` | Toggle radius preview on and off | +| `Shift` `E` | Toggle between Refine Radius and Erase Refinement tools | +{.shortcuts} ### Use the Filter Gallery -Shortcut | Action ----|--- -`Ctrl` `Alt` `F` | Reapply last-used filter -`Ctrl` | Change Cancel button to Default -`Alt` | Change Cancel button to Reset -`Ctrl` `Z` | Undo/Redo -`Ctrl` `Shift` `Z` | Step forward -`Ctrl` `Alt` `Z` | Step backward -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------- | +| `Ctrl` `Alt` `F` | Reapply last-used filter | +| `Ctrl` | Change Cancel button to Default | +| `Alt` | Change Cancel button to Reset | +| `Ctrl` `Z` | Undo/Redo | +| `Ctrl` `Shift` `Z` | Step forward | +| `Ctrl` `Alt` `Z` | Step backward | +{.shortcuts} ### Use the Liquify filter -Shortcut | Action ----|--- -`W` | Forward warp tool -`R` | Reconstruct tool -`C` | Twirl clockwise tool -`S` | Pucker tool -`B` | Bloat tool -`O` | Push left tool -`M` | Mirror tool -`T` | Turbulence tool -`F` | Freeze mask tool -`D` | Thaw mask tool -`Alt` `(tool)` | Reverse direction for Bloat, Pucker, Push Left, and Mirror tools -`Tab` | Cycle through controls on right from top -`Shift` `Tab` | Cycle through controls on right from bottom -`Alt` | Change cancel to reset -{.shortcuts} +| Shortcut | Action | +| -------------- | ---------------------------------------------------------------- | +| `W` | Forward warp tool | +| `R` | Reconstruct tool | +| `C` | Twirl clockwise tool | +| `S` | Pucker tool | +| `B` | Bloat tool | +| `O` | Push left tool | +| `M` | Mirror tool | +| `T` | Turbulence tool | +| `F` | Freeze mask tool | +| `D` | Thaw mask tool | +| `Alt` `(tool)` | Reverse direction for Bloat, Pucker, Push Left, and Mirror tools | +| `Tab` | Cycle through controls on right from top | +| `Shift` `Tab` | Cycle through controls on right from bottom | +| `Alt` | Change cancel to reset | +{.shortcuts} ### Use Vanishing Point -Shortcut | Action ----|--- -`X` | Zoom 2x (temporary) -`Ctrl` `+` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Fit in view -`Ctrl` `Z` | Undo last action -`Ctrl` `Shift` `Z` | Redo last action -`Ctrl` `D` | Deselect all -`Ctrl` `H` | Hide selection and panes -`Arrows` | Move selection 1 pixel -`Shift` `Arrows` | Move selection 10 pixels -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `Shift` `T` | Repeat last duplicate and move -`Ctrl` `Alt` `T` | Create floating selection from the current selection -`Alt` `Shift` | Constrain selection to a 15 degree rotation -`Backspace` | Delete last node while creating plane -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------------------------------------- | +| `X` | Zoom 2x (temporary) | +| `Ctrl` `+` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Fit in view | +| `Ctrl` `Z` | Undo last action | +| `Ctrl` `Shift` `Z` | Redo last action | +| `Ctrl` `D` | Deselect all | +| `Ctrl` `H` | Hide selection and panes | +| `Arrows` | Move selection 1 pixel | +| `Shift` `Arrows` | Move selection 10 pixels | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `Shift` `T` | Repeat last duplicate and move | +| `Ctrl` `Alt` `T` | Create floating selection from the current selection | +| `Alt` `Shift` | Constrain selection to a 15 degree rotation | +| `Backspace` | Delete last node while creating plane | +{.shortcuts} ### Use the Camera Raw dialog box {.row-span-4} -Shortcut | Action ----|--- -`Z` | Zoom tool -`H` | Hand tool -`I` | White balance tool -`S` | Color sampler tool -`C` | Crop tool -`A` | Straighten tool -`B` | Spot removal tool -`E` | Red eye removal tool -`Ctrl` `Alt` `1` | Basic panel -`Ctrl` `Alt` `2` | Tone curve panel -`Ctrl` `Alt` `3` | Detail panel -`Ctrl` `Alt` `4` | HSL/Greyscale panel -`Ctrl` `Alt` `5` | Split toning panel -`Ctrl` `Alt` `6` | Lens corrections panel -`Ctrl` `Alt` `7` | Camera calibration panel -`Ctrl` `Alt` `8` | Presets panel -`Ctrl` `Alt` `9` | Open snapshots panel -`Ctrl` `Alt` `Shift` `T` | Parametric curve targeted adjustment tool -`Ctrl` `Alt` `Shift` `H` | Hue targeted adjustment tool -`Ctrl` `Alt` `Shift` `S` | Saturation targeted adjustment tool -`Ctrl` `Alt` `Shift` `L` | Luminance targeted adjustment tool -`Ctrl` `Alt` `Shift` `G` | Grayscale mix targeted adjustment tool -`T` | Last-used targeted adjustment tool -`K` | Adjustment brush tool -`G` | Graduated filter tool -`Alt` | Temporarily switch from Add to Erase mode for the Adjustment brush tool, or from Erase to Add mode -`Alt` `]/[` | Increase/decrease temporary adjustment brush tool size -`Alt` `Shift` `]/[` | Increase/decrease temporary adjustment brush tool feather -`Alt` `=/-` | Increase/decrease temporary adjustment brush tool size flow in increments of 10 -`N` | Switch to New mode from Add or Erase mode of the Adjustment Brush tool or Graduated filter -`M` | Toggle Auto Mask for Adjustment Brush tool -`Y` | Toggle Show Mask for Adjustment Brush tool -`V` | Toggle pins for Adjustment Brush tool -`L` | Rotate image left -`R` | Rotate image right -`Ctrl` | Temporarily switch to zoom in tool -`Alt` | Temporarily switch to zoom out tool and change the image open button to open copy -`P` | Toggle preview -`F` | Full screen mode -`Shift` | Temporarily activate the White Balance tool and change the open image button to open object -`Arrows` | Move selected point in curves panel 1 pixel -`Shift` `Arrows` | Move selected point in curves panel 10 pixels -`Ctrl` `R` | Open selected images in Camera Raw dialog box from Bridge -`O` | Highlight clipping warning -`U` | Shadows clipping warning -`Ctrl` `1-5` | Add 1-5 star rating (filmstrip mode) -`Ctrl` `./,` | Increase/decrease rating (filmstrip mode) -`Ctrl` `6` | Add red label (filmstrip mode) -`Ctrl` `7` | Add yellow label (filmstrip mode) -`Ctrl` `8` | Add green label (filmstrip mode) -`Ctrl` `9` | Add blue label (filmstrip mode) -`Ctrl` `Shift` `0` | Add purple label (filmstrip mode) -`Ctrl` `K` | Camera Raw preferences -`Ctrl` `Alt` | Delete Adobe Camera Raw preferences (on open) -{.shortcuts} +| Shortcut | Action | +| ------------------------ | -------------------------------------------------------------------------------------------------- | +| `Z` | Zoom tool | +| `H` | Hand tool | +| `I` | White balance tool | +| `S` | Color sampler tool | +| `C` | Crop tool | +| `A` | Straighten tool | +| `B` | Spot removal tool | +| `E` | Red eye removal tool | +| `Ctrl` `Alt` `1` | Basic panel | +| `Ctrl` `Alt` `2` | Tone curve panel | +| `Ctrl` `Alt` `3` | Detail panel | +| `Ctrl` `Alt` `4` | HSL/Greyscale panel | +| `Ctrl` `Alt` `5` | Split toning panel | +| `Ctrl` `Alt` `6` | Lens corrections panel | +| `Ctrl` `Alt` `7` | Camera calibration panel | +| `Ctrl` `Alt` `8` | Presets panel | +| `Ctrl` `Alt` `9` | Open snapshots panel | +| `Ctrl` `Alt` `Shift` `T` | Parametric curve targeted adjustment tool | +| `Ctrl` `Alt` `Shift` `H` | Hue targeted adjustment tool | +| `Ctrl` `Alt` `Shift` `S` | Saturation targeted adjustment tool | +| `Ctrl` `Alt` `Shift` `L` | Luminance targeted adjustment tool | +| `Ctrl` `Alt` `Shift` `G` | Grayscale mix targeted adjustment tool | +| `T` | Last-used targeted adjustment tool | +| `K` | Adjustment brush tool | +| `G` | Graduated filter tool | +| `Alt` | Temporarily switch from Add to Erase mode for the Adjustment brush tool, or from Erase to Add mode | +| `Alt` `]/[` | Increase/decrease temporary adjustment brush tool size | +| `Alt` `Shift` `]/[` | Increase/decrease temporary adjustment brush tool feather | +| `Alt` `=/-` | Increase/decrease temporary adjustment brush tool size flow in increments of 10 | +| `N` | Switch to New mode from Add or Erase mode of the Adjustment Brush tool or Graduated filter | +| `M` | Toggle Auto Mask for Adjustment Brush tool | +| `Y` | Toggle Show Mask for Adjustment Brush tool | +| `V` | Toggle pins for Adjustment Brush tool | +| `L` | Rotate image left | +| `R` | Rotate image right | +| `Ctrl` | Temporarily switch to zoom in tool | +| `Alt` | Temporarily switch to zoom out tool and change the image open button to open copy | +| `P` | Toggle preview | +| `F` | Full screen mode | +| `Shift` | Temporarily activate the White Balance tool and change the open image button to open object | +| `Arrows` | Move selected point in curves panel 1 pixel | +| `Shift` `Arrows` | Move selected point in curves panel 10 pixels | +| `Ctrl` `R` | Open selected images in Camera Raw dialog box from Bridge | +| `O` | Highlight clipping warning | +| `U` | Shadows clipping warning | +| `Ctrl` `1-5` | Add 1-5 star rating (filmstrip mode) | +| `Ctrl` `./,` | Increase/decrease rating (filmstrip mode) | +| `Ctrl` `6` | Add red label (filmstrip mode) | +| `Ctrl` `7` | Add yellow label (filmstrip mode) | +| `Ctrl` `8` | Add green label (filmstrip mode) | +| `Ctrl` `9` | Add blue label (filmstrip mode) | +| `Ctrl` `Shift` `0` | Add purple label (filmstrip mode) | +| `Ctrl` `K` | Camera Raw preferences | +| `Ctrl` `Alt` | Delete Adobe Camera Raw preferences (on open) | +{.shortcuts} ### Use the Black-and-White dialog box -Shortcut | Action ----|--- -`Ctrl` `Shift` `Alt` `B` | Open the Black-and-White dialog box -`Up/Down` | Increase/decrease selected value by 1% -`Shift` `Up/Down` | Increase/decrease selected value by 10% -{.shortcuts} +| Shortcut | Action | +| ------------------------ | --------------------------------------- | +| `Ctrl` `Shift` `Alt` `B` | Open the Black-and-White dialog box | +| `Up/Down` | Increase/decrease selected value by 1% | +| `Shift` `Up/Down` | Increase/decrease selected value by 10% | +{.shortcuts} ### Use Curves -Shortcut | Action ----|--- -`Ctrl` `M` | Open the Curves dialog box -`+` | Select next point on the curve -`-` | Select the previous point on the curve -`Ctrl` `D` | Deselect a point -`Del` | Delete a point on the curve -`Arrows` | Move the selected point 1 pixel -`Shift` `Arrows` | Move the selected point 10 pixels -{.shortcuts} +| Shortcut | Action | +| ---------------- | -------------------------------------- | +| `Ctrl` `M` | Open the Curves dialog box | +| `+` | Select next point on the curve | +| `-` | Select the previous point on the curve | +| `Ctrl` `D` | Deselect a point | +| `Del` | Delete a point on the curve | +| `Arrows` | Move the selected point 1 pixel | +| `Shift` `Arrows` | Move the selected point 10 pixels | +{.shortcuts} ### Transform selections, selection borders, and paths -Shortcut | Action ----|--- -`Alt` | Transform from center or reflect -`Shift` | Constrain -`Ctrl` | Distort -`Enter` | Apply -`Ctrl` `.` | Cancel -`Ctrl` `Alt` `T` | Free transform with duplicate data -`Ctrl` `Shift` `Alt` `T` | Transform again with duplicate data -{.shortcuts} +| Shortcut | Action | +| ------------------------ | ----------------------------------- | +| `Alt` | Transform from center or reflect | +| `Shift` | Constrain | +| `Ctrl` | Distort | +| `Enter` | Apply | +| `Ctrl` `.` | Cancel | +| `Ctrl` `Alt` `T` | Free transform with duplicate data | +| `Ctrl` `Shift` `Alt` `T` | Transform again with duplicate data | +{.shortcuts} ### Edit paths -Shortcut | Action ----|--- -`Ctrl` | Switch from path selection, pen, add anchor point, delete anchor point, or convert point tools to direct selection tool -`Alt` | Switch from pen tool to freeform pen tool to convert point tool when pointer is over anchor or direction point -{.shortcuts} +| Shortcut | Action | +| -------- | ----------------------------------------------------------------------------------------------------------------------- | +| `Ctrl` | Switch from path selection, pen, add anchor point, delete anchor point, or convert point tools to direct selection tool | +| `Alt` | Switch from pen tool to freeform pen tool to convert point tool when pointer is over anchor or direction point | +{.shortcuts} ### Use for painting -Shortcut | Action ----|--- -`Alt` `Shift` `0-9` | Mixer brush changes mix setting -`0-9` | Mixer brush changes wet setting -`00` | Mixer brush changes wet and mix to zero -`Shift` `+/-` | Cycle through blending modes -`Backspace` | Open fill dialog box on background or standard layer -`Alt` `Backspace` | Fill with foreground color -`Ctrl` `Backspace` | Fill with background color -`Ctrl` `Alt` `Backspace` | Fill from history -`Shift` `Backspace` | Displays fill dialog box -`/` | Lock transparent pixels on/off -{.shortcuts} +| Shortcut | Action | +| ------------------------ | ---------------------------------------------------- | +| `Alt` `Shift` `0-9` | Mixer brush changes mix setting | +| `0-9` | Mixer brush changes wet setting | +| `00` | Mixer brush changes wet and mix to zero | +| `Shift` `+/-` | Cycle through blending modes | +| `Backspace` | Open fill dialog box on background or standard layer | +| `Alt` `Backspace` | Fill with foreground color | +| `Ctrl` `Backspace` | Fill with background color | +| `Ctrl` `Alt` `Backspace` | Fill from history | +| `Shift` `Backspace` | Displays fill dialog box | +| `/` | Lock transparent pixels on/off | +{.shortcuts} ### Use for blending modes {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `-/+` | Cycle through blending modes -`Shift` `Alt` `N` | Normal -`Shift` `Alt` `I` | Dissolve -`Shift` `Alt` `Q` | Behind (brush tool only) -`Shift` `Alt` `R` | Clear (brush tool only) -`Shift` `Alt` `K` | Darken -`Shift` `Alt` `M` | Multiply -`Shift` `Alt` `B` | Color burn -`Shift` `Alt` `A` | Linear burn -`Shift` `Alt` `G` | Lighten -`Shift` `Alt` `S` | Screen -`Shift` `Alt` `D` | Color dodge -`Shift` `Alt` `W` | Linear dodge -`Shift` `Alt` `O` | Overlay -`Shift` `Alt` `F` | Soft light -`Shift` `Alt` `H` | Hard light -`Shift` `Alt` `V` | Vivid light -`Shift` `Alt` `J` | Linear light -`Shift` `Alt` `Z` | Pin light -`Shift` `Alt` `L` | Hard mix -`Shift` `Alt` `E` | Difference -`Shift` `Alt` `X` | Exclusion -`Shift` `Alt` `U` | Hue -`Shift` `Alt` `T` | Saturation -`Shift` `Alt` `C` | Color -`Shift` `Alt` `Y` | Luminosity -`Shift` `Alt` `N` | Set blending mode to Threshold for bitmap images, Normal for all other images -{.shortcuts} +| Shortcut | Action | +| ----------------- | ----------------------------------------------------------------------------- | +| `Ctrl` `-/+` | Cycle through blending modes | +| `Shift` `Alt` `N` | Normal | +| `Shift` `Alt` `I` | Dissolve | +| `Shift` `Alt` `Q` | Behind (brush tool only) | +| `Shift` `Alt` `R` | Clear (brush tool only) | +| `Shift` `Alt` `K` | Darken | +| `Shift` `Alt` `M` | Multiply | +| `Shift` `Alt` `B` | Color burn | +| `Shift` `Alt` `A` | Linear burn | +| `Shift` `Alt` `G` | Lighten | +| `Shift` `Alt` `S` | Screen | +| `Shift` `Alt` `D` | Color dodge | +| `Shift` `Alt` `W` | Linear dodge | +| `Shift` `Alt` `O` | Overlay | +| `Shift` `Alt` `F` | Soft light | +| `Shift` `Alt` `H` | Hard light | +| `Shift` `Alt` `V` | Vivid light | +| `Shift` `Alt` `J` | Linear light | +| `Shift` `Alt` `Z` | Pin light | +| `Shift` `Alt` `L` | Hard mix | +| `Shift` `Alt` `E` | Difference | +| `Shift` `Alt` `X` | Exclusion | +| `Shift` `Alt` `U` | Hue | +| `Shift` `Alt` `T` | Saturation | +| `Shift` `Alt` `C` | Color | +| `Shift` `Alt` `Y` | Luminosity | +| `Shift` `Alt` `N` | Set blending mode to Threshold for bitmap images, Normal for all other images | +{.shortcuts} ### Format type -Shortcut | Action ----|--- -`Ctrl` `Shift` `L/C/R` | Align left, center, or right -`Ctrl` `Shift` `X` | Choose 100% horizontal scale -`Ctrl` `Shift` `Alt` `X` | Choose 100% vertical scale -`Ctrl` `Shift` `Alt` `A` | Choose auto leading -`Ctrl` `Shift` `Q` | Choose 0 for tracking -`Ctrl` `Shift` `J` | Justify paragraph, left aligns last line -`Ctrl` `Shift` `F` | Justify paragraph, justifies all -`Ctrl` `Shift` `Alt` `H` | Toggle paragraph hyphenation on/off -`Ctrl` `Shift` `Alt` `T` | Toggle single/every-line composer on/off -`Ctrl` `Shift` `` | Decrease or increase type size of selected text 2 points or pixels -`Alt` `Up/Down` | Decrease or increase leading 2 points or pixels -`Shift` `Alt` `Up/Down` | Decrease or increase baseline shift 2 points or pixels -`Alt` `Left/Right` | Decrease or increase kerning/tracking 20/1000 ems -{.shortcuts} +| Shortcut | Action | +| ------------------------ | ------------------------------------------------------------------ | +| `Ctrl` `Shift` `L/C/R` | Align left, center, or right | +| `Ctrl` `Shift` `X` | Choose 100% horizontal scale | +| `Ctrl` `Shift` `Alt` `X` | Choose 100% vertical scale | +| `Ctrl` `Shift` `Alt` `A` | Choose auto leading | +| `Ctrl` `Shift` `Q` | Choose 0 for tracking | +| `Ctrl` `Shift` `J` | Justify paragraph, left aligns last line | +| `Ctrl` `Shift` `F` | Justify paragraph, justifies all | +| `Ctrl` `Shift` `Alt` `H` | Toggle paragraph hyphenation on/off | +| `Ctrl` `Shift` `Alt` `T` | Toggle single/every-line composer on/off | +| `Ctrl` `Shift` `` | Decrease or increase type size of selected text 2 points or pixels | +| `Alt` `Up/Down` | Decrease or increase leading 2 points or pixels | +| `Shift` `Alt` `Up/Down` | Decrease or increase baseline shift 2 points or pixels | +| `Alt` `Left/Right` | Decrease or increase kerning/tracking 20/1000 ems | +{.shortcuts} ### Use panels -Shortcut | Action ----|--- -`Shift` `Enter` | Apply value and keep text box active -`Tab` | Show/Hide all panels -`Shift` `Tab` | Show/Hide all panels except the toolbox and options bar -`Enter` | Highlight options bar (select tool first) -`Shift` `Up/Down` | Increase/decrease selected values by 10 -{.shortcuts} +| Shortcut | Action | +| ----------------- | ------------------------------------------------------- | +| `Shift` `Enter` | Apply value and keep text box active | +| `Tab` | Show/Hide all panels | +| `Shift` `Tab` | Show/Hide all panels except the toolbox and options bar | +| `Enter` | Highlight options bar (select tool first) | +| `Shift` `Up/Down` | Increase/decrease selected values by 10 | +{.shortcuts} ### Use adjustment layers -Shortcut | Action ----|--- -`Alt` `3` | Choose red channel for adjustment -`Alt` `4` | Choose green channel for adjustment -`Alt` `5` | Choose blue channel for adjustment -`Alt` `2` | Choose composite channel for adjustment -`Backspace` | Delete adjustment layer -{.shortcuts} +| Shortcut | Action | +| ----------- | --------------------------------------- | +| `Alt` `3` | Choose red channel for adjustment | +| `Alt` `4` | Choose green channel for adjustment | +| `Alt` `5` | Choose blue channel for adjustment | +| `Alt` `2` | Choose composite channel for adjustment | +| `Backspace` | Delete adjustment layer | +{.shortcuts} ### Use the Brush panel -Shortcut | Action ----|--- -`,/.` | Select previous/next brush size -`Shift` `,/.` | Select first/last brush -`Caps Lock` | Display precise cross hair for brushes -`Shift` `Alt` `P` | Toggle airbrush option -{.shortcuts} +| Shortcut | Action | +| ----------------- | -------------------------------------- | +| `,/.` | Select previous/next brush size | +| `Shift` `,/.` | Select first/last brush | +| `Caps Lock` | Display precise cross hair for brushes | +| `Shift` `Alt` `P` | Toggle airbrush option | +{.shortcuts} ### Use the Clone Source panel -Shortcut | Action ----|--- -`Alt` `Shift` | Show Clone Source (overlays iamge) -`Alt` `Shift` `(arrows)` | Nudge Clone Source -`Alt` `Shift` `` | Rotate Clone Source -`Alt` `Shift` `[/]` | Scale (increase or reduce size) Clone Source -{.shortcuts} +| Shortcut | Action | +| ------------------------ | -------------------------------------------- | +| `Alt` `Shift` | Show Clone Source (overlays iamge) | +| `Alt` `Shift` `(arrows)` | Nudge Clone Source | +| `Alt` `Shift` `` | Rotate Clone Source | +| `Alt` `Shift` `[/]` | Scale (increase or reduce size) Clone Source | +{.shortcuts} ### Use the Layers panel -Shortcut | Action ----|--- -`Ctrl` `Shift` `N` | New layer -`Ctrl` `J` | New layer via copy -`Ctrl` `Shift` `J` | New layer via cut -`Ctrl` `G` | Group layers -`Ctrl` `Shift` `G` | Ungroup layers -`Ctrl` `Alt` `G` | Create/release clipping mask -`Ctrl` `Alt` `A` | Select all layers -`Ctrl` `Shift` `E` | Merge visible layers -`Alt` `.` | Select top layer -`Alt` `.` | Select bottom layer -`Shift` `Alt` `[/]` | Add to layer selection in Layers panel -`Alt` `[/]` | Select next layer down/up -`Ctrl` `[/]` | Move target layer down/up -`Ctrl` `Shift` `Alt` `E` | Merge a copy of all visible layers into target layer -`Ctrl` `E` | Merge layers (while layers are highlighted) -`Ctrl` `Shift` `[/]` | Move layer to bottom or top -`/` | Toggle lock transparency for target layer, or last applied lock -`\` | Toggle rubylith mode for layer mask on/off +| Shortcut | Action | +| ------------------------ | --------------------------------------------------------------- | +| `Ctrl` `Shift` `N` | New layer | +| `Ctrl` `J` | New layer via copy | +| `Ctrl` `Shift` `J` | New layer via cut | +| `Ctrl` `G` | Group layers | +| `Ctrl` `Shift` `G` | Ungroup layers | +| `Ctrl` `Alt` `G` | Create/release clipping mask | +| `Ctrl` `Alt` `A` | Select all layers | +| `Ctrl` `Shift` `E` | Merge visible layers | +| `Alt` `.` | Select top layer | +| `Alt` `.` | Select bottom layer | +| `Shift` `Alt` `[/]` | Add to layer selection in Layers panel | +| `Alt` `[/]` | Select next layer down/up | +| `Ctrl` `[/]` | Move target layer down/up | +| `Ctrl` `Shift` `Alt` `E` | Merge a copy of all visible layers into target layer | +| `Ctrl` `E` | Merge layers (while layers are highlighted) | +| `Ctrl` `Shift` `[/]` | Move layer to bottom or top | +| `/` | Toggle lock transparency for target layer, or last applied lock | +| `\` | Toggle rubylith mode for layer mask on/off | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Adobe Photoshop](https://helpx.adobe.com/photoshop/using/default-keyboard-shortcuts.html) _(helpx.adobe.com)_ +- [Keyboard shortcuts for Adobe Photoshop](https://helpx.adobe.com/photoshop/using/default-keyboard-shortcuts.html) + _(helpx.adobe.com)_ diff --git a/source/_posts/adobe-xd.md b/source/_posts/adobe-xd.md index 60080f9..b8f39aa 100644 --- a/source/_posts/adobe-xd.md +++ b/source/_posts/adobe-xd.md @@ -2,220 +2,213 @@ title: Adobe XD date: 2022-11-23 16:23:31.703379 background: bg-[#400835] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 97 keyboard shortcuts found in Adobe XD + A visual cheat-sheet for the 97 keyboard shortcuts found in Adobe XD --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Keys for Edit menu -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo -`Ctrl` `X` | Cut -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `Alt` `V` | Paste Appearance (Design mode) or Paste Interaction (Prototype mode) -`Ctrl` `D` | Duplicate -`Del` | Delete -`Ctrl` `A` | Select All -`Ctrl` `Shift` `A` | Deselect All -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------------------------------------------------------------- | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo | +| `Ctrl` `X` | Cut | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `Alt` `V` | Paste Appearance (Design mode) or Paste Interaction (Prototype mode) | +| `Ctrl` `D` | Duplicate | +| `Del` | Delete | +| `Ctrl` `A` | Select All | +| `Ctrl` `Shift` `A` | Deselect All | +{.shortcuts} ### Keys for File menu -Shortcut | Action ----|--- -`Ctrl` `N` | New -`Ctrl` `Shift` `O` | Open... -`Alt` `F4` | Close -`Ctrl` `S` | Save... -`Ctrl` `Shift` `S` | Save As... -`Ctrl` `Shift` `E` | Export Batch -`Ctrl` `E` | Export Selected -`Ctrl` `Shift` `I` | Import -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------- | +| `Ctrl` `N` | New | +| `Ctrl` `Shift` `O` | Open... | +| `Alt` `F4` | Close | +| `Ctrl` `S` | Save... | +| `Ctrl` `Shift` `S` | Save As... | +| `Ctrl` `Shift` `E` | Export Batch | +| `Ctrl` `E` | Export Selected | +| `Ctrl` `Shift` `I` | Import | +{.shortcuts} ### Keys for Pen/Path -Shortcut | Action ----|--- -`P` | Switch to Pen tool -`Alt` | Asymmetric control point -`Shift` | Snap control point angle -`Shift` | Snap anchor point angle -`Ctrl` `Alt` `U` | Add -`Ctrl` `Alt` `S` | Subtract -`Ctrl` `Alt` `I` | Intersect -`Ctrl` `Alt` `X` | Exclude overlap -`Ctrl` `8` | Convert to path -{.shortcuts} +| Shortcut | Action | +| ---------------- | ------------------------ | +| `P` | Switch to Pen tool | +| `Alt` | Asymmetric control point | +| `Shift` | Snap control point angle | +| `Shift` | Snap anchor point angle | +| `Ctrl` `Alt` `U` | Add | +| `Ctrl` `Alt` `S` | Subtract | +| `Ctrl` `Alt` `I` | Intersect | +| `Ctrl` `Alt` `X` | Exclude overlap | +| `Ctrl` `8` | Convert to path | +{.shortcuts} ### Keys for Layers (Objects), Groups, and Artboards {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `G` | Group layers -`Ctrl` `Shift` `G` | Ungroup layers -`Ctrl` `K` | Make component -`Ctrl` `L` | Lock/Unlock layer -`Ctrl` `,` | Hide/Show layer -`Ctrl` `Shift` `M` | Mask with shape -`Ctrl` `R` | Make repeat grid -`1-9` | Change layer opacity -`Ctrl` `;` | Show/Hide artboard guides -`Ctrl` `Shift` `;` | Lock artboard guides -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------- | +| `Ctrl` `G` | Group layers | +| `Ctrl` `Shift` `G` | Ungroup layers | +| `Ctrl` `K` | Make component | +| `Ctrl` `L` | Lock/Unlock layer | +| `Ctrl` `,` | Hide/Show layer | +| `Ctrl` `Shift` `M` | Mask with shape | +| `Ctrl` `R` | Make repeat grid | +| `1-9` | Change layer opacity | +| `Ctrl` `;` | Show/Hide artboard guides | +| `Ctrl` `Shift` `;` | Lock artboard guides | +{.shortcuts} ### Keys for Align -Shortcut | Action ----|--- -`Ctrl` `Shift` `Left` | Left -`Shift` `C` | Center (horizontally) -`Ctrl` `Shift` `Right` | Right -`Ctrl` `Shift` `Up` | Top -`Shift` `M` | Middle (vertically) -`Ctrl` `Shift` `Down` | Bottom -{.shortcuts} +| Shortcut | Action | +| ---------------------- | --------------------- | +| `Ctrl` `Shift` `Left` | Left | +| `Shift` `C` | Center (horizontally) | +| `Ctrl` `Shift` `Right` | Right | +| `Ctrl` `Shift` `Up` | Top | +| `Shift` `M` | Middle (vertically) | +| `Ctrl` `Shift` `Down` | Bottom | +{.shortcuts} ### Keys for Arrange -Shortcut | Action ----|--- -`Ctrl` `Shift` `]` | Bring to front -`Ctrl` `]` | Bring forward -`Ctrl` `[` | Send backward -`Ctrl` `Shift` `[` | Send to back -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------- | +| `Ctrl` `Shift` `]` | Bring to front | +| `Ctrl` `]` | Bring forward | +| `Ctrl` `[` | Send backward | +| `Ctrl` `Shift` `[` | Send to back | +{.shortcuts} ### Keys for Distribute -Shortcut | Action ----|--- -`Ctrl` `Shift` `H` | Horizontal -`Ctrl` `Shift` `V` | Vertical -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------- | +| `Ctrl` `Shift` `H` | Horizontal | +| `Ctrl` `Shift` `V` | Vertical | +{.shortcuts} ### Keys for Text -Shortcut | Action ----|--- -`Ctrl` `B` | Bold -`Ctrl` `I` | Italic -`Ctrl` `Shift` `.` | Increase font size -`Ctrl` `Shift` `,` | Decrease font size -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------ | +| `Ctrl` `B` | Bold | +| `Ctrl` `I` | Italic | +| `Ctrl` `Shift` `.` | Increase font size | +| `Ctrl` `Shift` `,` | Decrease font size | +{.shortcuts} ### Keys for Operations menu -Shortcut | Action ----|--- -`Alt` | From center -`Shift` | Constrain -`Enter` | Edit text -`Shift` | Constrain rotate (15 deg) -`Shift` | Line constrain rotate (45 deg) -`Shift` `Alt` | Constrain from center -`Ctrl` | Direct select -`Ctrl` `Tab` | Switch between Design and Prototype mode -{.shortcuts} +| Shortcut | Action | +| ------------- | ---------------------------------------- | +| `Alt` | From center | +| `Shift` | Constrain | +| `Enter` | Edit text | +| `Shift` | Constrain rotate (15 deg) | +| `Shift` | Line constrain rotate (45 deg) | +| `Shift` `Alt` | Constrain from center | +| `Ctrl` | Direct select | +| `Ctrl` `Tab` | Switch between Design and Prototype mode | +{.shortcuts} ### Keys for Tools menu -Shortcut | Action ----|--- -`V` | Select -`R` | Rectangle -`E` | Ellipse -`Y` | Polygon -`L` | Line -`P` | Pen -`T` | Text -`A` | Artboard -`Z` | Zoom -`Ctrl` `3` | Zoom to selection -`I` | Eyedropper -{.shortcuts} +| Shortcut | Action | +| ---------- | ----------------- | +| `V` | Select | +| `R` | Rectangle | +| `E` | Ellipse | +| `Y` | Polygon | +| `L` | Line | +| `P` | Pen | +| `T` | Text | +| `A` | Artboard | +| `Z` | Zoom | +| `Ctrl` `3` | Zoom to selection | +| `I` | Eyedropper | +{.shortcuts} ### Keys for Interface and Viewing Options -Shortcut | Action ----|--- -`Ctrl` `+` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Zoom to fit -`Ctrl` `1` | Zoom to 100% -`Ctrl` `2` | Zoom to 200% -`Space` | Pan -`Ctrl` `Shift` `Y` | Assets -`Ctrl` `Y` | Layers -`Ctrl` `Shift` `'` | Show layout grid -`Ctrl` `'` | Show square grid -`Ctrl` `Tab` | Switch between Design and Prototype mode -`Up/Down` | Increase or decrease a value in a field by 1 -`Shift` `Up/Down` | Increase or decrease a value in a field by 10 -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------------------------------------- | +| `Ctrl` `+` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Zoom to fit | +| `Ctrl` `1` | Zoom to 100% | +| `Ctrl` `2` | Zoom to 200% | +| `Space` | Pan | +| `Ctrl` `Shift` `Y` | Assets | +| `Ctrl` `Y` | Layers | +| `Ctrl` `Shift` `'` | Show layout grid | +| `Ctrl` `'` | Show square grid | +| `Ctrl` `Tab` | Switch between Design and Prototype mode | +| `Up/Down` | Increase or decrease a value in a field by 1 | +| `Shift` `Up/Down` | Increase or decrease a value in a field by 10 | +{.shortcuts} ### Keys for Design Specs -Shortcut | Action ----|--- -`Ctrl` `+/-` | Zoom -`Ctrl` `0` | Reset zoom -`(arrows)` | Pan -`Shift` `(arrows)` | Faster pan -`Esc` | Go from Spec view to UX flow view -`Esc` | Remove focus from artboard in UX flow view -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------------------ | +| `Ctrl` `+/-` | Zoom | +| `Ctrl` `0` | Reset zoom | +| `(arrows)` | Pan | +| `Shift` `(arrows)` | Faster pan | +| `Esc` | Go from Spec view to UX flow view | +| `Esc` | Remove focus from artboard in UX flow view | +{.shortcuts} ### Keys for Vector Editing -Shortcut | Action ----|--- -`Enter` | Start editing selected vector object -`Esc` | Stop editing selected vector object -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------------------ | +| `Enter` | Start editing selected vector object | +| `Esc` | Stop editing selected vector object | +{.shortcuts} ### Keys for Prototyping -Shortcut | Action ----|--- -`Ctrl` `A` | See all connections in prototype mode -`Ctrl` `Enter` | Preview -`Ctrl` `Shift` `E` | Share prototype online -`Left/Right` | Navigate artboards in preview or shared prototype +| Shortcut | Action | +| ------------------ | ------------------------------------------------- | +| `Ctrl` `A` | See all connections in prototype mode | +| `Ctrl` `Enter` | Preview | +| `Ctrl` `Shift` `E` | Share prototype online | +| `Left/Right` | Navigate artboards in preview or shared prototype | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Adobe XD](https://helpx.adobe.com/xd/help/keyboard-shortcuts.html) _(helpx.adobe.com)_ diff --git a/source/_posts/affinity-designer.md b/source/_posts/affinity-designer.md index c5db1d8..483ca7e 100644 --- a/source/_posts/affinity-designer.md +++ b/source/_posts/affinity-designer.md @@ -2,167 +2,155 @@ title: Affinity Designer date: 2022-11-23 16:23:31.702748 background: bg-[#79cdf1] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 108 keyboard shortcuts found in Affinity Designer + A visual cheat-sheet for the 108 keyboard shortcuts found in Affinity Designer --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Designer Persona {.row-span-2} -Shortcut | Action ----|--- -`Esc` | Cancel operation -`F1` | Help -`0-9` | Change opacity -`Tab` | Toggle UI -`T` | Cycle text tools -`Y` | Transparency tool -`I` | Color picker tool -`P` | Pen tool -`[` | Decrease brush size -`]` | Increase brush size -`A` | Node tool -`F` | Point transform tool -`G` | Fill tool -`H` | View tool -`;` | Toggle snapping -`\` | Clip to canvas -`Z` | Zoom tool -`X` | Toggle active selector -`C` | Corner tool -`V` | Move tool -`B` | Vector brush tool -`N` | Pencil tool -`M` | Cycle shape tool -`,` | Cycle split view -`.` | Reset selection box -`/` | Set fill or stroke to none -`Ctrl` `1` | Zoom to 100% -`Ctrl` `2` | Zoom to 200% -`Ctrl` `3` | Zoom to 400% -`Ctrl` `4` | Zoom to 800% -`Ctrl` `8` | Zoom to actual size -`Ctrl` `9` | Zoom to pixel size -`Ctrl` `0` | Zoom to fit -`Ctrl` `-` | Zoom out -`Ctrl` `=` | Zoom in -`Ctrl` `Tab` | Switch view -`Ctrl` `W` | Close -`Ctrl` `R` | Rulers -`Ctrl` `T` | Character -`Ctrl` `Y` | Redo -`Ctrl` `O` | Open -`Ctrl` `P` | Print -`Ctrl` `[` | Back one -`Ctrl` `]` | Forward one -`Ctrl` `Enter` | Convert to curves -`Ctrl` `A` | Select all -`Ctrl` `S` | Save -`Ctrl` `G` | Group -`Ctrl` `J` | Duplicate -`Ctrl` `L` | Lock -`Ctrl` `;` | Show guides -`Ctrl` `'` | Show grid -`Ctrl` `Z` | Undo -`Ctrl` `X` | Cut -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `N` | New -`Ctrl` `M` | Curves -`Ctrl` `,` | Preferences -`Space` | Hold for view tool +| Shortcut | Action | +| -------------- | -------------------------- | +| `Esc` | Cancel operation | +| `F1` | Help | +| `0-9` | Change opacity | +| `Tab` | Toggle UI | +| `T` | Cycle text tools | +| `Y` | Transparency tool | +| `I` | Color picker tool | +| `P` | Pen tool | +| `[` | Decrease brush size | +| `]` | Increase brush size | +| `A` | Node tool | +| `F` | Point transform tool | +| `G` | Fill tool | +| `H` | View tool | +| `;` | Toggle snapping | +| `\` | Clip to canvas | +| `Z` | Zoom tool | +| `X` | Toggle active selector | +| `C` | Corner tool | +| `V` | Move tool | +| `B` | Vector brush tool | +| `N` | Pencil tool | +| `M` | Cycle shape tool | +| `,` | Cycle split view | +| `.` | Reset selection box | +| `/` | Set fill or stroke to none | +| `Ctrl` `1` | Zoom to 100% | +| `Ctrl` `2` | Zoom to 200% | +| `Ctrl` `3` | Zoom to 400% | +| `Ctrl` `4` | Zoom to 800% | +| `Ctrl` `8` | Zoom to actual size | +| `Ctrl` `9` | Zoom to pixel size | +| `Ctrl` `0` | Zoom to fit | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `=` | Zoom in | +| `Ctrl` `Tab` | Switch view | +| `Ctrl` `W` | Close | +| `Ctrl` `R` | Rulers | +| `Ctrl` `T` | Character | +| `Ctrl` `Y` | Redo | +| `Ctrl` `O` | Open | +| `Ctrl` `P` | Print | +| `Ctrl` `[` | Back one | +| `Ctrl` `]` | Forward one | +| `Ctrl` `Enter` | Convert to curves | +| `Ctrl` `A` | Select all | +| `Ctrl` `S` | Save | +| `Ctrl` `G` | Group | +| `Ctrl` `J` | Duplicate | +| `Ctrl` `L` | Lock | +| `Ctrl` `;` | Show guides | +| `Ctrl` `'` | Show grid | +| `Ctrl` `Z` | Undo | +| `Ctrl` `X` | Cut | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `N` | New | +| `Ctrl` `M` | Curves | +| `Ctrl` `,` | Preferences | +| `Space` | Hold for view tool | + {.shortcuts} - - ### Pixel Persona -Shortcut | Action ----|--- -`W` | Selection brush -`E` | Erase brush -`I` | Color picker tool -`O` | Cycle dodge or burn brushes -`[` | Decrease brush size -`]` | Increase brush size -`G` | Flood fill tool -`L` | Freehand selection tool -`X` | Toggle active selector -`V` | Move tool -`B` | Cycle brush or pixel tools -`M` | Cycle marquees -`,` | Cycle split view -`.` | Reset selection box +| Shortcut | Action | +| -------- | --------------------------- | +| `W` | Selection brush | +| `E` | Erase brush | +| `I` | Color picker tool | +| `O` | Cycle dodge or burn brushes | +| `[` | Decrease brush size | +| `]` | Increase brush size | +| `G` | Flood fill tool | +| `L` | Freehand selection tool | +| `X` | Toggle active selector | +| `V` | Move tool | +| `B` | Cycle brush or pixel tools | +| `M` | Cycle marquees | +| `,` | Cycle split view | +| `.` | Reset selection box | + {.shortcuts} +### Modifiers and Layer Control {.row-span-2} +| Shortcut | Action | +| -------- | ---------------------------------------------------------------------- | +| `Alt` | Drawing and painting - temporarily switches to the color picker tool | +| `Shift` | Freehand selection tools - connects clicked points with straight lines | +| `Shift` | Reverses aspect ratio constraint on scaling | +| `Ctrl` | Scales from the center of selection | +| `Alt` | Ignores snapping during an operation | +| `Ctrl` | Geometric shapes - moves red handles symmetrically | +| `Shift` | Path text - maintains distance between red handles | +| `Ctrl` | Path text - moves red handles symmetrically | +| `Shift` | Pixel brush painting - draws straight line connecting two strokes | +| `Shift` | Pixel selections - constrains marquee to square or circle | +| `Ctrl` | Pixel selection - moves underlying layer rather than selection | +| `Alt` | Pixel selection - removes from selection | +| `Ctrl` | Pixel tool - erases from current layer or projects | +| `Shift` | Rotating - constrains rotations to 15 degree intervals | +| `Shift` | Selecting - scales multiple objects and layers | +| `Alt` | Selecting - selects object or layer behind current selection | +| `Ctrl` | Shearing - mirrors shear around center of object | +| `Shift` | Vector drawing tools - constrains handle angles to 15 degrees | +| `Alt` | Vector drawing tools - sets node to sharp for creating cusps | +| `Ctrl` | Vector drawing tools - temporarily switches to node editing from pen | - -### Modifiers and Layer Control {.row-span-2} - -Shortcut | Action ----|--- -`Alt` | Drawing and painting - temporarily switches to the color picker tool -`Shift` | Freehand selection tools - connects clicked points with straight lines -`Shift` | Reverses aspect ratio constraint on scaling -`Ctrl` | Scales from the center of selection -`Alt` | Ignores snapping during an operation -`Ctrl` | Geometric shapes - moves red handles symmetrically -`Shift` | Path text - maintains distance between red handles -`Ctrl` | Path text - moves red handles symmetrically -`Shift` | Pixel brush painting - draws straight line connecting two strokes -`Shift` | Pixel selections - constrains marquee to square or circle -`Ctrl` | Pixel selection - moves underlying layer rather than selection -`Alt` | Pixel selection - removes from selection -`Ctrl` | Pixel tool - erases from current layer or projects -`Shift` | Rotating - constrains rotations to 15 degree intervals -`Shift` | Selecting - scales multiple objects and layers -`Alt` | Selecting - selects object or layer behind current selection -`Ctrl` | Shearing - mirrors shear around center of object -`Shift` | Vector drawing tools - constrains handle angles to 15 degrees -`Alt` | Vector drawing tools - sets node to sharp for creating cusps -`Ctrl` | Vector drawing tools - temporarily switches to node editing from pen {.shortcuts} - - ### Advanced Text -Shortcut | Action ----|--- -`Ctrl` `T` | Character panel -`Ctrl` `Shift` `T` | Typography dialog -`Ctrl` `B` | Bold -`Ctrl` `I` | Italic -`Ctrl` `U` | Underline -`Ctrl` `Alt` `L` | Align left -`Ctrl` `Alt` `C` | Align center -`Ctrl` `Alt` `R` | Align right -`Alt` `Shift` `Left` | Tighten spacing more -`Alt` `Shift` `Right` | Loosen spacing more -`Ctrl` `Alt` `Shift` `Up` | Precise raise baseline -`Ctrl` `Alt` `Shift` `Down` | Precise lower baseline -`Ctrl` `Alt` `Down` | Precise increase leading -`Ctrl` `Alt` `Up` | Precise decrease leading +| Shortcut | Action | +| --------------------------- | ------------------------ | +| `Ctrl` `T` | Character panel | +| `Ctrl` `Shift` `T` | Typography dialog | +| `Ctrl` `B` | Bold | +| `Ctrl` `I` | Italic | +| `Ctrl` `U` | Underline | +| `Ctrl` `Alt` `L` | Align left | +| `Ctrl` `Alt` `C` | Align center | +| `Ctrl` `Alt` `R` | Align right | +| `Alt` `Shift` `Left` | Tighten spacing more | +| `Alt` `Shift` `Right` | Loosen spacing more | +| `Ctrl` `Alt` `Shift` `Up` | Precise raise baseline | +| `Ctrl` `Alt` `Shift` `Down` | Precise lower baseline | +| `Ctrl` `Alt` `Down` | Precise increase leading | +| `Ctrl` `Alt` `Up` | Precise decrease leading | + {.shortcuts} +## Also see - - - - -Also see --------- -- [Keyboard shortcuts for Affinity Designer](https://affinityspotlight.com/article/downloadable-affinity-keyboard-shortcut-cheat-sheets/) _(affinityspotlight.com)_ +- [Keyboard shortcuts for Affinity Designer](https://affinityspotlight.com/article/downloadable-affinity-keyboard-shortcut-cheat-sheets/) + _(affinityspotlight.com)_ diff --git a/source/_posts/affinity-photo.md b/source/_posts/affinity-photo.md index 64e4a24..6aba2dc 100644 --- a/source/_posts/affinity-photo.md +++ b/source/_posts/affinity-photo.md @@ -2,350 +2,329 @@ title: Affinity Photo date: 2022-11-23 16:23:31.694998 background: bg-[#d578f0] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 177 keyboard shortcuts found in Affinity Photo + A visual cheat-sheet for the 177 keyboard shortcuts found in Affinity Photo --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Editing {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `Alt` `I` | Resize document -`Ctrl` `Alt` `C` | Resize canvas -`.` | Reset selection box -`;` | Toggle snapping -`Ctrl` | Erase with pixel tool on current layer -`X` | Switch between Stroke/Fill color selectors -`Shift` `X` | Swap Stroke/Fill colour selectors -`/` | Set no fill on Stroke/Fill color selectors -`O` | Toggle between crop tool overlays -`Shift` `O` | Flip golden spiral overlay (crop tool enabled) -`Esc` | Cancel a sizing, moving, or creating operation -`(arrows)` | Move item -`Shift` `(arrows)` | Move item in 10x measurement units +| Shortcut | Action | +| ------------------ | ---------------------------------------------- | +| `Ctrl` `Alt` `I` | Resize document | +| `Ctrl` `Alt` `C` | Resize canvas | +| `.` | Reset selection box | +| `;` | Toggle snapping | +| `Ctrl` | Erase with pixel tool on current layer | +| `X` | Switch between Stroke/Fill color selectors | +| `Shift` `X` | Swap Stroke/Fill colour selectors | +| `/` | Set no fill on Stroke/Fill color selectors | +| `O` | Toggle between crop tool overlays | +| `Shift` `O` | Flip golden spiral overlay (crop tool enabled) | +| `Esc` | Cancel a sizing, moving, or creating operation | +| `(arrows)` | Move item | +| `Shift` `(arrows)` | Move item in 10x measurement units | + {.shortcuts} - - ### Tools (Tone Mapping Persona) -Shortcut | Action ----|--- -`H` | View tool -`Z` | Zoom tool -`B` | Overlay paint tool -`E` | Overlay erase tool -`G` | Overlay gradient tool +| Shortcut | Action | +| -------- | --------------------- | +| `H` | View tool | +| `Z` | Zoom tool | +| `B` | Overlay paint tool | +| `E` | Overlay erase tool | +| `G` | Overlay gradient tool | + {.shortcuts} - - - ### Files -Shortcut | Action ----|--- -`Ctrl` `N` | New document -`Ctrl` `Shift` `Alt` `N` | New from clipboard -`Ctrl` `O` | Open document -`Ctrl` `W` | Close document, or close app when no documents are open -`Ctrl` `Tab` | Switch document/view -`Ctrl` `S` | Save -`Ctrl` `Shift` `S` | Save as -`Ctrl` `Shift` `Alt` `S` | Export -`Ctrl` `P` | Print +| Shortcut | Action | +| ------------------------ | ------------------------------------------------------- | +| `Ctrl` `N` | New document | +| `Ctrl` `Shift` `Alt` `N` | New from clipboard | +| `Ctrl` `O` | Open document | +| `Ctrl` `W` | Close document, or close app when no documents are open | +| `Ctrl` `Tab` | Switch document/view | +| `Ctrl` `S` | Save | +| `Ctrl` `Shift` `S` | Save as | +| `Ctrl` `Shift` `Alt` `S` | Export | +| `Ctrl` `P` | Print | + {.shortcuts} - - - ### Vector Graphics -Shortcut | Action ----|--- -`Ctrl` | Edit curves as you draw using node editing (from pen) -`Ctrl` `Enter` | Convert to curves +| Shortcut | Action | +| -------------- | ----------------------------------------------------- | +| `Ctrl` | Edit curves as you draw using node editing (from pen) | +| `Ctrl` `Enter` | Convert to curves | + {.shortcuts} - - ### Tools (Export Persona) -Shortcut | Action ----|--- -`S` | Slice tool -`L` | Layer select tool +| Shortcut | Action | +| -------- | ----------------- | +| `S` | Slice tool | +| `L` | Layer select tool | + {.shortcuts} - - ### Tools (Develop Persona) -Shortcut | Action ----|--- -`S` | Sampler tool -`W` | White balance tool -`R` | Red eye removal tool -`L` | Blemish removal tool -`B` | Overlay paint tool -`E` | Overlay erase tool -`G` | Overlay gradient tool -`C` | Crop tool -`Z` | Zoom tool -`H` | View tool +| Shortcut | Action | +| -------- | --------------------- | +| `S` | Sampler tool | +| `W` | White balance tool | +| `R` | Red eye removal tool | +| `L` | Blemish removal tool | +| `B` | Overlay paint tool | +| `E` | Overlay erase tool | +| `G` | Overlay gradient tool | +| `C` | Crop tool | +| `Z` | Zoom tool | +| `H` | View tool | + {.shortcuts} - - ### Tools -Shortcut | Action ----|--- -`G` | Flood fill tool/gradient cycle -`H` | View tool -`V` | Move tool -`C` | Crop tool -`W` | Selection tools cycle -`P` | Pen and node tool cycle -`Z` | Zoom tool -`S` | Clone tool -`U` | Shape tools cycle -`T` | Text tools cycle -`O` | Dodge, burn, and sponge brush tool cycle -`J` | Retouch tools cycle -`B` | Painting tools cycle -`E` | Erase tools cycle -`M` | Marquee selection tools cycle -`L` | Free hand selection tool +| Shortcut | Action | +| -------- | ---------------------------------------- | +| `G` | Flood fill tool/gradient cycle | +| `H` | View tool | +| `V` | Move tool | +| `C` | Crop tool | +| `W` | Selection tools cycle | +| `P` | Pen and node tool cycle | +| `Z` | Zoom tool | +| `S` | Clone tool | +| `U` | Shape tools cycle | +| `T` | Text tools cycle | +| `O` | Dodge, burn, and sponge brush tool cycle | +| `J` | Retouch tools cycle | +| `B` | Painting tools cycle | +| `E` | Erase tools cycle | +| `M` | Marquee selection tools cycle | +| `L` | Free hand selection tool | + {.shortcuts} - - ### Tools (Liquify Persona) -Shortcut | Action ----|--- -`P` | Liquify push forward tool -`L` | Liquify push left tool -`T` | Liquify twirl tool -`U` | Liquify pinch tool -`B` | Liquify turbulence tool -`C` | Liquify mesh clone tool -`R` | Liquify reconstruct tool -`F` | Liquify freeze tool -`W` | Liquify thaw tool -`Z` | Liquify zoom tool -`H` | Liquify view tool +| Shortcut | Action | +| -------- | ------------------------- | +| `P` | Liquify push forward tool | +| `L` | Liquify push left tool | +| `T` | Liquify twirl tool | +| `U` | Liquify pinch tool | +| `B` | Liquify turbulence tool | +| `C` | Liquify mesh clone tool | +| `R` | Liquify reconstruct tool | +| `F` | Liquify freeze tool | +| `W` | Liquify thaw tool | +| `Z` | Liquify zoom tool | +| `H` | Liquify view tool | + {.shortcuts} - - - ### Text {.row-span-3} -Shortcut | Action ----|--- -`Ctrl` `>` | Bigger text -`Ctrl` `<` | Smaller text -`Ctrl` `Alt` `>` | Precise bigger text -`Ctrl` `Alt` `<` | Precise smaller text -`Alt` `Left` | Tighten -`Alt` `Right` | Loosen -`Alt` `Shift` `Left` | Tighten more -`Alt` `Shift` `Right` | Loosen more -`Ctrl` `B` | Bold -`Ctrl` `I` | Italic -`Ctrl` `U` | Underline -`Ctrl` `T` | Show character -`Ctrl` `Shift` `T` | Show typography -`Ctrl` `Alt` `+` | Superscript -`Ctrl` `Alt` `-` | Subscript -`Ctrl` `Alt` `L` | Align left -`Ctrl` `Alt` `R` | Align right -`Ctrl` `Alt` `C` | Align center -`Ctrl` `Alt` `Shift` `\` | Justify left -`Alt` `Down` | Increase paragraph leading -`Alt` `Up` | Decrease paragraph leading -`Ctrl` `Shift` `Up` | Precise paragraph increase leading -`Ctrl` `Shift` `Down` | Precise paragraph decrease leading -`Alt` `Shift` `Up` | Raise baseline -`Alt` `Shift` `Down` | Lower baseline -`Ctrl` `Alt` `Shift` `Up` | Precise raise baseline -`Ctrl` `Alt` `Shift` `Down` | Precise lower baseline -`Ctrl` `Alt` `Space` | Special characters -`Ctrl` `Enter` | Line break -`Alt` `Space` | Non-breaking space -`Alt` `-` | En dash -`Alt` `Shift` `-` | Em dash -`Ctrl` `Shift` `;` | Spelling options +| Shortcut | Action | +| --------------------------- | ---------------------------------- | +| `Ctrl` `>` | Bigger text | +| `Ctrl` `<` | Smaller text | +| `Ctrl` `Alt` `>` | Precise bigger text | +| `Ctrl` `Alt` `<` | Precise smaller text | +| `Alt` `Left` | Tighten | +| `Alt` `Right` | Loosen | +| `Alt` `Shift` `Left` | Tighten more | +| `Alt` `Shift` `Right` | Loosen more | +| `Ctrl` `B` | Bold | +| `Ctrl` `I` | Italic | +| `Ctrl` `U` | Underline | +| `Ctrl` `T` | Show character | +| `Ctrl` `Shift` `T` | Show typography | +| `Ctrl` `Alt` `+` | Superscript | +| `Ctrl` `Alt` `-` | Subscript | +| `Ctrl` `Alt` `L` | Align left | +| `Ctrl` `Alt` `R` | Align right | +| `Ctrl` `Alt` `C` | Align center | +| `Ctrl` `Alt` `Shift` `\` | Justify left | +| `Alt` `Down` | Increase paragraph leading | +| `Alt` `Up` | Decrease paragraph leading | +| `Ctrl` `Shift` `Up` | Precise paragraph increase leading | +| `Ctrl` `Shift` `Down` | Precise paragraph decrease leading | +| `Alt` `Shift` `Up` | Raise baseline | +| `Alt` `Shift` `Down` | Lower baseline | +| `Ctrl` `Alt` `Shift` `Up` | Precise raise baseline | +| `Ctrl` `Alt` `Shift` `Down` | Precise lower baseline | +| `Ctrl` `Alt` `Space` | Special characters | +| `Ctrl` `Enter` | Line break | +| `Alt` `Space` | Non-breaking space | +| `Alt` `-` | En dash | +| `Alt` `Shift` `-` | Em dash | +| `Ctrl` `Shift` `;` | Spelling options | + {.shortcuts} - - ### Tools (Panorama Persona) -Shortcut | Action ----|--- -`A` | Transform source image tool -`L` | Add to source image mask tool -`U` | Erase from source image mask tool +| Shortcut | Action | +| -------- | --------------------------------- | +| `A` | Transform source image tool | +| `L` | Add to source image mask tool | +| `U` | Erase from source image mask tool | + {.shortcuts} - - - - ### Edit -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo -`Ctrl` `Shift` `C` | Copy merged -`Ctrl` `Shift` `V` | Paste style -`Ctrl` `Alt` `V` | Paste FX -`Ctrl` `Shift` `Alt` `V` | Paste without format -`Ctrl` `Alt` `V` | Paste inside -`Shift` `F5` | Fill -`Alt` `Tab` | Inpaint -{.shortcuts} +| Shortcut | Action | +| ------------------------ | -------------------- | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo | +| `Ctrl` `Shift` `C` | Copy merged | +| `Ctrl` `Shift` `V` | Paste style | +| `Ctrl` `Alt` `V` | Paste FX | +| `Ctrl` `Shift` `Alt` `V` | Paste without format | +| `Ctrl` `Alt` `V` | Paste inside | +| `Shift` `F5` | Fill | +| `Alt` `Tab` | Inpaint | +{.shortcuts} ### Layer Operations -Shortcut | Action ----|--- -`Ctrl` `Alt` `A` | Select all layers -`Ctrl` `G` | Group -`Ctrl` `Shift` `G` | Ungroup -`Ctrl` `J` | Duplicate -`Ctrl` `I` | Invert -`Ctrl` `Shift` `]` | Move to front -`Ctrl` `]` | Move forward one -`Ctrl` `Shift` `[` | Move to back -`Ctrl` `[` | Move back one -`Ctrl` `Shift` `N` | New layer -`Ctrl` `E` | Merge down -`Ctrl` `Shift` `E` | Merge selected -`Ctrl` `Shift` `Alt` `E` | Merge visible -`F` | Toggle between frequency separation layers -`Ctrl` `Alt` `P` | Edit live projection -{.shortcuts} +| Shortcut | Action | +| ------------------------ | ------------------------------------------ | +| `Ctrl` `Alt` `A` | Select all layers | +| `Ctrl` `G` | Group | +| `Ctrl` `Shift` `G` | Ungroup | +| `Ctrl` `J` | Duplicate | +| `Ctrl` `I` | Invert | +| `Ctrl` `Shift` `]` | Move to front | +| `Ctrl` `]` | Move forward one | +| `Ctrl` `Shift` `[` | Move to back | +| `Ctrl` `[` | Move back one | +| `Ctrl` `Shift` `N` | New layer | +| `Ctrl` `E` | Merge down | +| `Ctrl` `Shift` `E` | Merge selected | +| `Ctrl` `Shift` `Alt` `E` | Merge visible | +| `F` | Toggle between frequency separation layers | +| `Ctrl` `Alt` `P` | Edit live projection | +{.shortcuts} ### Brush -Shortcut | Action ----|--- -`0-9` | Change selected layer content/brush tool's opacity -`[/]` | Increase/decrease brush width -{.shortcuts} +| Shortcut | Action | +| -------- | -------------------------------------------------- | +| `0-9` | Change selected layer content/brush tool's opacity | +| `[/]` | Increase/decrease brush width | +{.shortcuts} ### View -Shortcut | Action ----|--- -`Ctrl` `+` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Zoom to fit -`Ctrl` `1` | Zoom to 100% -`Ctrl` `2` | Zoom to 200% -`Ctrl` `3` | Zoom to 400% -`Ctrl` `4` | Zoom to 800% -`Ctrl` `8` | Zoom to actual size -`Ctrl` `9` | Zoom to pixel size -`Space` | Hot key panning -`Ctrl` `Space` | Hot key zoom in -`H` | View tool -`Ctrl` `Tab` | Switch between views -`Ctrl` `R` | Show rulers -`Ctrl` `;` | Show guides -`Ctrl` `'` | Show grid -{.shortcuts} +| Shortcut | Action | +| -------------- | -------------------- | +| `Ctrl` `+` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Zoom to fit | +| `Ctrl` `1` | Zoom to 100% | +| `Ctrl` `2` | Zoom to 200% | +| `Ctrl` `3` | Zoom to 400% | +| `Ctrl` `4` | Zoom to 800% | +| `Ctrl` `8` | Zoom to actual size | +| `Ctrl` `9` | Zoom to pixel size | +| `Space` | Hot key panning | +| `Ctrl` `Space` | Hot key zoom in | +| `H` | View tool | +| `Ctrl` `Tab` | Switch between views | +| `Ctrl` `R` | Show rulers | +| `Ctrl` `;` | Show guides | +| `Ctrl` `'` | Show grid | +{.shortcuts} ### Pixel Selection / Mask -Shortcut | Action ----|--- -`Ctrl` `A` | Select all -`Ctrl` `D` | Deselect -`Ctrl` `Shift` `I` | Invert pixel selection -`Ctrl` | Add to selection (marquee or free hand selection tools only) -`Alt` | Remove from selection -`Ctrl` `B` | Grow or shrink -`Shift` `F6` | Feather -`Ctrl` `Alt` `R` | Refine edges -`(arrows)` | Move selection in 1 pixel increments -`Shift` `(arrows)` | Move selection in 10 pixel increments -`Q` | Quick mask -`Ctrl` `I` | Invert mask -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------------------------------------ | +| `Ctrl` `A` | Select all | +| `Ctrl` `D` | Deselect | +| `Ctrl` `Shift` `I` | Invert pixel selection | +| `Ctrl` | Add to selection (marquee or free hand selection tools only) | +| `Alt` | Remove from selection | +| `Ctrl` `B` | Grow or shrink | +| `Shift` `F6` | Feather | +| `Ctrl` `Alt` `R` | Refine edges | +| `(arrows)` | Move selection in 1 pixel increments | +| `Shift` `(arrows)` | Move selection in 10 pixel increments | +| `Q` | Quick mask | +| `Ctrl` `I` | Invert mask | +{.shortcuts} ### Workspace -Shortcut | Action ----|--- -`Ctrl` `Shift` `H` | Show or hide studio panels -`Ctrl` `Alt` `T` | Show or hide toolbar -`Tab` | Toggle UI -`Ctrl` `H` | Hide workspace -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------------------- | +| `Ctrl` `Shift` `H` | Show or hide studio panels | +| `Ctrl` `Alt` `T` | Show or hide toolbar | +| `Tab` | Toggle UI | +| `Ctrl` `H` | Hide workspace | +{.shortcuts} ### Adjustment and Filter -Shortcut | Action ----|--- -`Ctrl` `L` | Levels adjustment -`Ctrl` `U` | HSL adjustment -`Ctrl` `I` | Invert adjustment -`Ctrl` `M` | Curves adjustment -`Ctrl` `Shift` `Alt` `B` | Black and white adjustment -`Ctrl` `F` | Repeat filter -{.shortcuts} +| Shortcut | Action | +| ------------------------ | -------------------------- | +| `Ctrl` `L` | Levels adjustment | +| `Ctrl` `U` | HSL adjustment | +| `Ctrl` `I` | Invert adjustment | +| `Ctrl` `M` | Curves adjustment | +| `Ctrl` `Shift` `Alt` `B` | Black and white adjustment | +| `Ctrl` `F` | Repeat filter | +{.shortcuts} ### Liquify Persona -Shortcut | Action ----|--- -`Ctrl` `D` | Mask all -`Ctrl` `I` | Invert mask -`Ctrl` `A` | Clear mask -{.shortcuts} +| Shortcut | Action | +| ---------- | ----------- | +| `Ctrl` `D` | Mask all | +| `Ctrl` `I` | Invert mask | +| `Ctrl` `A` | Clear mask | +{.shortcuts} ### Misc -Shortcut | Action ----|--- -`Ctrl` `,` | Preferences -`Ctrl` `Alt` `L` | Liquify persona -`Ctrl` `Alt` `E` | Export persona -`Ctrl` `Alt` `R` | Develop persona -`Ctrl` `Alt` `H` | Hide others (applications) -`Ctrl` `Alt` `M` | Media browser +| Shortcut | Action | +| ---------------- | -------------------------- | +| `Ctrl` `,` | Preferences | +| `Ctrl` `Alt` `L` | Liquify persona | +| `Ctrl` `Alt` `E` | Export persona | +| `Ctrl` `Alt` `R` | Develop persona | +| `Ctrl` `Alt` `H` | Hide others (applications) | +| `Ctrl` `Alt` `M` | Media browser | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Affinity Photo](https://affinityspotlight.com/article/downloadable-affinity-keyboard-shortcut-cheat-sheets/) _(affinityspotlight.com)_ +- [Keyboard shortcuts for Affinity Photo](https://affinityspotlight.com/article/downloadable-affinity-keyboard-shortcut-cheat-sheets/) + _(affinityspotlight.com)_ diff --git a/source/_posts/airtable.md b/source/_posts/airtable.md index 9e8db4f..efd1b2e 100644 --- a/source/_posts/airtable.md +++ b/source/_posts/airtable.md @@ -2,96 +2,90 @@ title: Airtable date: 2022-11-23 16:23:31.699659 background: bg-[#f1b73f] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 36 keyboard shortcuts found in Airtable + A visual cheat-sheet for the 36 keyboard shortcuts found in Airtable --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General {.row-span-3} -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo action -`Ctrl` `Shift` `Z` | Redo action -`Ctrl` `P` | Print the current table view or current expanded record (if inside an expanded record) -`Ctrl` `J` | Opens the table switcher in the current base -`Ctrl` `K` | Opens the quick base switcher if on the home screen or inside a base -`Ctrl` `Shift` `K` | Opens the view switcher in the current base -`Ctrl` `Shift` `F` | Opens the filter menu in the current view, press enter to create a new filter -`Ctrl` `Shift` `D` | Opens the grouped records menu in the current view, press enter to collapse or expand all groups -`Ctrl` `Shift` `S` | Opens the sort menu in the current view, press enter to re-apply the most recent sort -`Ctrl` `Shift` `\` | Toggles blocks -`Ctrl` `F` | Opens the find bar, use esc to close it -`Ctrl` `;` | Sets the selected date/datetime field to now -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------------------------------------------------------------------------ | +| `Ctrl` `Z` | Undo action | +| `Ctrl` `Shift` `Z` | Redo action | +| `Ctrl` `P` | Print the current table view or current expanded record (if inside an expanded record) | +| `Ctrl` `J` | Opens the table switcher in the current base | +| `Ctrl` `K` | Opens the quick base switcher if on the home screen or inside a base | +| `Ctrl` `Shift` `K` | Opens the view switcher in the current base | +| `Ctrl` `Shift` `F` | Opens the filter menu in the current view, press enter to create a new filter | +| `Ctrl` `Shift` `D` | Opens the grouped records menu in the current view, press enter to collapse or expand all groups | +| `Ctrl` `Shift` `S` | Opens the sort menu in the current view, press enter to re-apply the most recent sort | +| `Ctrl` `Shift` `\` | Toggles blocks | +| `Ctrl` `F` | Opens the find bar, use esc to close it | +| `Ctrl` `;` | Sets the selected date/datetime field to now | +{.shortcuts} ### Grid View {.row-span-3} -Shortcut | Action ----|--- -`Ctrl` `C` | Copy a cell or range of cells -`Ctrl` `X` | Cut a cell or range of cells -`Ctrl` `V` | Paste a cell (if you select a range of cells, you can paste the same value into multiple cells at once) -`Space` | Expand the active record, use esc to return to the table -`Shift` `Space` | Expand the active cell, you can then use arrow keys to move to different cells -`PgUp` | Scrolls one screen up -`PgDn` | Scrolls one screen down -`Alt` `PgUp` | Scrolls one screen left -`Alt` `PgDn` | Scrolls one screen right -`Ctrl` `(arrows)` | Jump to the edge of the table -`Ctrl` `Shift` `(arrows)` | Jump to the edge of table and select cells -`Shift` `(arrows)` | Select range of cells, you can also click while holding shift to select cells -`Shift` `Enter` | Insert a record below the selected cell -`Enter` | Edit the selected cell -{.shortcuts} +| Shortcut | Action | +| ------------------------- | ------------------------------------------------------------------------------------------------------- | +| `Ctrl` `C` | Copy a cell or range of cells | +| `Ctrl` `X` | Cut a cell or range of cells | +| `Ctrl` `V` | Paste a cell (if you select a range of cells, you can paste the same value into multiple cells at once) | +| `Space` | Expand the active record, use esc to return to the table | +| `Shift` `Space` | Expand the active cell, you can then use arrow keys to move to different cells | +| `PgUp` | Scrolls one screen up | +| `PgDn` | Scrolls one screen down | +| `Alt` `PgUp` | Scrolls one screen left | +| `Alt` `PgDn` | Scrolls one screen right | +| `Ctrl` `(arrows)` | Jump to the edge of the table | +| `Ctrl` `Shift` `(arrows)` | Jump to the edge of table and select cells | +| `Shift` `(arrows)` | Select range of cells, you can also click while holding shift to select cells | +| `Shift` `Enter` | Insert a record below the selected cell | +| `Enter` | Edit the selected cell | +{.shortcuts} ### Gallery View -Shortcut | Action ----|--- -`Ctrl` `Up/Down` | Scroll to edge of gallery -{.shortcuts} +| Shortcut | Action | +| ---------------- | ------------------------- | +| `Ctrl` `Up/Down` | Scroll to edge of gallery | +{.shortcuts} ### Kanban View -Shortcut | Action ----|--- -`Left` | Scroll kanban board to the left by one stack -`Right` | Scroll kanban board to the right by one stack -`Ctrl` `Left` | Scroll kanban board to the left edge -`Ctrl` `Right` | Scroll kanban board to the right edge -`Ctrl` `Up` | Scroll all stacks to the top -`Ctrl` `Down` | Scroll all stacks to the bottom -{.shortcuts} +| Shortcut | Action | +| -------------- | --------------------------------------------- | +| `Left` | Scroll kanban board to the left by one stack | +| `Right` | Scroll kanban board to the right by one stack | +| `Ctrl` `Left` | Scroll kanban board to the left edge | +| `Ctrl` `Right` | Scroll kanban board to the right edge | +| `Ctrl` `Up` | Scroll all stacks to the top | +| `Ctrl` `Down` | Scroll all stacks to the bottom | +{.shortcuts} ### Expanded Record -Shortcut | Action ----|--- -`Ctrl` `Shift` `<` | Move to the previous record while viewing an expanded record -`Ctrl` `Shift` `>` | Move to the next record while viewing an expanded record -`Esc` | Close expanded record +| Shortcut | Action | +| ------------------ | ------------------------------------------------------------ | +| `Ctrl` `Shift` `<` | Move to the previous record while viewing an expanded record | +| `Ctrl` `Shift` `>` | Move to the next record while viewing an expanded record | +| `Esc` | Close expanded record | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Airtable](https://support.airtable.com/hc/en-us/articles/204143385-Airtable-keyboard-shortcuts) _(support.airtable.com)_ +- [Keyboard shortcuts for Airtable](https://support.airtable.com/hc/en-us/articles/204143385-Airtable-keyboard-shortcuts) + _(support.airtable.com)_ diff --git a/source/_posts/android-studio.md b/source/_posts/android-studio.md index bc553e8..4f99502 100644 --- a/source/_posts/android-studio.md +++ b/source/_posts/android-studio.md @@ -2,227 +2,219 @@ title: Android Studio date: 2022-11-23 16:23:31.704217 background: bg-[#6bd488] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 130 keyboard shortcuts found in the Andriod Studio software + A visual cheat-sheet for the 130 keyboard shortcuts found in the Andriod Studio software --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General -Shortcut | Action ----|--- -`Ctrl` `S` | Save all -`Ctrl` `Alt` `Y` | Synchronize -`Ctrl` `Shift` `F12` | Minimize or maximize the editor -`Alt` `Shift` `F` | Add to favorites -`Alt` `Shift` `I` | Inspect the current file with the current profile -`Ctrl` \` | Quick switch the scheme -`Ctrl` `Alt` `S` | Open the settings dialogue -`Ctrl` `Alt` `Shift` `S` | Open the project structure dialogue -`Ctrl` `Tab` | Switch between the tabs and tool window +| Shortcut | Action | +| ------------------------ | ------------------------------------------------- | +| `Ctrl` `S` | Save all | +| `Ctrl` `Alt` `Y` | Synchronize | +| `Ctrl` `Shift` `F12` | Minimize or maximize the editor | +| `Alt` `Shift` `F` | Add to favorites | +| `Alt` `Shift` `I` | Inspect the current file with the current profile | +| `Ctrl` \` | Quick switch the scheme | +| `Ctrl` `Alt` `S` | Open the settings dialogue | +| `Ctrl` `Alt` `Shift` `S` | Open the project structure dialogue | +| `Ctrl` `Tab` | Switch between the tabs and tool window | + {.shortcuts} +### Navigating and Searching {.row-span-2} -### Navigating and Searching {.row-span-2} +| Shortcut | Action | +| -------------------------- | ------------------------------------------- | +| `Shift` `Shift` | Search everything, including code and menus | +| `Ctrl` `F` | Find | +| `F3` | Find next | +| `Shift` `F3` | Find previous | +| `Ctrl` `R` | Replace | +| `Ctrl` `Shift` `A` | Find action | +| `Ctrl` `Alt` `Shift` `N` | Search by a symbol name | +| `Ctrl` `N` | Find class | +| `Ctrl` `Shift` `N` | Find file, instead of class | +| `Ctrl` `Shift` `F` | Find in path | +| `Ctrl` `F12` | Open file structure pop-up | +| `Alt` `Right/Left` | Navigate between open editor tabs | +| `Ctrl` `Enter` | Jump to source | +| `Shift` `F4` | Open the current editor tab in a new window | +| `Ctrl` `E` | Recently opened files pop-up | +| `Ctrl` `Shift` `E` | Recently edited files pop-up | +| `Ctrl` `Shift` `Backspace` | Go to last edit location | +| `Ctrl` `F4` | Close active editor tab | +| `Esc` | Return to editor window from a tool window | +| `Shift` `Esc` | Hide active or last active tool window | +| `Ctrl` `G` | Go to line | +| `Ctrl` `H` | Open type hierarchy | +| `Ctrl` `Shift` `H` | Open method hierarchy | +| `Ctrl` `Alt` `H` | Open call hierarchy | -Shortcut | Action ----|--- -`Shift` `Shift` | Search everything, including code and menus -`Ctrl` `F` | Find -`F3` | Find next -`Shift` `F3` | Find previous -`Ctrl` `R` | Replace -`Ctrl` `Shift` `A` | Find action -`Ctrl` `Alt` `Shift` `N` | Search by a symbol name -`Ctrl` `N` | Find class -`Ctrl` `Shift` `N` | Find file, instead of class -`Ctrl` `Shift` `F` | Find in path -`Ctrl` `F12` | Open file structure pop-up -`Alt` `Right/Left` | Navigate between open editor tabs -`Ctrl` `Enter` | Jump to source -`Shift` `F4` | Open the current editor tab in a new window -`Ctrl` `E` | Recently opened files pop-up -`Ctrl` `Shift` `E` | Recently edited files pop-up -`Ctrl` `Shift` `Backspace` | Go to last edit location -`Ctrl` `F4` | Close active editor tab -`Esc` | Return to editor window from a tool window -`Shift` `Esc` | Hide active or last active tool window -`Ctrl` `G` | Go to line -`Ctrl` `H` | Open type hierarchy -`Ctrl` `Shift` `H` | Open method hierarchy -`Ctrl` `Alt` `H` | Open call hierarchy {.shortcuts} - - ### Writing Code {.row-span-4} -Shortcut | Action ----|--- -`Alt` `Insert` | Generate code, e.g. getters, setters, constructors, new class -`Ctrl` `O` | Override methods -`Ctrl` `I` | Implement methods -`Ctrl` `Alt` `T` | Surround with if...else, try...catch, etc -`Ctrl` `Y` | Delete line at caret -`Ctrl` `-` | Collapse the current code block -`Ctrl` `+` | Expand the current code block -`Ctrl` `Shift` `-` | Collapse all code blocks -`Ctrl` `Shift` `+` | Expand all code blocks -`Ctrl` `D` | Duplicate the current line or selection -`Ctrl` `Space` | Basic code completion -`Ctrl` `Shift` `Space` | Smart code completion, filters the list of methods and variables by expected type -`Ctrl` `Shift` `Enter` | Complete statement -`Ctrl` `Q` | Quick documentation lookup -`Ctrl` `P` | Show parameters for selected method -`Ctrl` `B` | Go to declaration, directly -`Ctrl` `Alt` `B` | Go to implementations -`Ctrl` `U` | Go to super-method or super-class -`Ctrl` `Shift` `I` | Open quick definition lookup -`Alt` `1` | Toggle project tool window visibility -`F11` | Toggle bookmark -`Ctrl` `F11` | Toggle bookmark with mnemonic -`Ctrl` `/` | Comment or uncomment with line comment -`Ctrl` `Shift` `/` | Comment or uncomment with block comment -`Ctrl` `W` | Select successively increasing code blocks -`Ctrl` `Shift` `W` | Decrease current selection to previous state -`Ctrl` `[` | Move to code block start -`Ctrl` `]` | Move to code block end -`Ctrl` `Shift` `[` | Select to the code block start -`Ctrl` `Shift` `]` | Select to the code block end -`Ctrl` `Del` | Delete to the end of a word -`Ctrl` `Backspace` | Delete to the start of a word -`Ctrl` `Alt` `O` | Optimize imports -`Alt` `Enter` | Project quick fix, show intention actions and quick fixes -`Ctrl` `Alt` `L` | Reformat code -`Ctrl` `Alt` `I` | Auto-indent lines -`Tab` | Indent lines -`Shift` `Tab` | Unindent lines -`Ctrl` `Shift` `J` | Smart line join -`Ctrl` `Enter` | Smart line split -`Shift` `Enter` | Start new line -`F2` | Next highlighted error -`Shift` `F2` | Previous highlighted error -{.shortcuts} +| Shortcut | Action | +| ---------------------- | --------------------------------------------------------------------------------- | +| `Alt` `Insert` | Generate code, e.g. getters, setters, constructors, new class | +| `Ctrl` `O` | Override methods | +| `Ctrl` `I` | Implement methods | +| `Ctrl` `Alt` `T` | Surround with if...else, try...catch, etc | +| `Ctrl` `Y` | Delete line at caret | +| `Ctrl` `-` | Collapse the current code block | +| `Ctrl` `+` | Expand the current code block | +| `Ctrl` `Shift` `-` | Collapse all code blocks | +| `Ctrl` `Shift` `+` | Expand all code blocks | +| `Ctrl` `D` | Duplicate the current line or selection | +| `Ctrl` `Space` | Basic code completion | +| `Ctrl` `Shift` `Space` | Smart code completion, filters the list of methods and variables by expected type | +| `Ctrl` `Shift` `Enter` | Complete statement | +| `Ctrl` `Q` | Quick documentation lookup | +| `Ctrl` `P` | Show parameters for selected method | +| `Ctrl` `B` | Go to declaration, directly | +| `Ctrl` `Alt` `B` | Go to implementations | +| `Ctrl` `U` | Go to super-method or super-class | +| `Ctrl` `Shift` `I` | Open quick definition lookup | +| `Alt` `1` | Toggle project tool window visibility | +| `F11` | Toggle bookmark | +| `Ctrl` `F11` | Toggle bookmark with mnemonic | +| `Ctrl` `/` | Comment or uncomment with line comment | +| `Ctrl` `Shift` `/` | Comment or uncomment with block comment | +| `Ctrl` `W` | Select successively increasing code blocks | +| `Ctrl` `Shift` `W` | Decrease current selection to previous state | +| `Ctrl` `[` | Move to code block start | +| `Ctrl` `]` | Move to code block end | +| `Ctrl` `Shift` `[` | Select to the code block start | +| `Ctrl` `Shift` `]` | Select to the code block end | +| `Ctrl` `Del` | Delete to the end of a word | +| `Ctrl` `Backspace` | Delete to the start of a word | +| `Ctrl` `Alt` `O` | Optimize imports | +| `Alt` `Enter` | Project quick fix, show intention actions and quick fixes | +| `Ctrl` `Alt` `L` | Reformat code | +| `Ctrl` `Alt` `I` | Auto-indent lines | +| `Tab` | Indent lines | +| `Shift` `Tab` | Unindent lines | +| `Ctrl` `Shift` `J` | Smart line join | +| `Ctrl` `Enter` | Smart line split | +| `Shift` `Enter` | Start new line | +| `F2` | Next highlighted error | +| `Shift` `F2` | Previous highlighted error | +{.shortcuts} ### Viewing Layouts -Shortcut | Action ----|--- -`Ctrl` `+` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Fit to screen -`Ctrl` `Shift` `1` | Actual size -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------- | +| `Ctrl` `+` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Fit to screen | +| `Ctrl` `Shift` `1` | Actual size | +{.shortcuts} ### Layout Editor -Shortcut | Action ----|--- -`B` | Toggle between Design and Blueprint modes -`O` | Toggle between Portrait and Landscaope modes -`D` | Toggle devices -`R` | Force refresh -`E` | Toggle render errors panel -`Del` | Delete constraints -`Ctrl` `+` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Zoom to fit -`Ctrl` `B` | Go to XML -`Ctrl` `A` | Select all components -`Shift` `(click)` | Select multiple components -{.shortcuts} +| Shortcut | Action | +| ----------------- | -------------------------------------------- | +| `B` | Toggle between Design and Blueprint modes | +| `O` | Toggle between Portrait and Landscaope modes | +| `D` | Toggle devices | +| `R` | Force refresh | +| `E` | Toggle render errors panel | +| `Del` | Delete constraints | +| `Ctrl` `+` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Zoom to fit | +| `Ctrl` `B` | Go to XML | +| `Ctrl` `A` | Select all components | +| `Shift` `(click)` | Select multiple components | +{.shortcuts} ### Navigation Editor -Shortcut | Action ----|--- -`Ctrl` `+` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Zoom to fit -`Ctrl` `B` | Go to XML -`E` | Toggle render errors panel -`Ctrl` `G` | Group into a nested graph -`Tab` | Cycle through destinations -`Ctrl` `A` | Select all destinations -`Ctrl` `(click)` | Select multiple destinations +| Shortcut | Action | +| ---------------- | ---------------------------- | +| `Ctrl` `+` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Zoom to fit | +| `Ctrl` `B` | Go to XML | +| `E` | Toggle render errors panel | +| `Ctrl` `G` | Group into a nested graph | +| `Tab` | Cycle through destinations | +| `Ctrl` `A` | Select all destinations | +| `Ctrl` `(click)` | Select multiple destinations | + {.shortcuts} - - ### Build and Run -Shortcut | Action ----|--- -`Ctrl` `F9` | Build -`Shift` `F10` | Build and run -`Ctrl` `F10` | Apply changes and restart activity -`Ctrl` `Alt` `F10` | Apply code changes -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------------------- | +| `Ctrl` `F9` | Build | +| `Shift` `F10` | Build and run | +| `Ctrl` `F10` | Apply changes and restart activity | +| `Ctrl` `Alt` `F10` | Apply code changes | +{.shortcuts} ### Debugging -Shortcut | Action ----|--- -`Shift` `F9` | Debug -`F8` | Step over -`F7` | Step into -`Shift` `F7` | Smart step into -`Shift` `F8` | Step out -`Alt` `F9` | Run to cursor -`Alt` `F8` | Evaluate expression -`F9` | Resume program -`Ctrl` `F8` | Toggle breakpoint -`Ctrl` `Shift` `F8` | View breakpoints -{.shortcuts} +| Shortcut | Action | +| ------------------- | ------------------- | +| `Shift` `F9` | Debug | +| `F8` | Step over | +| `F7` | Step into | +| `Shift` `F7` | Smart step into | +| `Shift` `F8` | Step out | +| `Alt` `F9` | Run to cursor | +| `Alt` `F8` | Evaluate expression | +| `F9` | Resume program | +| `Ctrl` `F8` | Toggle breakpoint | +| `Ctrl` `Shift` `F8` | View breakpoints | +{.shortcuts} ### Refactoring -Shortcut | Action ----|--- -`F5` | Copy -`F6` | Move -`Alt` `Del` | Safe delete -`Shift` `F6` | Rename -`Ctrl` `F6` | Change signature -`Ctrl` `Alt` `N` | Inline -`Ctrl` `Alt` `M` | Extract method -`Ctrl` `Alt` `V` | Extract variable -`Ctrl` `Alt` `F` | Extract field -`Ctrl` `Alt` `C` | Extract constant -`Ctrl` `Alt` `P` | Extract parameter -{.shortcuts} +| Shortcut | Action | +| ---------------- | ----------------- | +| `F5` | Copy | +| `F6` | Move | +| `Alt` `Del` | Safe delete | +| `Shift` `F6` | Rename | +| `Ctrl` `F6` | Change signature | +| `Ctrl` `Alt` `N` | Inline | +| `Ctrl` `Alt` `M` | Extract method | +| `Ctrl` `Alt` `V` | Extract variable | +| `Ctrl` `Alt` `F` | Extract field | +| `Ctrl` `Alt` `C` | Extract constant | +| `Ctrl` `Alt` `P` | Extract parameter | +{.shortcuts} ### Version Control -Shortcut | Action ----|--- -`Ctrl` `K` | Commit project to VCS -`Ctrl` `T` | Update project from VCS -`Alt` `Shift` `C` | View recent changes -`Alt` \` | Open VCS pop-up +| Shortcut | Action | +| --------------------- | ----------------------- | +| `Ctrl` `K` | Commit project to VCS | +| `Ctrl` `T` | Update project from VCS | +| `Alt` `Shift` `C` | View recent changes | +| `Alt` \` | Open VCS pop-up | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Android Studio](https://developer.android.com/studio/intro/keyboard-shortcuts) _(developer.android.com)_ +- [Keyboard shortcuts for Android Studio](https://developer.android.com/studio/intro/keyboard-shortcuts) + _(developer.android.com)_ diff --git a/source/_posts/apex-legends.md b/source/_posts/apex-legends.md index 3f18bbe..a2f346c 100644 --- a/source/_posts/apex-legends.md +++ b/source/_posts/apex-legends.md @@ -2,73 +2,67 @@ title: Apex Legends date: 2022-11-23 16:23:31.706352 background: bg-[#a74145] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 27 default keyboard shortcuts found in Apex Legends + A visual cheat-sheet for the 27 default keyboard shortcuts found in Apex Legends --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Movement -Shortcut | Action ----|--- -`W` | Move forward -`S` | Move back -`A` | Move left -`D` | Move right -`Left Shift` | Sprint -`Space` | Jump -`C` | Toggle crouch -`Left Ctrl` | Hold to crouch -{.shortcuts} +| Shortcut | Action | +| ------------ | -------------- | +| `W` | Move forward | +| `S` | Move back | +| `A` | Move left | +| `D` | Move right | +| `Left Shift` | Sprint | +| `Space` | Jump | +| `C` | Toggle crouch | +| `Left Ctrl` | Hold to crouch | +{.shortcuts} ### Weapons and Abilities -Shortcut | Action ----|--- -`Q` | Tactical ability -`Z` | Ultimate ability -`E` | Interact or pickup -`X` | Alternate interact -`Tab` | Toggle inventory -`M` | Toggle map -`B` | Toggle fire mode -`V` | Melee -`R` | Reload -`1` | Equip first weapon -`2` | Equip second weapon -`3` | Holster weapons -`G` | Equip grenade -`4` | Use selected health item -`H` | Toggle Gibraltar's shield -`N` | Inspect weapon -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------- | +| `Q` | Tactical ability | +| `Z` | Ultimate ability | +| `E` | Interact or pickup | +| `X` | Alternate interact | +| `Tab` | Toggle inventory | +| `M` | Toggle map | +| `B` | Toggle fire mode | +| `V` | Melee | +| `R` | Reload | +| `1` | Equip first weapon | +| `2` | Equip second weapon | +| `3` | Holster weapons | +| `G` | Equip grenade | +| `4` | Use selected health item | +| `H` | Toggle Gibraltar's shield | +| `N` | Inspect weapon | +{.shortcuts} ### Communication -Shortcut | Action ----|--- -`F` | Ping enemy here -`T` | Hold to use push to talk -`Enter` | Message team +| Shortcut | Action | +| -------- | ------------------------ | +| `F` | Ping enemy here | +| `T` | Hold to use push to talk | +| `Enter` | Message team | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Apex Legends](https://www.metabomb.net/off-meta/gameplay-guides/apex-legends-controls-pc-playstation-4xbox-one) _(www.metabomb.net)_ +- [Keyboard shortcuts for Apex Legends](https://www.metabomb.net/off-meta/gameplay-guides/apex-legends-controls-pc-playstation-4xbox-one) + _(www.metabomb.net)_ diff --git a/source/_posts/apple-music.md b/source/_posts/apple-music.md index 6efd518..5a01ecd 100644 --- a/source/_posts/apple-music.md +++ b/source/_posts/apple-music.md @@ -3,130 +3,122 @@ title: Apple Music date: 2022-11-23 16:23:31.700157 background: bg-[#e05564] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 62 keyboard shortcuts found in the Apple Music app. This application is MacOS-only. + A visual cheat-sheet for the 62 keyboard shortcuts found in the Apple Music app. This application is MacOS-only. --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Playing Music {.row-span-2} -Shortcut | Action ----|--- -`Space` | Start playing or pause the selected song -`Enter` | Play the currently selected song from the beginning -`Cmd` `Opt` `Right` | Move forward within a song -`Cmd` `Opt` `Left` | Move backward within a song -`Cmd` `.` | Stop playing the selected song -`Right` | When a song is playing, play the next song in a list -`Left` | When a song is playing, play the previous song in a list -`Cmd` `L` | Show the currently playing song in the list -`Cmd` `Opt` `U` | Show the Playing Next queue -`Opt` `Right` | Listen to the next album in a list -`Opt` `Left` | Listen to the previous album in a list -`Cmd` `Up` | Increase the volume -`Cmd` `Down` | Decrease the volume -`Cmd` `Opt` `E` | Open the equalizer -`Cmd` `Shift` `Right` | Go to the next chapter, if available -`Cmd` `Shift` `Left` | Go to the previous chapter, if available -`Cmd` `U` | Stream audio file at a specific URL to Music -{.shortcuts} +| Shortcut | Action | +| --------------------- | -------------------------------------------------------- | +| `Space` | Start playing or pause the selected song | +| `Enter` | Play the currently selected song from the beginning | +| `Cmd` `Opt` `Right` | Move forward within a song | +| `Cmd` `Opt` `Left` | Move backward within a song | +| `Cmd` `.` | Stop playing the selected song | +| `Right` | When a song is playing, play the next song in a list | +| `Left` | When a song is playing, play the previous song in a list | +| `Cmd` `L` | Show the currently playing song in the list | +| `Cmd` `Opt` `U` | Show the Playing Next queue | +| `Opt` `Right` | Listen to the next album in a list | +| `Opt` `Left` | Listen to the previous album in a list | +| `Cmd` `Up` | Increase the volume | +| `Cmd` `Down` | Decrease the volume | +| `Cmd` `Opt` `E` | Open the equalizer | +| `Cmd` `Shift` `Right` | Go to the next chapter, if available | +| `Cmd` `Shift` `Left` | Go to the previous chapter, if available | +| `Cmd` `U` | Stream audio file at a specific URL to Music | +{.shortcuts} ### Playlists -Shortcut | Action ----|--- -`Cmd` `N` | Create a new playlist -`Cmd` `Shift` `N` | Create a playlist from a selection of songs -`Cmd` `Opt` `N` | Create a new Smart Playlist -`Opt` `Space` | Start the Genius Shuffle -`Cmd` `R` | Refresh a Genius Playlist, when the playlist is selected -`Cmd` `Del` | Delete the selected playlist without confirmation -`Opt` `Del` | Delete the selected playlist and all songs it contains from your library -`Opt` `Del` | Delete the selected song from your library and all playlists +| Shortcut | Action | +| ----------------- | ------------------------------------------------------------------------ | +| `Cmd` `N` | Create a new playlist | +| `Cmd` `Shift` `N` | Create a playlist from a selection of songs | +| `Cmd` `Opt` `N` | Create a new Smart Playlist | +| `Opt` `Space` | Start the Genius Shuffle | +| `Cmd` `R` | Refresh a Genius Playlist, when the playlist is selected | +| `Cmd` `Del` | Delete the selected playlist without confirmation | +| `Opt` `Del` | Delete the selected playlist and all songs it contains from your library | +| `Opt` `Del` | Delete the selected song from your library and all playlists | + {.shortcuts} - - ### Window Options {.row-span-2} -Shortcut | Action ----|--- -`Cmd` `Shift` `M` | Open the MiniPlayer -`Cmd` `Shift` `F` | Open the Full Screen Player -`Cmd` `Ctrl` `F` | Toggle full-screen view -`Cmd` `/` | Show or hide the status bar -`Cmd` `I` | Open the info window for the selected song -`Cmd` `N` | In the info window, see information for the next song -`Cmd` `P` | In the info window, see information for the previous song -`Cmd` `Shift` `[` | Go to the previous pane in the info window -`Cmd` `Shift` `]` | Go to the next pane in the info window -`Cmd` `J` | Open the View Options window for the selected source -`Cmd` `T` | Turn the visualizer on or off -`?` | See more options when a visual effect is showing -`Cmd` `R` | Refresh Apple Music or the iTunes Store -`Cmd` `0` | Open the Music window -`Cmd` `W` | Close the Music window -`Cmd` `M` | Put the Music window in the Dock -`Cmd` `H` | Hide the Music window -`Cmd` `Opt` `H` | Hide all other applications -{.shortcuts} +| Shortcut | Action | +| ----------------- | --------------------------------------------------------- | +| `Cmd` `Shift` `M` | Open the MiniPlayer | +| `Cmd` `Shift` `F` | Open the Full Screen Player | +| `Cmd` `Ctrl` `F` | Toggle full-screen view | +| `Cmd` `/` | Show or hide the status bar | +| `Cmd` `I` | Open the info window for the selected song | +| `Cmd` `N` | In the info window, see information for the next song | +| `Cmd` `P` | In the info window, see information for the previous song | +| `Cmd` `Shift` `[` | Go to the previous pane in the info window | +| `Cmd` `Shift` `]` | Go to the next pane in the info window | +| `Cmd` `J` | Open the View Options window for the selected source | +| `Cmd` `T` | Turn the visualizer on or off | +| `?` | See more options when a visual effect is showing | +| `Cmd` `R` | Refresh Apple Music or the iTunes Store | +| `Cmd` `0` | Open the Music window | +| `Cmd` `W` | Close the Music window | +| `Cmd` `M` | Put the Music window in the Dock | +| `Cmd` `H` | Hide the Music window | +| `Cmd` `Opt` `H` | Hide all other applications | +{.shortcuts} ### Library -Shortcut | Action ----|--- -`Cmd` `O` | Add a file to your library -`Cmd` `Shift` `R` | Show where a song file is located -`Cmd` `F` | Select the search field -`Cmd` `Z` | Undo your last typing change while editing an item -`Cmd` `X` | Cut the selected song's information or artwork -`Cmd` `C` | Copy the selected song's information or artwork -`Cmd` `V` | Paste the selected song's information or artwork -`Cmd` `A` | Select all the songs in the list -`Cmd` `B` | Show or hide the column browser -`Cmd` `Shift` `A` | De-select all the songs in the list +| Shortcut | Action | +| ----------------- | -------------------------------------------------- | +| `Cmd` `O` | Add a file to your library | +| `Cmd` `Shift` `R` | Show where a song file is located | +| `Cmd` `F` | Select the search field | +| `Cmd` `Z` | Undo your last typing change while editing an item | +| `Cmd` `X` | Cut the selected song's information or artwork | +| `Cmd` `C` | Copy the selected song's information or artwork | +| `Cmd` `V` | Paste the selected song's information or artwork | +| `Cmd` `A` | Select all the songs in the list | +| `Cmd` `B` | Show or hide the column browser | +| `Cmd` `Shift` `A` | De-select all the songs in the list | + {.shortcuts} - - ### iTunes Store -Shortcut | Action ----|--- -`Opt` `Enter` | Initiate a search in the iTunes Store -`Cmd` `]` | Go to the next page in the iTunes Store -`Cmd` `[` | Go to the previous page in the iTunes Store -`Cmd` `R` | Reload the current page -{.shortcuts} +| Shortcut | Action | +| ------------- | ------------------------------------------- | +| `Opt` `Enter` | Initiate a search in the iTunes Store | +| `Cmd` `]` | Go to the next page in the iTunes Store | +| `Cmd` `[` | Go to the previous page in the iTunes Store | +| `Cmd` `R` | Reload the current page | +{.shortcuts} ### Other -Shortcut | Action ----|--- -`Cmd` `,` | Open Music Preferences -`Cmd` `Q` | Quit the Music app -`Cmd` `E` | Eject a CD -`Cmd` `?` | Open the Music Help menu -`Cmd` `Opt` | Open a different music library, while opening Music +| Shortcut | Action | +| ----------- | --------------------------------------------------- | +| `Cmd` `,` | Open Music Preferences | +| `Cmd` `Q` | Quit the Music app | +| `Cmd` `E` | Eject a CD | +| `Cmd` `?` | Open the Music Help menu | +| `Cmd` `Opt` | Open a different music library, while opening Music | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Music on Mac](https://support.apple.com/guide/music/keyboard-shortcuts-mus1019/mac) _(support.apple.com)_ +- [Keyboard shortcuts for Music on Mac](https://support.apple.com/guide/music/keyboard-shortcuts-mus1019/mac) + _(support.apple.com)_ diff --git a/source/_posts/arduino.md b/source/_posts/arduino.md index bfae871..aecdff6 100644 --- a/source/_posts/arduino.md +++ b/source/_posts/arduino.md @@ -2,44 +2,38 @@ title: Arduino IDE date: 2022-11-23 16:23:31.697581 background: bg-[#409096] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 12 keyboard shortcuts found in the Arduino IDE + A visual cheat-sheet for the 12 keyboard shortcuts found in the Arduino IDE --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General -Shortcut | Action ----|--- -`Ctrl` `S` | Save -`Ctrl` `Shift` `S` | Save as -`Ctrl` `N` | Open a new sketch -`Ctrl` `O` | Open an existing sketch -`Ctrl` `Q` | Close the Arduino IDE -`Ctrl` `R` | Verify -`Ctrl` `U` | Upload -`Ctrl` `F` | Find -`Ctrl` `T` | Adjust the alignment and spacing -`Ctrl` `/` | Comment -`Ctrl` `Shift` `M` | Open the serial monitor -`Ctrl` `K` | Open the sketch folder +| Shortcut | Action | +| ------------------ | -------------------------------- | +| `Ctrl` `S` | Save | +| `Ctrl` `Shift` `S` | Save as | +| `Ctrl` `N` | Open a new sketch | +| `Ctrl` `O` | Open an existing sketch | +| `Ctrl` `Q` | Close the Arduino IDE | +| `Ctrl` `R` | Verify | +| `Ctrl` `U` | Upload | +| `Ctrl` `F` | Find | +| `Ctrl` `T` | Adjust the alignment and spacing | +| `Ctrl` `/` | Comment | +| `Ctrl` `Shift` `M` | Open the serial monitor | +| `Ctrl` `K` | Open the sketch folder | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for the Arduino IDE](https://progtpoint.blogspot.com/2017/02/arduino-keyboard-shortcuts.html) _(progtpoint.blogspot.com)_ +- [Keyboard shortcuts for the Arduino IDE](https://progtpoint.blogspot.com/2017/02/arduino-keyboard-shortcuts.html) + _(progtpoint.blogspot.com)_ diff --git a/source/_posts/asana.md b/source/_posts/asana.md index cfbbae9..5be9ecf 100644 --- a/source/_posts/asana.md +++ b/source/_posts/asana.md @@ -2,107 +2,100 @@ title: Asana date: 2022-11-23 16:23:31.697445 background: bg-[#e0726e] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 40 keyboard shortcuts found in Asana + A visual cheat-sheet for the 40 keyboard shortcuts found in Asana --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### My Tasks -Shortcut | Action ----|--- -`Tab` `Y` | Mark as Today in your My Tasks -`Tab` `U` | Mark as Upcoming in your My Tasks -`Tab` `L` | Mark as Later in your My Tasks -{.shortcuts} +| Shortcut | Action | +| --------- | --------------------------------- | +| `Tab` `Y` | Mark as Today in your My Tasks | +| `Tab` `U` | Mark as Upcoming in your My Tasks | +| `Tab` `L` | Mark as Later in your My Tasks | +{.shortcuts} ### Inbox -Shortcut | Action ----|--- -`K/J` | Move Up/Down -`H` | Jump to Inbox tab -`S` | Jump to Archive tab -`F` | Follow or Unfollow -`I` | Archive -`U` | Move to Inbox +| Shortcut | Action | +| -------- | ------------------- | +| `K/J` | Move Up/Down | +| `H` | Jump to Inbox tab | +| `S` | Jump to Archive tab | +| `F` | Follow or Unfollow | +| `I` | Archive | +| `U` | Move to Inbox | + {.shortcuts} +### Task Actions {.row-span-2} -### Task Actions {.row-span-2} +| Shortcut | Action | +| ------------------------ | --------------------------------------------- | +| `Enter` | New Task | +| `Tab` `Backspace` | Delete Selected Task(s) | +| `Backspace` | Delete current task (when task name is empty) | +| `Ctrl` `Enter` | Complete Selected Task(s) | +| `Ctrl` `Up/Down` | Move Up/Down | +| `Ctrl` `Shift` `Up/Down` | Jump Up/Down to the next Section | +| `Ctrl` `C` | Copy Selected Tasks | +| `Ctrl` `V` | Paste Tasks (one per line) | +| `Tab` `M` | Assign to Me | +| `Tab` `H` | Like a Selected Task | +| `:` | Create a Section (at the end of a task name) | -Shortcut | Action ----|--- -`Enter` | New Task -`Tab` `Backspace` | Delete Selected Task(s) -`Backspace` | Delete current task (when task name is empty) -`Ctrl` `Enter` | Complete Selected Task(s) -`Ctrl` `Up/Down` | Move Up/Down -`Ctrl` `Shift` `Up/Down` | Jump Up/Down to the next Section -`Ctrl` `C` | Copy Selected Tasks -`Ctrl` `V` | Paste Tasks (one per line) -`Tab` `M` | Assign to Me -`Tab` `H` | Like a Selected Task -`:` | Create a Section (at the end of a task name) {.shortcuts} - ### Navigation -Shortcut | Action ----|--- -`Tab` `Z` | Navigate to My Tasks -`Tab` `I` | Navigate to Inbox -`Tab` `C` | Comment on Selected Task -`Tab` `A` | Assign Selected Task -`Tab` `D` | Set Due Date -`Tab` `F` | Add Follower -`Tab` `T` | Add a tag to the task -`Tab` `S` | Focus Subtasks -`Tab` `/` | Search for a project, tag, person, or task -{.shortcuts} +| Shortcut | Action | +| --------- | ------------------------------------------ | +| `Tab` `Z` | Navigate to My Tasks | +| `Tab` `I` | Navigate to Inbox | +| `Tab` `C` | Comment on Selected Task | +| `Tab` `A` | Assign Selected Task | +| `Tab` `D` | Set Due Date | +| `Tab` `F` | Add Follower | +| `Tab` `T` | Add a tag to the task | +| `Tab` `S` | Focus Subtasks | +| `Tab` `/` | Search for a project, tag, person, or task | +{.shortcuts} ### Selection -Shortcut | Action ----|--- -`Up/Down` | Change Selection -`Shift` `(click)` | Select Range -`Shift` `Up/Down` | Select Range -`Ctrl` `(click)` | Multi-select Individual Task -{.shortcuts} +| Shortcut | Action | +| ----------------- | ---------------------------- | +| `Up/Down` | Change Selection | +| `Shift` `(click)` | Select Range | +| `Shift` `Up/Down` | Select Range | +| `Ctrl` `(click)` | Multi-select Individual Task | +{.shortcuts} ### Application -Shortcut | Action ----|--- -`Ctrl` `/` | Show Keyboard Shortcuts -`Tab` | Expand the right pane -`Esc` | Collapse the right pane -`Tab` `X` | Enter Focus Mode -`Tab` `Q` | Quick Add -`Tab` `Enter` | Post Comment (from comment field) -`Tab` `B` | What it sounds like +| Shortcut | Action | +| ------------- | --------------------------------- | +| `Ctrl` `/` | Show Keyboard Shortcuts | +| `Tab` | Expand the right pane | +| `Esc` | Collapse the right pane | +| `Tab` `X` | Enter Focus Mode | +| `Tab` `Q` | Quick Add | +| `Tab` `Enter` | Post Comment (from comment field) | +| `Tab` `B` | What it sounds like | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Asana](https://asana.com/guide/help/faq/shortcuts) _(asana.com)_ diff --git a/source/_posts/ascii-code.md b/source/_posts/ascii-code.md index b80bedd..d504ee6 100644 --- a/source/_posts/ascii-code.md +++ b/source/_posts/ascii-code.md @@ -2,280 +2,276 @@ title: ASCII Code date: 2023-01-05 12:44:21 tags: - - ASCII - - code - - Table + - ASCII + - code + - Table categories: - Other intro: | This cheatsheet is a complete list of ASCII Code Table with their numbers and names. --- - -ASCII Code Table {.cols-1} ---------------- - - +## ASCII Code Table {.cols-1} ### ASCII Code Table +| Symbol | Dec | Oct | Hex | Bin | +| ---------------------------------- | --- | --- | --- | -------- | +| NUL (Null) | 0 | 0 | 0 | 0 | +| SOH (Start of Heading) | 1 | 1 | 1 | 1 | +| STX (Start of Text) | 2 | 2 | 2 | 10 | +| ETX (End of Text) | 3 | 3 | 3 | 11 | +| EOT (End of Transmission) | 4 | 4 | 4 | 100 | +| ENQ (Enquiry) | 5 | 5 | 5 | 101 | +| ACK (Acknowledgment) | 6 | 6 | 6 | 110 | +| BEL (Bell) | 7 | 7 | 7 | 111 | +| BS (Back Space) | 8 | 10 | 8 | 1000 | +| HT (Horizontal Tab) | 9 | 11 | 9 | 1001 | +| LF (Line Feed) | 10 | 12 | 0A | 1010 | +| VT (Vertical Tab) | 11 | 13 | 0B | 1011 | +| FF (Form Feed) | 12 | 14 | 0C | 1100 | +| CR (Carriage Return) | 13 | 15 | 0D | 1101 | +| SO (Shift Out / X-On) | 14 | 16 | 0E | 1110 | +| SI (Shift In / X-Off) | 15 | 17 | 0F | 1111 | +| DLE (Data Line Escape) | 16 | 20 | 10 | 10000 | +| DC1 (Device Control 1 / oft. XON) | 17 | 21 | 11 | 10001 | +| DC2 (Device Control 2) | 18 | 22 | 12 | 10010 | +| DC3 (Device Control 3 / oft. XOFF) | 19 | 23 | 13 | 10011 | +| DC4 (Device Control 4) | 20 | 24 | 14 | 10100 | +| NAK (Negative Acknowledgement) | 21 | 25 | 15 | 10101 | +| SYN (Synchronous Idle) | 22 | 26 | 16 | 10110 | +| ETB (End of Transmit Block) | 23 | 27 | 17 | 10111 | +| CAN (Cancel) | 24 | 30 | 18 | 11000 | +| EM (End of Medium) | 25 | 31 | 19 | 11001 | +| SUB (Substitute) | 26 | 32 | 1A | 11010 | +| ESC (Escape) | 27 | 33 | 1B | 11011 | +| FS (File Separator) | 28 | 34 | 1C | 11100 | +| GS (Group Separator) | 29 | 35 | 1D | 11101 | +| RS (Record Separator) | 30 | 36 | 1E | 11110 | +| US (Unit Separator) | 31 | 37 | 1F | 11111 | +| (Space) | 32 | 40 | 20 | 100000 | +| ! | 33 | 41 | 21 | 100001 | +| " | 34 | 42 | 22 | 100010 | +| # | 35 | 43 | 23 | 100011 | +| $ | 36 | 44 | 24 | 100100 | +| % | 37 | 45 | 25 | 100101 | +| & | 38 | 46 | 26 | 100110 | +| ' | 39 | 47 | 27 | 100111 | +| ( | 40 | 50 | 28 | 101000 | +| ) | 41 | 51 | 29 | 101001 | +| \* | 42 | 52 | 2A | 101010 | +| + | 43 | 53 | 2B | 101011 | +| , | 44 | 54 | 2C | 101100 | +| - | 45 | 55 | 2D | 101101 | +| . | 46 | 56 | 2E | 101110 | +| / | 47 | 57 | 2F | 101111 | +| 0 | 48 | 60 | 30 | 110000 | +| 1 | 49 | 61 | 31 | 110001 | +| 2 | 50 | 62 | 32 | 110010 | +| 3 | 51 | 63 | 33 | 110011 | +| 4 | 52 | 64 | 34 | 110100 | +| 5 | 53 | 65 | 35 | 110101 | +| 6 | 54 | 66 | 36 | 110110 | +| 7 | 55 | 67 | 37 | 110111 | +| 8 | 56 | 70 | 38 | 111000 | +| 9 | 57 | 71 | 39 | 111001 | +| : | 58 | 72 | 3A | 111010 | +| ; | 59 | 73 | 3B | 111011 | +| < | 60 | 74 | 3C | 111100 | +| = | 61 | 75 | 3D | 111101 | +| > | 62 | 76 | 3E | 111110 | +| ? | 63 | 77 | 3F | 111111 | +| @ | 64 | 100 | 40 | 1000000 | +| A | 65 | 101 | 41 | 1000001 | +| B | 66 | 102 | 42 | 1000010 | +| C | 67 | 103 | 43 | 1000011 | +| D | 68 | 104 | 44 | 1000100 | +| E | 69 | 105 | 45 | 1000101 | +| F | 70 | 106 | 46 | 1000110 | +| G | 71 | 107 | 47 | 1000111 | +| H | 72 | 110 | 48 | 1001000 | +| I | 73 | 111 | 49 | 1001001 | +| J | 74 | 112 | 4A | 1001010 | +| K | 75 | 113 | 4B | 1001011 | +| L | 76 | 114 | 4C | 1001100 | +| M | 77 | 115 | 4D | 1001101 | +| N | 78 | 116 | 4E | 1001110 | +| O | 79 | 117 | 4F | 1001111 | +| P | 80 | 120 | 50 | 1010000 | +| Q | 81 | 121 | 51 | 1010001 | +| R | 82 | 122 | 52 | 1010010 | +| S | 83 | 123 | 53 | 1010011 | +| T | 84 | 124 | 54 | 1010100 | +| U | 85 | 125 | 55 | 1010101 | +| V | 86 | 126 | 56 | 1010110 | +| W | 87 | 127 | 57 | 1010111 | +| X | 88 | 130 | 58 | 1011000 | +| Y | 89 | 131 | 59 | 1011001 | +| Z | 90 | 132 | 5A | 1011010 | +| [ | 91 | 133 | 5B | 1011011 | +| \ | 92 | 134 | 5C | 1011100 | +| ] | 93 | 135 | 5D | 1011101 | +| ^ | 94 | 136 | 5E | 1011110 | +| \_ | 95 | 137 | 5F | 1011111 | +| \` | 96 | 140 | 60 | 1100000 | +| a | 97 | 141 | 61 | 1100001 | +| b | 98 | 142 | 62 | 1100010 | +| c | 99 | 143 | 63 | 1100011 | +| d | 100 | 144 | 64 | 1100100 | +| e | 101 | 145 | 65 | 1100101 | +| f | 102 | 146 | 66 | 1100110 | +| g | 103 | 147 | 67 | 1100111 | +| h | 104 | 150 | 68 | 1101000 | +| i | 105 | 151 | 69 | 1101001 | +| j | 106 | 152 | 6A | 1101010 | +| k | 107 | 153 | 6B | 1101011 | +| l | 108 | 154 | 6C | 1101100 | +| m | 109 | 155 | 6D | 1101101 | +| n | 110 | 156 | 6E | 1101110 | +| o | 111 | 157 | 6F | 1101111 | +| p | 112 | 160 | 70 | 1110000 | +| q | 113 | 161 | 71 | 1110001 | +| r | 114 | 162 | 72 | 1110010 | +| s | 115 | 163 | 73 | 1110011 | +| t | 116 | 164 | 74 | 1110100 | +| u | 117 | 165 | 75 | 1110101 | +| v | 118 | 166 | 76 | 1110110 | +| w | 119 | 167 | 77 | 1110111 | +| x | 120 | 170 | 78 | 1111000 | +| y | 121 | 171 | 79 | 1111001 | +| z | 122 | 172 | 7A | 1111010 | +| { | 123 | 173 | 7B | 1111011 | +| | 124 | 174 | 7C | 1111100 | +| } | 125 | 175 | 7D | 1111101 | +| ~ | 126 | 176 | 7E | 1111110 | +| (Delete) | 127 | 177 | 7F | 1111111 | +| € | 128 | 200 | 80 | 10000000 | +| | 129 | 201 | 81 | 10000001 | +| ‚ | 130 | 202 | 82 | 10000010 | +| ƒ | 131 | 203 | 83 | 10000011 | +| „ | 132 | 204 | 84 | 10000100 | +| … | 133 | 205 | 85 | 10000101 | +| † | 134 | 206 | 86 | 10000110 | +| ‡ | 135 | 207 | 87 | 10000111 | +| ˆ | 136 | 210 | 88 | 10001000 | +| ‰ | 137 | 211 | 89 | 10001001 | +| Š | 138 | 212 | 8A | 10001010 | +| ‹ | 139 | 213 | 8B | 10001011 | +| Œ | 140 | 214 | 8C | 10001100 | +| | 141 | 215 | 8D | 10001101 | +| Ž | 142 | 216 | 8E | 10001110 | +| | 143 | 217 | 8F | 10001111 | +| | 144 | 220 | 90 | 10010000 | +| ‘ | 145 | 221 | 91 | 10010001 | +| ’ | 146 | 222 | 92 | 10010010 | +| “ | 147 | 223 | 93 | 10010011 | +| ” | 148 | 224 | 94 | 10010100 | +| • | 149 | 225 | 95 | 10010101 | +| – | 150 | 226 | 96 | 10010110 | +| — | 151 | 227 | 97 | 10010111 | +| ˜ | 152 | 230 | 98 | 10011000 | +| ™ | 153 | 231 | 99 | 10011001 | +| š | 154 | 232 | 9A | 10011010 | +| › | 155 | 233 | 9B | 10011011 | +| œ | 156 | 234 | 9C | 10011100 | +| | 157 | 235 | 9D | 10011101 | +| ž | 158 | 236 | 9E | 10011110 | +| Ÿ | 159 | 237 | 9F | 10011111 | +| (Non-breaking space) | 160 | 240 | A0 | 10100000 | +| ¡ | 161 | 241 | A1 | 10100001 | +| ¢ | 162 | 242 | A2 | 10100010 | +| £ | 163 | 243 | A3 | 10100011 | +| ¤ | 164 | 244 | A4 | 10100100 | +| ¥ | 165 | 245 | A5 | 10100101 | +| ¦ | 166 | 246 | A6 | 10100110 | +| § | 167 | 247 | A7 | 10100111 | +| ¨ | 168 | 250 | A8 | 10101000 | +| © | 169 | 251 | A9 | 10101001 | +| ª | 170 | 252 | AA | 10101010 | +| « | 171 | 253 | AB | 10101011 | +| ¬ | 172 | 254 | AC | 10101100 | +| (Soft hyphen) | 173 | 255 | AD | 10101101 | +| ® | 174 | 256 | AE | 10101110 | +| ¯ | 175 | 257 | AF | 10101111 | +| ° | 176 | 260 | B0 | 10110000 | +| ± | 177 | 261 | B1 | 10110001 | +| ² | 178 | 262 | B2 | 10110010 | +| ³ | 179 | 263 | B3 | 10110011 | +| ´ | 180 | 264 | B4 | 10110100 | +| µ | 181 | 265 | B5 | 10110101 | +| ¶ | 182 | 266 | B6 | 10110110 | +| · | 183 | 267 | B7 | 10110111 | +| ¸ | 184 | 270 | B8 | 10111000 | +| ¹ | 185 | 271 | B9 | 10111001 | +| º | 186 | 272 | BA | 10111010 | +| » | 187 | 273 | BB | 10111011 | +| ¼ | 188 | 274 | BC | 10111100 | +| ½ | 189 | 275 | BD | 10111101 | +| ¾ | 190 | 276 | BE | 10111110 | +| ¿ | 191 | 277 | BF | 10111111 | +| À | 192 | 300 | C0 | 11000000 | +| Á | 193 | 301 | C1 | 11000001 | +|  | 194 | 302 | C2 | 11000010 | +| à | 195 | 303 | C3 | 11000011 | +| Ä | 196 | 304 | C4 | 11000100 | +| Å | 197 | 305 | C5 | 11000101 | +| Æ | 198 | 306 | C6 | 11000110 | +| Ç | 199 | 307 | C7 | 11000111 | +| È | 200 | 310 | C8 | 11001000 | +| É | 201 | 311 | C9 | 11001001 | +| Ê | 202 | 312 | CA | 11001010 | +| Ë | 203 | 313 | CB | 11001011 | +| Ì | 204 | 314 | CC | 11001100 | +| Í | 205 | 315 | CD | 11001101 | +| Î | 206 | 316 | CE | 11001110 | +| Ï | 207 | 317 | CF | 11001111 | +| Ð | 208 | 320 | D0 | 11010000 | +| Ñ | 209 | 321 | D1 | 11010001 | +| Ò | 210 | 322 | D2 | 11010010 | +| Ó | 211 | 323 | D3 | 11010011 | +| Ô | 212 | 324 | D4 | 11010100 | +| Õ | 213 | 325 | D5 | 11010101 | +| Ö | 214 | 326 | D6 | 11010110 | +| × | 215 | 327 | D7 | 11010111 | +| Ø | 216 | 330 | D8 | 11011000 | +| Ù | 217 | 331 | D9 | 11011001 | +| Ú | 218 | 332 | DA | 11011010 | +| Û | 219 | 333 | DB | 11011011 | +| Ü | 220 | 334 | DC | 11011100 | +| Ý | 221 | 335 | DD | 11011101 | +| Þ | 222 | 336 | DE | 11011110 | +| ß | 223 | 337 | DF | 11011111 | +| à | 224 | 340 | E0 | 11100000 | +| á | 225 | 341 | E1 | 11100001 | +| â | 226 | 342 | E2 | 11100010 | +| ã | 227 | 343 | E3 | 11100011 | +| ä | 228 | 344 | E4 | 11100100 | +| å | 229 | 345 | E5 | 11100101 | +| æ | 230 | 346 | E6 | 11100110 | +| ç | 231 | 347 | E7 | 11100111 | +| è | 232 | 350 | E8 | 11101000 | +| é | 233 | 351 | E9 | 11101001 | +| ê | 234 | 352 | EA | 11101010 | +| ë | 235 | 353 | EB | 11101011 | +| ì | 236 | 354 | EC | 11101100 | +| í | 237 | 355 | ED | 11101101 | +| î | 238 | 356 | EE | 11101110 | +| ï | 239 | 357 | EF | 11101111 | +| ð | 240 | 360 | F0 | 11110000 | +| ñ | 241 | 361 | F1 | 11110001 | +| ò | 242 | 362 | F2 | 11110010 | +| ó | 243 | 363 | F3 | 11110011 | +| ô | 244 | 364 | F4 | 11110100 | +| õ | 245 | 365 | F5 | 11110101 | +| ö | 246 | 366 | F6 | 11110110 | +| ÷ | 247 | 367 | F7 | 11110111 | +| ø | 248 | 370 | F8 | 11111000 | +| ù | 249 | 371 | F9 | 11111001 | +| ú | 250 | 372 | FA | 11111010 | +| û | 251 | 373 | FB | 11111011 | +| ü | 252 | 374 | FC | 11111100 | +| ý | 253 | 375 | FD | 11111101 | +| þ | 254 | 376 | FE | 11111110 | +| ÿ | 255 | 377 | FF | 11111111 | -| Symbol | Dec | Oct | Hex | Bin | -|------------------------------------|------|------|------|----------| -| NUL (Null) | 0 | 0 | 0 | 0 | -| SOH (Start of Heading) | 1 | 1 | 1 | 1 | -| STX (Start of Text) | 2 | 2 | 2 | 10 | -| ETX (End of Text) | 3 | 3 | 3 | 11 | -| EOT (End of Transmission) | 4 | 4 | 4 | 100 | -| ENQ (Enquiry) | 5 | 5 | 5 | 101 | -| ACK (Acknowledgment) | 6 | 6 | 6 | 110 | -| BEL (Bell) | 7 | 7 | 7 | 111 | -| BS (Back Space) | 8 | 10 | 8 | 1000 | -| HT (Horizontal Tab) | 9 | 11 | 9 | 1001 | -| LF (Line Feed) | 10 | 12 | 0A | 1010 | -| VT (Vertical Tab) | 11 | 13 | 0B | 1011 | -| FF (Form Feed) | 12 | 14 | 0C | 1100 | -| CR (Carriage Return) | 13 | 15 | 0D | 1101 | -| SO (Shift Out / X-On) | 14 | 16 | 0E | 1110 | -| SI (Shift In / X-Off) | 15 | 17 | 0F | 1111 | -| DLE (Data Line Escape) | 16 | 20 | 10 | 10000 | -| DC1 (Device Control 1 / oft. XON) | 17 | 21 | 11 | 10001 | -| DC2 (Device Control 2) | 18 | 22 | 12 | 10010 | -| DC3 (Device Control 3 / oft. XOFF) | 19 | 23 | 13 | 10011 | -| DC4 (Device Control 4) | 20 | 24 | 14 | 10100 | -| NAK (Negative Acknowledgement) | 21 | 25 | 15 | 10101 | -| SYN (Synchronous Idle) | 22 | 26 | 16 | 10110 | -| ETB (End of Transmit Block) | 23 | 27 | 17 | 10111 | -| CAN (Cancel) | 24 | 30 | 18 | 11000 | -| EM (End of Medium) | 25 | 31 | 19 | 11001 | -| SUB (Substitute) | 26 | 32 | 1A | 11010 | -| ESC (Escape) | 27 | 33 | 1B | 11011 | -| FS (File Separator) | 28 | 34 | 1C | 11100 | -| GS (Group Separator) | 29 | 35 | 1D | 11101 | -| RS (Record Separator) | 30 | 36 | 1E | 11110 | -| US (Unit Separator) | 31 | 37 | 1F | 11111 | -| (Space) | 32 | 40 | 20 | 100000 | -| ! | 33 | 41 | 21 | 100001 | -| " | 34 | 42 | 22 | 100010 | -| # | 35 | 43 | 23 | 100011 | -| $ | 36 | 44 | 24 | 100100 | -| % | 37 | 45 | 25 | 100101 | -| & | 38 | 46 | 26 | 100110 | -| ' | 39 | 47 | 27 | 100111 | -| ( | 40 | 50 | 28 | 101000 | -| ) | 41 | 51 | 29 | 101001 | -| * | 42 | 52 | 2A | 101010 | -| + | 43 | 53 | 2B | 101011 | -| , | 44 | 54 | 2C | 101100 | -| - | 45 | 55 | 2D | 101101 | -| . | 46 | 56 | 2E | 101110 | -| / | 47 | 57 | 2F | 101111 | -| 0 | 48 | 60 | 30 | 110000 | -| 1 | 49 | 61 | 31 | 110001 | -| 2 | 50 | 62 | 32 | 110010 | -| 3 | 51 | 63 | 33 | 110011 | -| 4 | 52 | 64 | 34 | 110100 | -| 5 | 53 | 65 | 35 | 110101 | -| 6 | 54 | 66 | 36 | 110110 | -| 7 | 55 | 67 | 37 | 110111 | -| 8 | 56 | 70 | 38 | 111000 | -| 9 | 57 | 71 | 39 | 111001 | -| : | 58 | 72 | 3A | 111010 | -| ; | 59 | 73 | 3B | 111011 | -| < | 60 | 74 | 3C | 111100 | -| = | 61 | 75 | 3D | 111101 | -| > | 62 | 76 | 3E | 111110 | -| ? | 63 | 77 | 3F | 111111 | -| @ | 64 | 100 | 40 | 1000000 | -| A | 65 | 101 | 41 | 1000001 | -| B | 66 | 102 | 42 | 1000010 | -| C | 67 | 103 | 43 | 1000011 | -| D | 68 | 104 | 44 | 1000100 | -| E | 69 | 105 | 45 | 1000101 | -| F | 70 | 106 | 46 | 1000110 | -| G | 71 | 107 | 47 | 1000111 | -| H | 72 | 110 | 48 | 1001000 | -| I | 73 | 111 | 49 | 1001001 | -| J | 74 | 112 | 4A | 1001010 | -| K | 75 | 113 | 4B | 1001011 | -| L | 76 | 114 | 4C | 1001100 | -| M | 77 | 115 | 4D | 1001101 | -| N | 78 | 116 | 4E | 1001110 | -| O | 79 | 117 | 4F | 1001111 | -| P | 80 | 120 | 50 | 1010000 | -| Q | 81 | 121 | 51 | 1010001 | -| R | 82 | 122 | 52 | 1010010 | -| S | 83 | 123 | 53 | 1010011 | -| T | 84 | 124 | 54 | 1010100 | -| U | 85 | 125 | 55 | 1010101 | -| V | 86 | 126 | 56 | 1010110 | -| W | 87 | 127 | 57 | 1010111 | -| X | 88 | 130 | 58 | 1011000 | -| Y | 89 | 131 | 59 | 1011001 | -| Z | 90 | 132 | 5A | 1011010 | -| [ | 91 | 133 | 5B | 1011011 | -| \ | 92 | 134 | 5C | 1011100 | -| ] | 93 | 135 | 5D | 1011101 | -| ^ | 94 | 136 | 5E | 1011110 | -| _ | 95 | 137 | 5F | 1011111 | -| \` | 96 | 140 | 60 | 1100000 | -| a | 97 | 141 | 61 | 1100001 | -| b | 98 | 142 | 62 | 1100010 | -| c | 99 | 143 | 63 | 1100011 | -| d | 100 | 144 | 64 | 1100100 | -| e | 101 | 145 | 65 | 1100101 | -| f | 102 | 146 | 66 | 1100110 | -| g | 103 | 147 | 67 | 1100111 | -| h | 104 | 150 | 68 | 1101000 | -| i | 105 | 151 | 69 | 1101001 | -| j | 106 | 152 | 6A | 1101010 | -| k | 107 | 153 | 6B | 1101011 | -| l | 108 | 154 | 6C | 1101100 | -| m | 109 | 155 | 6D | 1101101 | -| n | 110 | 156 | 6E | 1101110 | -| o | 111 | 157 | 6F | 1101111 | -| p | 112 | 160 | 70 | 1110000 | -| q | 113 | 161 | 71 | 1110001 | -| r | 114 | 162 | 72 | 1110010 | -| s | 115 | 163 | 73 | 1110011 | -| t | 116 | 164 | 74 | 1110100 | -| u | 117 | 165 | 75 | 1110101 | -| v | 118 | 166 | 76 | 1110110 | -| w | 119 | 167 | 77 | 1110111 | -| x | 120 | 170 | 78 | 1111000 | -| y | 121 | 171 | 79 | 1111001 | -| z | 122 | 172 | 7A | 1111010 | -| { | 123 | 173 | 7B | 1111011 | -| | 124 | 174 | 7C | 1111100 | -| } | 125 | 175 | 7D | 1111101 | -| ~ | 126 | 176 | 7E | 1111110 | -| (Delete) | 127 | 177 | 7F | 1111111 | -| € | 128 | 200 | 80 | 10000000 | -| | 129 | 201 | 81 | 10000001 | -| ‚ | 130 | 202 | 82 | 10000010 | -| ƒ | 131 | 203 | 83 | 10000011 | -| „ | 132 | 204 | 84 | 10000100 | -| … | 133 | 205 | 85 | 10000101 | -| † | 134 | 206 | 86 | 10000110 | -| ‡ | 135 | 207 | 87 | 10000111 | -| ˆ | 136 | 210 | 88 | 10001000 | -| ‰ | 137 | 211 | 89 | 10001001 | -| Š | 138 | 212 | 8A | 10001010 | -| ‹ | 139 | 213 | 8B | 10001011 | -| Œ | 140 | 214 | 8C | 10001100 | -| | 141 | 215 | 8D | 10001101 | -| Ž | 142 | 216 | 8E | 10001110 | -| | 143 | 217 | 8F | 10001111 | -| | 144 | 220 | 90 | 10010000 | -| ‘ | 145 | 221 | 91 | 10010001 | -| ’ | 146 | 222 | 92 | 10010010 | -| “ | 147 | 223 | 93 | 10010011 | -| ” | 148 | 224 | 94 | 10010100 | -| • | 149 | 225 | 95 | 10010101 | -| – | 150 | 226 | 96 | 10010110 | -| — | 151 | 227 | 97 | 10010111 | -| ˜ | 152 | 230 | 98 | 10011000 | -| ™ | 153 | 231 | 99 | 10011001 | -| š | 154 | 232 | 9A | 10011010 | -| › | 155 | 233 | 9B | 10011011 | -| œ | 156 | 234 | 9C | 10011100 | -| | 157 | 235 | 9D | 10011101 | -| ž | 158 | 236 | 9E | 10011110 | -| Ÿ | 159 | 237 | 9F | 10011111 | -| (Non-breaking space) | 160 | 240 | A0 | 10100000 | -| ¡ | 161 | 241 | A1 | 10100001 | -| ¢ | 162 | 242 | A2 | 10100010 | -| £ | 163 | 243 | A3 | 10100011 | -| ¤ | 164 | 244 | A4 | 10100100 | -| ¥ | 165 | 245 | A5 | 10100101 | -| ¦ | 166 | 246 | A6 | 10100110 | -| § | 167 | 247 | A7 | 10100111 | -| ¨ | 168 | 250 | A8 | 10101000 | -| © | 169 | 251 | A9 | 10101001 | -| ª | 170 | 252 | AA | 10101010 | -| « | 171 | 253 | AB | 10101011 | -| ¬ | 172 | 254 | AC | 10101100 | -| (Soft hyphen) | 173 | 255 | AD | 10101101 | -| ® | 174 | 256 | AE | 10101110 | -| ¯ | 175 | 257 | AF | 10101111 | -| ° | 176 | 260 | B0 | 10110000 | -| ± | 177 | 261 | B1 | 10110001 | -| ² | 178 | 262 | B2 | 10110010 | -| ³ | 179 | 263 | B3 | 10110011 | -| ´ | 180 | 264 | B4 | 10110100 | -| µ | 181 | 265 | B5 | 10110101 | -| ¶ | 182 | 266 | B6 | 10110110 | -| · | 183 | 267 | B7 | 10110111 | -| ¸ | 184 | 270 | B8 | 10111000 | -| ¹ | 185 | 271 | B9 | 10111001 | -| º | 186 | 272 | BA | 10111010 | -| » | 187 | 273 | BB | 10111011 | -| ¼ | 188 | 274 | BC | 10111100 | -| ½ | 189 | 275 | BD | 10111101 | -| ¾ | 190 | 276 | BE | 10111110 | -| ¿ | 191 | 277 | BF | 10111111 | -| À | 192 | 300 | C0 | 11000000 | -| Á | 193 | 301 | C1 | 11000001 | -|  | 194 | 302 | C2 | 11000010 | -| à | 195 | 303 | C3 | 11000011 | -| Ä | 196 | 304 | C4 | 11000100 | -| Å | 197 | 305 | C5 | 11000101 | -| Æ | 198 | 306 | C6 | 11000110 | -| Ç | 199 | 307 | C7 | 11000111 | -| È | 200 | 310 | C8 | 11001000 | -| É | 201 | 311 | C9 | 11001001 | -| Ê | 202 | 312 | CA | 11001010 | -| Ë | 203 | 313 | CB | 11001011 | -| Ì | 204 | 314 | CC | 11001100 | -| Í | 205 | 315 | CD | 11001101 | -| Î | 206 | 316 | CE | 11001110 | -| Ï | 207 | 317 | CF | 11001111 | -| Ð | 208 | 320 | D0 | 11010000 | -| Ñ | 209 | 321 | D1 | 11010001 | -| Ò | 210 | 322 | D2 | 11010010 | -| Ó | 211 | 323 | D3 | 11010011 | -| Ô | 212 | 324 | D4 | 11010100 | -| Õ | 213 | 325 | D5 | 11010101 | -| Ö | 214 | 326 | D6 | 11010110 | -| × | 215 | 327 | D7 | 11010111 | -| Ø | 216 | 330 | D8 | 11011000 | -| Ù | 217 | 331 | D9 | 11011001 | -| Ú | 218 | 332 | DA | 11011010 | -| Û | 219 | 333 | DB | 11011011 | -| Ü | 220 | 334 | DC | 11011100 | -| Ý | 221 | 335 | DD | 11011101 | -| Þ | 222 | 336 | DE | 11011110 | -| ß | 223 | 337 | DF | 11011111 | -| à | 224 | 340 | E0 | 11100000 | -| á | 225 | 341 | E1 | 11100001 | -| â | 226 | 342 | E2 | 11100010 | -| ã | 227 | 343 | E3 | 11100011 | -| ä | 228 | 344 | E4 | 11100100 | -| å | 229 | 345 | E5 | 11100101 | -| æ | 230 | 346 | E6 | 11100110 | -| ç | 231 | 347 | E7 | 11100111 | -| è | 232 | 350 | E8 | 11101000 | -| é | 233 | 351 | E9 | 11101001 | -| ê | 234 | 352 | EA | 11101010 | -| ë | 235 | 353 | EB | 11101011 | -| ì | 236 | 354 | EC | 11101100 | -| í | 237 | 355 | ED | 11101101 | -| î | 238 | 356 | EE | 11101110 | -| ï | 239 | 357 | EF | 11101111 | -| ð | 240 | 360 | F0 | 11110000 | -| ñ | 241 | 361 | F1 | 11110001 | -| ò | 242 | 362 | F2 | 11110010 | -| ó | 243 | 363 | F3 | 11110011 | -| ô | 244 | 364 | F4 | 11110100 | -| õ | 245 | 365 | F5 | 11110101 | -| ö | 246 | 366 | F6 | 11110110 | -| ÷ | 247 | 367 | F7 | 11110111 | -| ø | 248 | 370 | F8 | 11111000 | -| ù | 249 | 371 | F9 | 11111001 | -| ú | 250 | 372 | FA | 11111010 | -| û | 251 | 373 | FB | 11111011 | -| ü | 252 | 374 | FC | 11111100 | -| ý | 253 | 375 | FD | 11111101 | -| þ | 254 | 376 | FE | 11111110 | -| ÿ | 255 | 377 | FF | 11111111 | {.show-header} diff --git a/source/_posts/audacity.md b/source/_posts/audacity.md index ec4bcea..0ba5e0b 100644 --- a/source/_posts/audacity.md +++ b/source/_posts/audacity.md @@ -2,220 +2,210 @@ title: Audacity date: 2022-11-23 16:23:31.701833 background: bg-[#0000e1] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 135 default keyboard shortcuts found in Audacity + A visual cheat-sheet for the 135 default keyboard shortcuts found in Audacity --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### File Menu -Shortcut | Action ----|--- -`Ctrl` `N` | New -`Ctrl` `O` | Open -`Ctrl` `W` | Close -`Ctrl` `Q` | Exit -`Ctrl` `S` | Save project -`Ctrl` `Shift` `E` | Export audio -`Ctrl` `Shift` `L` | Export multiple -`Ctrl` `Shift` `I` | Import audio -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------- | +| `Ctrl` `N` | New | +| `Ctrl` `O` | Open | +| `Ctrl` `W` | Close | +| `Ctrl` `Q` | Exit | +| `Ctrl` `S` | Save project | +| `Ctrl` `Shift` `E` | Export audio | +| `Ctrl` `Shift` `L` | Export multiple | +| `Ctrl` `Shift` `I` | Import audio | +{.shortcuts} ### Edit Menu -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo -`Ctrl` `Y` | Redo -`Ctrl` `X` | Cut -`Ctrl` `K` | Delete -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `D` | Duplicate -`Ctrl` `P` | Preferences -`Ctrl` `Alt` `X` | Split cut -`Ctrl` `Alt` `K` | Split delete -`Ctrl` `L` | Silence audio -`Ctrl` `T` | Trim audio -`Ctrl` `Alt` `I` | Split new -`Ctrl` `J` | Join -`Ctrl` `Shift` `J` | Detach at silences -`Ctrl` `B` | Add label at selection -`Ctrl` `M` | Add label at playback position -`Ctrl` `Alt` `V` | Paste text to new label -`Alt` `X` | Cut labeled audio -`Alt` `K` | Delete labeled audio -`Alt` `Shift` `X` | Split cut labeled audio -`Alt` `Shift` `K` | Split delete labeled audio -`Alt` `L` | Silence labeled audio -`Alt` `Shift` `C` | Copy labeled audio -`Alt` `I` | Split labeled audio -`Alt` `J` | Join labeled audio -`Alt` `Shift` `J` | Detach labeled audio at silences +| Shortcut | Action | +| ------------------ | -------------------------------- | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Y` | Redo | +| `Ctrl` `X` | Cut | +| `Ctrl` `K` | Delete | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `D` | Duplicate | +| `Ctrl` `P` | Preferences | +| `Ctrl` `Alt` `X` | Split cut | +| `Ctrl` `Alt` `K` | Split delete | +| `Ctrl` `L` | Silence audio | +| `Ctrl` `T` | Trim audio | +| `Ctrl` `Alt` `I` | Split new | +| `Ctrl` `J` | Join | +| `Ctrl` `Shift` `J` | Detach at silences | +| `Ctrl` `B` | Add label at selection | +| `Ctrl` `M` | Add label at playback position | +| `Ctrl` `Alt` `V` | Paste text to new label | +| `Alt` `X` | Cut labeled audio | +| `Alt` `K` | Delete labeled audio | +| `Alt` `Shift` `X` | Split cut labeled audio | +| `Alt` `Shift` `K` | Split delete labeled audio | +| `Alt` `L` | Silence labeled audio | +| `Alt` `Shift` `C` | Copy labeled audio | +| `Alt` `I` | Split labeled audio | +| `Alt` `J` | Join labeled audio | +| `Alt` `Shift` `J` | Detach labeled audio at silences | + {.shortcuts} - - - ### Extra Menu {.row-span-4} -Shortcut | Action ----|--- -`F11` | Toggle full screen -`1` | Play one second -`B` | Play to selection -`Shift` `F5` | Play before selection start -`Shift` `F6` | Play after selection start -`Shift` `F7` | Play before selection end -`Shift` `F8` | Play after selection end -`Ctrl` `Shift` `F5` | Play before and after selection start -`Ctrl` `Shift` `F7` | Play before and after selection end -`C` | Play cut preview -`F1` | Selection tool -`F2` | Envelope tool -`F3` | Draw tool -`F4` | Zoom tool -`F5` | Time shift tool -`F6` | Multi tool -`A` | Previous tool -`D` | Next tool -`Backspace` | Delete -`Alt` `Left` | Move to previous label -`Alt` `Right` | Move to next label -`Left` | Short seek left during playback -`Right` | Short seek right during playback -`Shift` `Left` | Long seek left during playback -`Shift` `Right` | Long seek right during playback -`Shift` `I` | Change recording device -`Shift` `O` | Change playback device -`Shift` `H` | Change audio host -`Shift` `N` | Change recording channels -`Shift` `Home` | Selection to start -`Shift` `End` | Selection to end -`Shift` `Left` | Selection extend left -`Shift` `Right` | Selection extend right -`Ctrl` `Shift` `Right` | Selection contract left -`Ctrl` `Shift` `Left` | Selection contract right -`Ctrl` `Shift` `F6` | Move backwards from toolbars to tracks -`Ctrl` `F6` | Move forward from toolbars to tracks -`Up` | Move focus to previous track -`Down` | Move focus to next track -`Ctrl` `Home` | Move focus to first track -`Ctrl` `End` | Move focus to last track -`Shift` `Up` | Move focus to previous and select -`Shift` `Down` | Move focus to next and select -`Enter` | Toggle focused track -`Left` | Cursor left -`Right` | Cursor right -`,` | Cursor short jump left -`.` | Cursor short jump right -`Shift` `,` | Cursor long jump left -`Shift` `.` | Cursor long jump right -`Shift` `P` | Change pan on focused track -`Alt` `Shift` `Left` | Pan left on focused track -`Alt` `Shift` `Right` | Pan right on focused track -`Shift` `G` | Change gain on focused track -`Alt` `Shift` `Up` | Increase gain on focused track -`Alt` `Shift` `Down` | Decrease gain on focused track -`Shift` `U` | Mute or unmute focused track -`Shift` `S` | Solo or unsolo focused track -`Shift` `C` | Close focused track +| Shortcut | Action | +| ---------------------- | -------------------------------------- | +| `F11` | Toggle full screen | +| `1` | Play one second | +| `B` | Play to selection | +| `Shift` `F5` | Play before selection start | +| `Shift` `F6` | Play after selection start | +| `Shift` `F7` | Play before selection end | +| `Shift` `F8` | Play after selection end | +| `Ctrl` `Shift` `F5` | Play before and after selection start | +| `Ctrl` `Shift` `F7` | Play before and after selection end | +| `C` | Play cut preview | +| `F1` | Selection tool | +| `F2` | Envelope tool | +| `F3` | Draw tool | +| `F4` | Zoom tool | +| `F5` | Time shift tool | +| `F6` | Multi tool | +| `A` | Previous tool | +| `D` | Next tool | +| `Backspace` | Delete | +| `Alt` `Left` | Move to previous label | +| `Alt` `Right` | Move to next label | +| `Left` | Short seek left during playback | +| `Right` | Short seek right during playback | +| `Shift` `Left` | Long seek left during playback | +| `Shift` `Right` | Long seek right during playback | +| `Shift` `I` | Change recording device | +| `Shift` `O` | Change playback device | +| `Shift` `H` | Change audio host | +| `Shift` `N` | Change recording channels | +| `Shift` `Home` | Selection to start | +| `Shift` `End` | Selection to end | +| `Shift` `Left` | Selection extend left | +| `Shift` `Right` | Selection extend right | +| `Ctrl` `Shift` `Right` | Selection contract left | +| `Ctrl` `Shift` `Left` | Selection contract right | +| `Ctrl` `Shift` `F6` | Move backwards from toolbars to tracks | +| `Ctrl` `F6` | Move forward from toolbars to tracks | +| `Up` | Move focus to previous track | +| `Down` | Move focus to next track | +| `Ctrl` `Home` | Move focus to first track | +| `Ctrl` `End` | Move focus to last track | +| `Shift` `Up` | Move focus to previous and select | +| `Shift` `Down` | Move focus to next and select | +| `Enter` | Toggle focused track | +| `Left` | Cursor left | +| `Right` | Cursor right | +| `,` | Cursor short jump left | +| `.` | Cursor short jump right | +| `Shift` `,` | Cursor long jump left | +| `Shift` `.` | Cursor long jump right | +| `Shift` `P` | Change pan on focused track | +| `Alt` `Shift` `Left` | Pan left on focused track | +| `Alt` `Shift` `Right` | Pan right on focused track | +| `Shift` `G` | Change gain on focused track | +| `Alt` `Shift` `Up` | Increase gain on focused track | +| `Alt` `Shift` `Down` | Decrease gain on focused track | +| `Shift` `U` | Mute or unmute focused track | +| `Shift` `S` | Solo or unsolo focused track | +| `Shift` `C` | Close focused track | + {.shortcuts} - - - - ### Select Menu -Shortcut | Action ----|--- -`Ctrl` `A` | Select all -`Ctrl` `Shift` `A` | Select none -`Z` | Select at zero crossings -`Ctrl` `Shift` `K` | Select in all tracks -`Ctrl` `Shift` `Y` | Select in all sync-locked tracks -`[` | Left at playback position -`]` | Right at playback position -`Shift` `J` | Track start to cursor -`Shift` `K` | Cursor to track end -`Q` | Toggle spectral selection -`Ctrl` `Alt` `P` | Previous clip -`Ctrl` `Alt` `N` | Next clip -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------------------------- | +| `Ctrl` `A` | Select all | +| `Ctrl` `Shift` `A` | Select none | +| `Z` | Select at zero crossings | +| `Ctrl` `Shift` `K` | Select in all tracks | +| `Ctrl` `Shift` `Y` | Select in all sync-locked tracks | +| `[` | Left at playback position | +| `]` | Right at playback position | +| `Shift` `J` | Track start to cursor | +| `Shift` `K` | Cursor to track end | +| `Q` | Toggle spectral selection | +| `Ctrl` `Alt` `P` | Previous clip | +| `Ctrl` `Alt` `N` | Next clip | +{.shortcuts} ### View Menu -Shortcut | Action ----|--- -`Ctrl` `1` | Zoom in -`Ctrl` `2` | Zoom normal -`Ctrl` `3` | Zoom out -`Ctrl` `E` | Zoom to selection -`Shift` `Z` | Zoom toggle -`Ctrl` `F` | Fit to width -`Ctrl` `Shift` `F` | Fit to height -`Ctrl` `Shift` `C` | Collapse all tracks -`Ctrl` `Shift` `X` | Expand collapsed tracks -`Ctrl` `[` | Skip to selection start -`Ctrl` `]` | Skip to selection end -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------- | +| `Ctrl` `1` | Zoom in | +| `Ctrl` `2` | Zoom normal | +| `Ctrl` `3` | Zoom out | +| `Ctrl` `E` | Zoom to selection | +| `Shift` `Z` | Zoom toggle | +| `Ctrl` `F` | Fit to width | +| `Ctrl` `Shift` `F` | Fit to height | +| `Ctrl` `Shift` `C` | Collapse all tracks | +| `Ctrl` `Shift` `X` | Expand collapsed tracks | +| `Ctrl` `[` | Skip to selection start | +| `Ctrl` `]` | Skip to selection end | +{.shortcuts} ### Transport Menu -Shortcut | Action ----|--- -`Space` | Play or stop -`X` | Play or stop and set cursor -`Shift` `Space` | Loop play -`P` | Pause -`R` | Record -`Shift` `R` | Record new track -`Shift` `T` | Timer record... -`Shift` `D` | Punch and roll record -`P` | Pause -`J` | Cursor to track start -`K` | Cursor to track end -`Home` | Cursor to project start -`End` | Cursor to project end -{.shortcuts} +| Shortcut | Action | +| --------------- | --------------------------- | +| `Space` | Play or stop | +| `X` | Play or stop and set cursor | +| `Shift` `Space` | Loop play | +| `P` | Pause | +| `R` | Record | +| `Shift` `R` | Record new track | +| `Shift` `T` | Timer record... | +| `Shift` `D` | Punch and roll record | +| `P` | Pause | +| `J` | Cursor to track start | +| `K` | Cursor to track end | +| `Home` | Cursor to project start | +| `End` | Cursor to project end | +{.shortcuts} ### Tracks Menu -Shortcut | Action ----|--- -`Ctrl` `Shift` `N` | Add new mono track -`Ctrl` `Shift` `M` | Mix and render to new track -`Ctrl` `U` | Mute all tracks -`Ctrl` `Shift` `U` | Unmute all tracks -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------------------- | +| `Ctrl` `Shift` `N` | Add new mono track | +| `Ctrl` `Shift` `M` | Mix and render to new track | +| `Ctrl` `U` | Mute all tracks | +| `Ctrl` `Shift` `U` | Unmute all tracks | +{.shortcuts} ### Effect Menu -Shortcut | Action ----|--- -`Ctrl` `R` | Repeat last effect +| Shortcut | Action | +| ---------- | ------------------ | +| `Ctrl` `R` | Repeat last effect | + {.shortcuts} +## Also see - -Also see --------- -- [Keyboard shortcuts for Audacity](https://manual.audacityteam.org/man/keyboard_shortcut_reference.html) _(manual.audacityteam.org)_ +- [Keyboard shortcuts for Audacity](https://manual.audacityteam.org/man/keyboard_shortcut_reference.html) + _(manual.audacityteam.org)_ diff --git a/source/_posts/bear-notes.md b/source/_posts/bear-notes.md index b4ad8e8..eb021dd 100644 --- a/source/_posts/bear-notes.md +++ b/source/_posts/bear-notes.md @@ -3,168 +3,160 @@ title: Bear date: 2022-11-23 16:23:31.705436 background: bg-[#cd5654] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 66 keyboard shortcuts found in Bear. This application is MacOS-only. + A visual cheat-sheet for the 66 keyboard shortcuts found in Bear. This application is MacOS-only. --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Text Styles {.row-span-3} -Shortcut | Action ----|--- -`Option` `Cmd` `1-6` | Headings -`Option` `Cmd` `S` | Line separator -`Cmd` `B` | Bold -`Cmd` `I` | Italic -`Cmd` `U` | Underline -`Shift` `Cmd` `E` | Strikethrough -`Cmd` `K` | Link -`Cmd` `L` | Unordered list -`Shift` `Cmd` `L` | Ordered list -`Shift` `Cmd` `U` | Quote -`Cmd` `T` | Todo -`Option` `Cmd` `C` | Inline code -`Ctrl` `Option` `C` | Code block -`Shift` `Cmd` `M` | Marker/Highlighter -`Shift` `Cmd` `V` | Insert file -{.shortcuts} +| Shortcut | Action | +| -------------------- | ------------------ | +| `Option` `Cmd` `1-6` | Headings | +| `Option` `Cmd` `S` | Line separator | +| `Cmd` `B` | Bold | +| `Cmd` `I` | Italic | +| `Cmd` `U` | Underline | +| `Shift` `Cmd` `E` | Strikethrough | +| `Cmd` `K` | Link | +| `Cmd` `L` | Unordered list | +| `Shift` `Cmd` `L` | Ordered list | +| `Shift` `Cmd` `U` | Quote | +| `Cmd` `T` | Todo | +| `Option` `Cmd` `C` | Inline code | +| `Ctrl` `Option` `C` | Code block | +| `Shift` `Cmd` `M` | Marker/Highlighter | +| `Shift` `Cmd` `V` | Insert file | +{.shortcuts} ### Todos -Shortcut | Action ----|--- -`Shift` `Cmd` `T` | Toggle Todo -`Option` `Cmd` `T` | Mark Todo as completed -`Ctrl` `Cmd` `T` | Mark Todo as incomplete -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------- | +| `Shift` `Cmd` `T` | Toggle Todo | +| `Option` `Cmd` `T` | Mark Todo as completed | +| `Ctrl` `Cmd` `T` | Mark Todo as incomplete | +{.shortcuts} ### Structure -Shortcut | Action ----|--- -`Cmd` `]` | Shift line right -`Cmd` `[` | Shift line left -`Cmd` `Option` `Up` | Move line up -`Cmd` `Option` `Down` | Move line down -{.shortcuts} +| Shortcut | Action | +| --------------------- | ---------------- | +| `Cmd` `]` | Shift line right | +| `Cmd` `[` | Shift line left | +| `Cmd` `Option` `Up` | Move line up | +| `Cmd` `Option` `Down` | Move line down | +{.shortcuts} ### Lists -Shortcut | Action ----|--- -`Tab` | Shift the list element right -`Shift` `Tab` | Shift the list element left -`Shift` `Enter` | End the list -{.shortcuts} +| Shortcut | Action | +| --------------- | ---------------------------- | +| `Tab` | Shift the list element right | +| `Shift` `Tab` | Shift the list element left | +| `Shift` `Enter` | End the list | +{.shortcuts} ### Dates -Shortcut | Action ----|--- -`Shift` `Cmd` `7` | Long Form Date with time (11 Jul 2017, 10:43) -`Shift` `Cmd` `8` | Long Form Date (11 Jul 2017) -`Shift` `Cmd` `9` | Short Form Date (11/07/2017) -`Shift` `Cmd` `0` | Hours (11:43) -{.shortcuts} +| Shortcut | Action | +| ----------------- | --------------------------------------------- | +| `Shift` `Cmd` `7` | Long Form Date with time (11 Jul 2017, 10:43) | +| `Shift` `Cmd` `8` | Long Form Date (11 Jul 2017) | +| `Shift` `Cmd` `9` | Short Form Date (11/07/2017) | +| `Shift` `Cmd` `0` | Hours (11:43) | +{.shortcuts} ### Control -Shortcut | Action ----|--- -`Cmd` `A` | Select all -`Cmd` `Enter` | End editing -`Cmd` `P` | Print note -{.shortcuts} +| Shortcut | Action | +| ------------- | ----------- | +| `Cmd` `A` | Select all | +| `Cmd` `Enter` | End editing | +| `Cmd` `P` | Print note | +{.shortcuts} ### Zoom -Shortcut | Action ----|--- -`Cmd` `+` | Zoom in -`Cmd` `-` | Zoom out -`Cmd` `0` | Actual size +| Shortcut | Action | +| --------- | ----------- | +| `Cmd` `+` | Zoom in | +| `Cmd` `-` | Zoom out | +| `Cmd` `0` | Actual size | + {.shortcuts} - - ### Navigation {.row-span-2} -Shortcut | Action ----|--- -`Cmd` `N` | Create a new note -`Option` `Cmd` `N` | Create a new note in a new window -`Up/Down` | Move the selection in the note and tags list -`Left/Right` | Move the selection between the sidebar, the nost list, and the editor -`Enter` | Edit the selected note -`Option` `Cmd` `F` | Search in the current note list -`Cmd` `Backspace` | Delete selected note -`Shift` `Cmd` `R` | Restore selected note -`Shift` `Cmd` `P` | Pin/unpin selected note -`Cmd` `A` | Select all the notes in the list -`Shift` `Cmd` `Backspace` | Empty Trash -`Cmd` `1` | Select Notes in the sidebar -`Cmd` `2` | Select Untagged in the sidebar -`Cmd` `3` | Select ToDo in the sidebar -`Cmd` `4` | Select Today in the sidebar -`Cmd` `5` | Select Archive in the sidebar -`Cmd` `6` | Select Trash in the sidebar -`Option` `Cmd` `Left` | Navigate back in visualized notes history -`Option` `Cmd` `Right` | Navigate forward in visualized notes history -{.shortcuts} +| Shortcut | Action | +| ------------------------- | --------------------------------------------------------------------- | +| `Cmd` `N` | Create a new note | +| `Option` `Cmd` `N` | Create a new note in a new window | +| `Up/Down` | Move the selection in the note and tags list | +| `Left/Right` | Move the selection between the sidebar, the nost list, and the editor | +| `Enter` | Edit the selected note | +| `Option` `Cmd` `F` | Search in the current note list | +| `Cmd` `Backspace` | Delete selected note | +| `Shift` `Cmd` `R` | Restore selected note | +| `Shift` `Cmd` `P` | Pin/unpin selected note | +| `Cmd` `A` | Select all the notes in the list | +| `Shift` `Cmd` `Backspace` | Empty Trash | +| `Cmd` `1` | Select Notes in the sidebar | +| `Cmd` `2` | Select Untagged in the sidebar | +| `Cmd` `3` | Select ToDo in the sidebar | +| `Cmd` `4` | Select Today in the sidebar | +| `Cmd` `5` | Select Archive in the sidebar | +| `Cmd` `6` | Select Trash in the sidebar | +| `Option` `Cmd` `Left` | Navigate back in visualized notes history | +| `Option` `Cmd` `Right` | Navigate forward in visualized notes history | +{.shortcuts} ### Panels and search -Shortcut | Action ----|--- -`Shift` `Cmd` `I` | Toggle information panel -`Cmd` `F` | Search inside the current note -`Option` `Cmd` `F` | Search and replace inside the current note -`Shift` `Cmd` `F` | Search inside the note list -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------------------ | +| `Shift` `Cmd` `I` | Toggle information panel | +| `Cmd` `F` | Search inside the current note | +| `Option` `Cmd` `F` | Search and replace inside the current note | +| `Shift` `Cmd` `F` | Search inside the note list | +{.shortcuts} ### Saving and importing -Shortcut | Action ----|--- -`Shift` `Cmd` `S` | Export selected notes -`Shift` `Cmd` `O` | Import notes -{.shortcuts} +| Shortcut | Action | +| ----------------- | --------------------- | +| `Shift` `Cmd` `S` | Export selected notes | +| `Shift` `Cmd` `O` | Import notes | +{.shortcuts} ### Window -Shortcut | Action ----|--- -`Ctrl` `1` | Show sidebar, note list and editor -`Ctrl` `2` | Show note list and editor -`Ctrl` `3` | Show editor only -`Cmd` `,` | Show preferences -`Ctrl` `Cmd` `F` | Enter fullscreen -`Cmd` `\` | Open main window +| Shortcut | Action | +| ---------------- | ---------------------------------- | +| `Ctrl` `1` | Show sidebar, note list and editor | +| `Ctrl` `2` | Show note list and editor | +| `Ctrl` `3` | Show editor only | +| `Cmd` `,` | Show preferences | +| `Ctrl` `Cmd` `F` | Enter fullscreen | +| `Cmd` `\` | Open main window | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Bear notes app](https://bear.app/faq/Shortcuts%20and%20more/Mac%20shortcuts/) _(bear.app)_ diff --git a/source/_posts/bitbucket.md b/source/_posts/bitbucket.md index c493080..43a42a8 100644 --- a/source/_posts/bitbucket.md +++ b/source/_posts/bitbucket.md @@ -2,110 +2,103 @@ title: Bitbucket date: 2022-11-23 16:23:31.699805 background: bg-[#4382f7] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 35 keyboard shortcuts found on Bitbucket + A visual cheat-sheet for the 35 keyboard shortcuts found on Bitbucket --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### All pages -Shortcut | Action ----|--- -`?` | Display keyboard shortcuts -`[` | Expand and collapse left navigation -`/` | Focus the site search -{.shortcuts} +| Shortcut | Action | +| -------- | ----------------------------------- | +| `?` | Display keyboard shortcuts | +| `[` | Expand and collapse left navigation | +| `/` | Focus the site search | +{.shortcuts} ### Most pages (except Your Work and Source) -Shortcut | Action ----|--- -`.` | Open the Omnibar -`J` | Select next item -`K` | Select previous item -`Enter` | View selected item -`G` `D` | Go to Your Work dashboard -`G` `A` | Go to your Personal Settings -`Esc` | Dismiss dialog or remove focus -`U` | Go back +| Shortcut | Action | +| -------- | ------------------------------ | +| `.` | Open the Omnibar | +| `J` | Select next item | +| `K` | Select previous item | +| `Enter` | View selected item | +| `G` `D` | Go to Your Work dashboard | +| `G` `A` | Go to your Personal Settings | +| `Esc` | Dismiss dialog or remove focus | +| `U` | Go back | + {.shortcuts} - - ### Repository pages (except for Source) -Shortcut | Action ----|--- -`C` `R` | Create a repository -`I` `R` | Import a repository -`R` `S` | Open repository source -`R` `C` | Open repository commits -`R` `B` | Open repository branches -`R` `P` | Open repository pull requests -`R` `I` | Open repository issues -`R` `W` | Open repository wiki -`R` `D` | Open repository downloads -`R` `A` | Open repository settings -`F` | Search for file -{.shortcuts} +| Shortcut | Action | +| -------- | ----------------------------- | +| `C` `R` | Create a repository | +| `I` `R` | Import a repository | +| `R` `S` | Open repository source | +| `R` `C` | Open repository commits | +| `R` `B` | Open repository branches | +| `R` `P` | Open repository pull requests | +| `R` `I` | Open repository issues | +| `R` `W` | Open repository wiki | +| `R` `D` | Open repository downloads | +| `R` `A` | Open repository settings | +| `F` | Search for file | +{.shortcuts} ### Repository pages (except for Source and Settings) {.row-span-2} -Shortcut | Action ----|--- -`X` `F` | Fork repository -`X` `B` | Create branch -`X` `C` | Compare branches or tags -`X` `P` | Create pull request -`X` `I` | Create issue -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------ | +| `X` `F` | Fork repository | +| `X` `B` | Create branch | +| `X` `C` | Compare branches or tags | +| `X` `P` | Create pull request | +| `X` `I` | Create issue | +{.shortcuts} ### Pull requests {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `Enter` | Submit a comment -`T` `C` | Toggle display of inline comments -`P` `D` | Switch to the pull request diff tab -`P` `C` | Switch to the pull request commits tab -`P` `A` | Switch to the pull request activity tab -`Shift` `T` | Show the list of tasks +| Shortcut | Action | +| -------------- | --------------------------------------- | +| `Ctrl` `Enter` | Submit a comment | +| `T` `C` | Toggle display of inline comments | +| `P` `D` | Switch to the pull request diff tab | +| `P` `C` | Switch to the pull request commits tab | +| `P` `A` | Switch to the pull request activity tab | +| `Shift` `T` | Show the list of tasks | + {.shortcuts} - - ### Repository pages with sidebar -Shortcut | Action ----|--- -`]` | Expand and collapse right sidebar -{.shortcuts} +| Shortcut | Action | +| -------- | --------------------------------- | +| `]` | Expand and collapse right sidebar | +{.shortcuts} ### Repository source -Shortcut | Action ----|--- -`F` | Focus the file filter +| Shortcut | Action | +| -------- | --------------------- | +| `F` | Focus the file filter | + {.shortcuts} +## Also see - -Also see --------- -- [Keyboard shortcuts for Bitbucket](https://confluence.atlassian.com/bitbucket/keyboard-shortcuts-269980511.html) _(confluence.atlassian.com)_ +- [Keyboard shortcuts for Bitbucket](https://confluence.atlassian.com/bitbucket/keyboard-shortcuts-269980511.html) + _(confluence.atlassian.com)_ diff --git a/source/_posts/blender.md b/source/_posts/blender.md index 5bf086d..6bc650d 100644 --- a/source/_posts/blender.md +++ b/source/_posts/blender.md @@ -2,282 +2,276 @@ title: Blender date: 2022-11-23 16:23:31.700590 background: bg-[#e48040] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 187 keyboard shortcuts found in Blender + A visual cheat-sheet for the 187 keyboard shortcuts found in Blender --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### Universal -Shortcut | Action ----|--- -`Esc` | Cancels Blender functions without changes -`Space` | Open the toolbox -`Tab` | Start or quit edit mode -`F1` | Loads a Blender file, changes the window to a file window -`Shift` `F1` | Appends parts from other files, or loads as library data -`F2` | Writes a Blender file, changes the window to a file window -`Shift` `F2` | Exports the scene as a DXF file -`Ctrl` `F2` | Exports the scene as a VRML1 file -`F3` | Writes a picture, if a picture has been rendered, and the file format is as indicated in the display buttons -`Ctrl` `F3` | Saves a screen dump of the active window -`Ctrl` `Shift` `F3` | Saves a screen dump of the whole Blender screen -`F4` | Displays the logic context -`F5` | Displays the shading context, light, material, or world sub-contexts -`F6` | Displays the shading context and texture sub-context -`F7` | Displays the object context -`F8` | Displays the shading context and world sub-context -`F9` | Displays the editing context -`F10` | Displays the scene context -`F11` | Hides or shows the render window -`F12` | Starts the rendering from the active camera -`Left` | Go to the previous frame -`Shift` `Left` | Go to the first frame -`Right` | Go to the next frame -`Shift` `Right` | Go to the last frame -`Up` | Go forward 10 frames -`Down` | Go back 10 frames -`Alt` `A` | Change the current Blender window to animation playback mode, the cursor changes to a counter -`Alt` `Shift` `A` | Change the current window and all 3D windows to animation playback mode -`I` | Insert key menu, this menu differs from window to window -`J` | Toggle the render buffers -`Ctrl` `O` | Opens the last saved file -`Q` | Quit Blender -`Ctrl` `Alt` `T` | Timer menu, this menu offers access to information about drawing speed -`Ctrl` `U` | Save user defaults, current project settings are written to the default file that will be loaded every time you start Blender -`Ctrl` `W` | Write file without opening a file window -`Alt` `W` | Write videoscape file -`Ctrl` `X` | Erase everything except the render buffer, the default scene is reloaded -`Ctrl` `Y` | Redo -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo -{.shortcuts} +| Shortcut | Action | +| ------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `Esc` | Cancels Blender functions without changes | +| `Space` | Open the toolbox | +| `Tab` | Start or quit edit mode | +| `F1` | Loads a Blender file, changes the window to a file window | +| `Shift` `F1` | Appends parts from other files, or loads as library data | +| `F2` | Writes a Blender file, changes the window to a file window | +| `Shift` `F2` | Exports the scene as a DXF file | +| `Ctrl` `F2` | Exports the scene as a VRML1 file | +| `F3` | Writes a picture, if a picture has been rendered, and the file format is as indicated in the display buttons | +| `Ctrl` `F3` | Saves a screen dump of the active window | +| `Ctrl` `Shift` `F3` | Saves a screen dump of the whole Blender screen | +| `F4` | Displays the logic context | +| `F5` | Displays the shading context, light, material, or world sub-contexts | +| `F6` | Displays the shading context and texture sub-context | +| `F7` | Displays the object context | +| `F8` | Displays the shading context and world sub-context | +| `F9` | Displays the editing context | +| `F10` | Displays the scene context | +| `F11` | Hides or shows the render window | +| `F12` | Starts the rendering from the active camera | +| `Left` | Go to the previous frame | +| `Shift` `Left` | Go to the first frame | +| `Right` | Go to the next frame | +| `Shift` `Right` | Go to the last frame | +| `Up` | Go forward 10 frames | +| `Down` | Go back 10 frames | +| `Alt` `A` | Change the current Blender window to animation playback mode, the cursor changes to a counter | +| `Alt` `Shift` `A` | Change the current window and all 3D windows to animation playback mode | +| `I` | Insert key menu, this menu differs from window to window | +| `J` | Toggle the render buffers | +| `Ctrl` `O` | Opens the last saved file | +| `Q` | Quit Blender | +| `Ctrl` `Alt` `T` | Timer menu, this menu offers access to information about drawing speed | +| `Ctrl` `U` | Save user defaults, current project settings are written to the default file that will be loaded every time you start Blender | +| `Ctrl` `W` | Write file without opening a file window | +| `Alt` `W` | Write videoscape file | +| `Ctrl` `X` | Erase everything except the render buffer, the default scene is reloaded | +| `Ctrl` `Y` | Redo | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo | +{.shortcuts} ### Object Mode -Shortcut | Action ----|--- -`Home` | All objects in the visible layer are displayed completely, centered in the window -`PgUp` | Select the next object key, if more than one is selected the selection is shifted up cyclically -`Shift` `PgUp` | Add to selection the next object key -`PgDn` | Select the previous object key, if more than one is selected the selection is shifted up cyclically -`Shift` `PgDn` | Adds to selection the previous object key -\` | Select all layers -`Shift` \` | Revert to the previous layer setting -`Tab` | Start or stop edit mode -`A` | Selects or deselects all -`Ctrl` `A` | Apply size and rotation -`Ctrl` `Shift` `A` | If the active object is automatically duplicated, brings up a menu for actually creating the objects -`Shift` `A` | Brings up the add menu, the toolbox items that start with ADD -`B` | Border select, draws a rectangle with the left mouse to select objects -`Shift` `B` | Render border, this only works in camera view mode -`C` | Center view, the position of the 3D cursor becomes the new center of the 3D window -`Alt` `C` | Convert menu, depending on the active object a popup menu is displayed enabling you to convert certain types of ObData -`Ctrl` `C` | Copy menu, this menu copies information from the active object to selected objects -`Shift` `C` | Center zero view, the 3D cursor is set to zero and the view is changed so all objects can be displayed -`D` | Display draw mode menu -`Shift` `D` | Add duplicate, the selected objects are duplicated -`Alt` `D` | Add linked duplicate, linked duplicates of the selected objects are created -`Ctrl` `D` | Draw the texture image as wire -`Alt` `E` | Start or stop edit mode -`F` | If selected object is a mash, toggles face select mode on or off -`Ctrl` `F` | Sort faces, the faces of the active mesh object are sorted based on the current view in the 3D window -`G` | Grab mode, or translation mode -`Alt` `G` | Clears translations, given in grab mode -`Shift` `G` | Group selection -`I` | Insert object key, a keyposition is inserted in the current frame of all selected objects -`Ctrl` `J` | Join objects, all selected objects of the same type are added to the active object -`K` | Show keys, the draw key option is turned on for all selected objects -`Shift` `K` | Display popup menu for showing and selecting all keys -`L` | Makes selected object local, makes library linked objects local for the current scene -`Ctrl` `L` | Link selected, links some of the active object data to all selected objects -`Shift` `L` | Select linked, selected all objects somehow linked to the active object -`M` | Move selected objects to another layer -`Ctrl` `M` | Mirror menu, it is possible to mirror an object along the X, Y, or Z axis -`N` | Number panel, the location, rotation, and scaling of the active object are displayed and can be modified -`Alt` `O` | Clear origin, the origin is erased for all child objects, which causes them to move ot the exact location of the parent objects -`Shift` `O` | If the selected object is a mesh, toggles the subsurf on or off -`Ctrl` `P` | Make selected objects the children of the active object -`Alt` `P` | Clears parent relation, user is asked if they wish to keep or clear parent-induced transforms -`R` | Rotate mode, works on selected objects -`Alt` `R` | Clears rotation, the X, Y, and Z rotations of selected objects are set to zero -`S` | Size mode or scaling mode, works on selected objects -`Alt` `S` | Clears size, the X, Y, and Z dimensions of selected objects are set to 1 -`Shift` `S` | Opens the snap menu -`T` | Texture space mode, the position of dimensions of the texture space for the selected objects can be changed in the same manner for grab and size mode -`Ctrl` `T` | Makes selected objects track the active object -`Alt` `T` | Clears old style track, constraint track is removed as all constrains are -`U` | Makes object single user, the inverse operation of link -`V` | Switches in and out of vertex paint mode -`Alt` `V` | Object image aspect, this hotkey sets the X and Y dimensions of the selected objects in relation to the dimensions of the image texture they have -`W` | Opens the object booleans menu -`X` | Deletes selected objects -`Z` | Toggles solid mode on or off -`Shift` `Z` | Toggles shaded mode on or off -`Alt` `Z` | Toggles textured mode on or off -{.shortcuts} +| Shortcut | Action | +| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Home` | All objects in the visible layer are displayed completely, centered in the window | +| `PgUp` | Select the next object key, if more than one is selected the selection is shifted up cyclically | +| `Shift` `PgUp` | Add to selection the next object key | +| `PgDn` | Select the previous object key, if more than one is selected the selection is shifted up cyclically | +| `Shift` `PgDn` | Adds to selection the previous object key | +| \` | Select all layers | +| `Shift` \` | Revert to the previous layer setting | +| `Tab` | Start or stop edit mode | +| `A` | Selects or deselects all | +| `Ctrl` `A` | Apply size and rotation | +| `Ctrl` `Shift` `A` | If the active object is automatically duplicated, brings up a menu for actually creating the objects | +| `Shift` `A` | Brings up the add menu, the toolbox items that start with ADD | +| `B` | Border select, draws a rectangle with the left mouse to select objects | +| `Shift` `B` | Render border, this only works in camera view mode | +| `C` | Center view, the position of the 3D cursor becomes the new center of the 3D window | +| `Alt` `C` | Convert menu, depending on the active object a popup menu is displayed enabling you to convert certain types of ObData | +| `Ctrl` `C` | Copy menu, this menu copies information from the active object to selected objects | +| `Shift` `C` | Center zero view, the 3D cursor is set to zero and the view is changed so all objects can be displayed | +| `D` | Display draw mode menu | +| `Shift` `D` | Add duplicate, the selected objects are duplicated | +| `Alt` `D` | Add linked duplicate, linked duplicates of the selected objects are created | +| `Ctrl` `D` | Draw the texture image as wire | +| `Alt` `E` | Start or stop edit mode | +| `F` | If selected object is a mash, toggles face select mode on or off | +| `Ctrl` `F` | Sort faces, the faces of the active mesh object are sorted based on the current view in the 3D window | +| `G` | Grab mode, or translation mode | +| `Alt` `G` | Clears translations, given in grab mode | +| `Shift` `G` | Group selection | +| `I` | Insert object key, a keyposition is inserted in the current frame of all selected objects | +| `Ctrl` `J` | Join objects, all selected objects of the same type are added to the active object | +| `K` | Show keys, the draw key option is turned on for all selected objects | +| `Shift` `K` | Display popup menu for showing and selecting all keys | +| `L` | Makes selected object local, makes library linked objects local for the current scene | +| `Ctrl` `L` | Link selected, links some of the active object data to all selected objects | +| `Shift` `L` | Select linked, selected all objects somehow linked to the active object | +| `M` | Move selected objects to another layer | +| `Ctrl` `M` | Mirror menu, it is possible to mirror an object along the X, Y, or Z axis | +| `N` | Number panel, the location, rotation, and scaling of the active object are displayed and can be modified | +| `Alt` `O` | Clear origin, the origin is erased for all child objects, which causes them to move ot the exact location of the parent objects | +| `Shift` `O` | If the selected object is a mesh, toggles the subsurf on or off | +| `Ctrl` `P` | Make selected objects the children of the active object | +| `Alt` `P` | Clears parent relation, user is asked if they wish to keep or clear parent-induced transforms | +| `R` | Rotate mode, works on selected objects | +| `Alt` `R` | Clears rotation, the X, Y, and Z rotations of selected objects are set to zero | +| `S` | Size mode or scaling mode, works on selected objects | +| `Alt` `S` | Clears size, the X, Y, and Z dimensions of selected objects are set to 1 | +| `Shift` `S` | Opens the snap menu | +| `T` | Texture space mode, the position of dimensions of the texture space for the selected objects can be changed in the same manner for grab and size mode | +| `Ctrl` `T` | Makes selected objects track the active object | +| `Alt` `T` | Clears old style track, constraint track is removed as all constrains are | +| `U` | Makes object single user, the inverse operation of link | +| `V` | Switches in and out of vertex paint mode | +| `Alt` `V` | Object image aspect, this hotkey sets the X and Y dimensions of the selected objects in relation to the dimensions of the image texture they have | +| `W` | Opens the object booleans menu | +| `X` | Deletes selected objects | +| `Z` | Toggles solid mode on or off | +| `Shift` `Z` | Toggles shaded mode on or off | +| `Alt` `Z` | Toggles textured mode on or off | +{.shortcuts} ### Edit Mode - General -Shortcut | Action ----|--- -`Tab` | Start or stop edit mode -`Alt` `E` | Start or stop edit mode (alternative) -`Ctrl` `Tab` | Switches between vertex select, edge select, and face select modes -`A` | Select or unselect all -`B` `B` | Circle select -`Ctrl` `H` | With vertices selected, this creates a hook object -`N` | Number panel, simpler than the object mode one -`O` | Switch in and out of proportional editing -`Shift` `O` | Toggles between smooth and sharp proportional editing -`P` | Separate, you can choose to make a new object with all selected vertices, edges, faces, and curves -`Ctrl` `P` | Make vertex parent -`Ctrl` `S` | Shear, in edit mode this operation enables you to make selected forms slant -`U` | Undo -`W` | Displays specials popup menu -`Shift` `W` | Warp, selected vertices can be bent into curves with this option -{.shortcuts} +| Shortcut | Action | +| ------------ | -------------------------------------------------------------------------------------------------- | +| `Tab` | Start or stop edit mode | +| `Alt` `E` | Start or stop edit mode (alternative) | +| `Ctrl` `Tab` | Switches between vertex select, edge select, and face select modes | +| `A` | Select or unselect all | +| `B` `B` | Circle select | +| `Ctrl` `H` | With vertices selected, this creates a hook object | +| `N` | Number panel, simpler than the object mode one | +| `O` | Switch in and out of proportional editing | +| `Shift` `O` | Toggles between smooth and sharp proportional editing | +| `P` | Separate, you can choose to make a new object with all selected vertices, edges, faces, and curves | +| `Ctrl` `P` | Make vertex parent | +| `Ctrl` `S` | Shear, in edit mode this operation enables you to make selected forms slant | +| `U` | Undo | +| `W` | Displays specials popup menu | +| `Shift` `W` | Warp, selected vertices can be bent into curves with this option | +{.shortcuts} ### Edit Mode - Mesh -Shortcut | Action ----|--- -`Ctrl` `+` | Adds to selection all vertices connected by an edge to an already selected vertex -`Ctrl` `-` | Removes from selection all vertices of the outer ring of selected vertices -`C` | If using curve deformation, toggles the curve cyclic mode on or off -`E` | Extrude selected -`Shift` `E` | Crease subsurf edge -`Ctrl` `E` | Mark LSCM seam -`F` | Make edge or face -`Shift` `F` | Fill selected, all selected vertices that are bound by edges and form a closed polygon are filled with triangular faces -`Alt` `F` | Beauty fill, edges of all selected triangular faces are switched so equally sized faces are formed -`Ctrl` `F` | Flip faces, selected triangular faces are paired and common edge of each pair swapped -`H` | Hide selected, all selected vertices and faces are hidden -`Shift` `H` | Hide not selected, all non-selected vertices and faces are hidden -`Alt` `H` | Reveal, all hidden vertices and faces are drawn again -`Alt` `J` | Join faces, selected triangular faces are joined in pairs and transformed to quads -`K` | Knife tool menu -`L` | Select linked -`Shift` `L` | Deselect linked -`Ctrl` `L` | Select linked selected -`M` | Mirror, opens a popup asking for the axis to mirror -`Alt` `M` | Merges selected vertices as barycentrum or at cursor depending on selection made on popup -`Ctrl` `N` | Calculate normals outside -`Ctrl` `Shift` `N` | Calculate normals inside -`Alt` `S` | Scales each vertex in the direction of its local normal -`Ctrl` `T` | Make triangles, all selected faces are converted to triangles -`U` | Undo -`Shift` `U` | Redo -`Alt` `U` | Undo menu -`W` | Special menu -`X` | Erase selected -`Y` | Split, this command splits the selected part of a mesh without deleting faces -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------------------------------------------------------------------------------------------------------- | +| `Ctrl` `+` | Adds to selection all vertices connected by an edge to an already selected vertex | +| `Ctrl` `-` | Removes from selection all vertices of the outer ring of selected vertices | +| `C` | If using curve deformation, toggles the curve cyclic mode on or off | +| `E` | Extrude selected | +| `Shift` `E` | Crease subsurf edge | +| `Ctrl` `E` | Mark LSCM seam | +| `F` | Make edge or face | +| `Shift` `F` | Fill selected, all selected vertices that are bound by edges and form a closed polygon are filled with triangular faces | +| `Alt` `F` | Beauty fill, edges of all selected triangular faces are switched so equally sized faces are formed | +| `Ctrl` `F` | Flip faces, selected triangular faces are paired and common edge of each pair swapped | +| `H` | Hide selected, all selected vertices and faces are hidden | +| `Shift` `H` | Hide not selected, all non-selected vertices and faces are hidden | +| `Alt` `H` | Reveal, all hidden vertices and faces are drawn again | +| `Alt` `J` | Join faces, selected triangular faces are joined in pairs and transformed to quads | +| `K` | Knife tool menu | +| `L` | Select linked | +| `Shift` `L` | Deselect linked | +| `Ctrl` `L` | Select linked selected | +| `M` | Mirror, opens a popup asking for the axis to mirror | +| `Alt` `M` | Merges selected vertices as barycentrum or at cursor depending on selection made on popup | +| `Ctrl` `N` | Calculate normals outside | +| `Ctrl` `Shift` `N` | Calculate normals inside | +| `Alt` `S` | Scales each vertex in the direction of its local normal | +| `Ctrl` `T` | Make triangles, all selected faces are converted to triangles | +| `U` | Undo | +| `Shift` `U` | Redo | +| `Alt` `U` | Undo menu | +| `W` | Special menu | +| `X` | Erase selected | +| `Y` | Split, this command splits the selected part of a mesh without deleting faces | +{.shortcuts} ### Edit Mode - Curve -Shortcut | Action ----|--- -`C` | Set the selected curves to cyclic or turn cyclic off -`E` | Extrude curve -`F` | Add segment, a segment is added between two selected vertices at the end of two curves -`H` | Toggle handle align or free -`Shift` `H` | Set handle to auto -`Ctrl` `H` | Calculate handles -`L` | Select linked -`Shift` `L` | Deselect linked -`M` | Mirror selected control points exactly as for vertices in a mesh -`T` | Tilt mode, specify an extra axis rotation for each vertex in a 3D curve -`Alt` `T` | Clear tilt -`V` | Vector handle -`W` | The special menu for curves appears -`X` | Erase selected -{.shortcuts} +| Shortcut | Action | +| ----------- | -------------------------------------------------------------------------------------- | +| `C` | Set the selected curves to cyclic or turn cyclic off | +| `E` | Extrude curve | +| `F` | Add segment, a segment is added between two selected vertices at the end of two curves | +| `H` | Toggle handle align or free | +| `Shift` `H` | Set handle to auto | +| `Ctrl` `H` | Calculate handles | +| `L` | Select linked | +| `Shift` `L` | Deselect linked | +| `M` | Mirror selected control points exactly as for vertices in a mesh | +| `T` | Tilt mode, specify an extra axis rotation for each vertex in a 3D curve | +| `Alt` `T` | Clear tilt | +| `V` | Vector handle | +| `W` | The special menu for curves appears | +| `X` | Erase selected | +{.shortcuts} ### Edit Mode - Surface -Shortcut | Action ----|--- -`C` | Toggle cyclic menu -`E` | Extrude selected -`F` | Add segment, a segment is added between two selected vertices at the end of two curves -`L` | Select linked -`Shift` `L` | Deselect linked -`M` | Mirror selected control points exactly as for vertices in a mesh -`Shift` `R` | Select row, starting with the last selected vertex -`W` | The special menu for surfaces appears -`X` | Erase selected -{.shortcuts} +| Shortcut | Action | +| ----------- | -------------------------------------------------------------------------------------- | +| `C` | Toggle cyclic menu | +| `E` | Extrude selected | +| `F` | Add segment, a segment is added between two selected vertices at the end of two curves | +| `L` | Select linked | +| `Shift` `L` | Deselect linked | +| `M` | Mirror selected control points exactly as for vertices in a mesh | +| `Shift` `R` | Select row, starting with the last selected vertex | +| `W` | The special menu for surfaces appears | +| `X` | Erase selected | +{.shortcuts} ### Edit Mode - Font -Shortcut | Action ----|--- -`Right` | Move text cursor one position forward -`Shift` `Right` | Move text cursor to the end of the line -`Left` | Move text cursor one position backwards -`Shift` `Left` | Move text cursor to the start of the line -`Down` | Move text cursor one line forward -`Shift` `Down` | Move text cursor to the end of the text -`Up` | Move text cursor one line back -`Shift` `Up` | Move text cursor to the beginning of the text -`Alt` `U` | Reload original data -`Alt` `V` | Paste text -{.shortcuts} +| Shortcut | Action | +| --------------- | --------------------------------------------- | +| `Right` | Move text cursor one position forward | +| `Shift` `Right` | Move text cursor to the end of the line | +| `Left` | Move text cursor one position backwards | +| `Shift` `Left` | Move text cursor to the start of the line | +| `Down` | Move text cursor one line forward | +| `Shift` `Down` | Move text cursor to the end of the text | +| `Up` | Move text cursor one line back | +| `Shift` `Up` | Move text cursor to the beginning of the text | +| `Alt` `U` | Reload original data | +| `Alt` `V` | Paste text | +{.shortcuts} ### VertexPaint -Shortcut | Action ----|--- -`Shift` `K` | All vertex colors are erased, they are changed to the current drawing color -`U` | Undo, press twice redos the undone -`W` | Shared vertexcol, the colors of all faces that share vertices are blended -{.shortcuts} +| Shortcut | Action | +| ----------- | --------------------------------------------------------------------------- | +| `Shift` `K` | All vertex colors are erased, they are changed to the current drawing color | +| `U` | Undo, press twice redos the undone | +| `W` | Shared vertexcol, the colors of all faces that share vertices are blended | +{.shortcuts} ### UV Editor -Shortcut | Action ----|--- -`E` | LSCM unwrapping, launches on the faces visible in the UV editor -`P` | Pin selected vertices, they will stay in place on the UV editor when executing an LSCM unwrap -`Alt` `P` | Un-pin selected vertices -{.shortcuts} +| Shortcut | Action | +| --------- | --------------------------------------------------------------------------------------------- | +| `E` | LSCM unwrapping, launches on the faces visible in the UV editor | +| `P` | Pin selected vertices, they will stay in place on the UV editor when executing an LSCM unwrap | +| `Alt` `P` | Un-pin selected vertices | +{.shortcuts} ### FaceSelect -Shortcut | Action ----|--- -`Tab` | Switches to edit mode -`F` | With multiple, co-planar faces selected, this will merge them into one FGon so long as they remain co-planar -`L` | Select linked UVs -`R` | Calls a menu allowing to rotate the UV coordinates or the vertex col -`U` | Calls the UV Calculation menu +| Shortcut | Action | +| -------- | ------------------------------------------------------------------------------------------------------------ | +| `Tab` | Switches to edit mode | +| `F` | With multiple, co-planar faces selected, this will merge them into one FGon so long as they remain co-planar | +| `L` | Select linked UVs | +| `R` | Calls a menu allowing to rotate the UV coordinates or the vertex col | +| `U` | Calls the UV Calculation menu | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Blender](https://download.blender.org/documentation/BlenderHotkeyReference.pdf) _(download.blender.org)_ +- [Keyboard shortcuts for Blender](https://download.blender.org/documentation/BlenderHotkeyReference.pdf) + _(download.blender.org)_ diff --git a/source/_posts/brave.md b/source/_posts/brave.md index 4e32628..6d7e573 100644 --- a/source/_posts/brave.md +++ b/source/_posts/brave.md @@ -2,117 +2,111 @@ title: Brave Browser date: 2022-11-23 16:23:31.698868 background: bg-[#da6b37] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 64 keyboard shortcuts found in the Brave browser + A visual cheat-sheet for the 64 keyboard shortcuts found in the Brave browser --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### Tabs and Windows -Shortcut | Action ----|--- -`Ctrl` `N` | Open a new window -`Ctrl` `Shift` `N` | Open a new window in Private mode -`Ctrl` `T` | Open a new tab, and jump to it -`Ctrl` `Shift` `T` | Reopen the last closed tab, and jump to it -`Ctrl` `Tab` | Jump to the next open tab -`Ctrl` `Shift` `Tab` | Jump to the previous open tab -`Ctrl` `1-8` | Jump to a specific tab -`Ctrl` `9` | Jump to the last tab -`Alt` `Home` | Open your home page in the current tab -`Ctrl` `Left` | Open the previous page from your browsing history in the current tab -`Alt` `Right` | Open the next page from your browsing history in the current tab -`Ctrl` `W` | Close the current tab -`Ctrl` `Shift` `W` | Close the current window -`Alt` `Space` `N` | Minimize the current window -`Alt` `Space` `X` | Maximize the current window -`Alt` `F4` | Close the current window -`Ctrl` `Shift` `Q` | Quit Brave -{.shortcuts} +| Shortcut | Action | +| -------------------- | -------------------------------------------------------------------- | +| `Ctrl` `N` | Open a new window | +| `Ctrl` `Shift` `N` | Open a new window in Private mode | +| `Ctrl` `T` | Open a new tab, and jump to it | +| `Ctrl` `Shift` `T` | Reopen the last closed tab, and jump to it | +| `Ctrl` `Tab` | Jump to the next open tab | +| `Ctrl` `Shift` `Tab` | Jump to the previous open tab | +| `Ctrl` `1-8` | Jump to a specific tab | +| `Ctrl` `9` | Jump to the last tab | +| `Alt` `Home` | Open your home page in the current tab | +| `Ctrl` `Left` | Open the previous page from your browsing history in the current tab | +| `Alt` `Right` | Open the next page from your browsing history in the current tab | +| `Ctrl` `W` | Close the current tab | +| `Ctrl` `Shift` `W` | Close the current window | +| `Alt` `Space` `N` | Minimize the current window | +| `Alt` `Space` `X` | Maximize the current window | +| `Alt` `F4` | Close the current window | +| `Ctrl` `Shift` `Q` | Quit Brave | +{.shortcuts} ### Browser -Shortcut | Action ----|--- -`Alt` `F` | Open the main menu -`Ctrl` `Shift` `B` | Show or hide the bookmarks bar -`Ctrl` `H` | Open the history page in a new tab -`Ctrl` `J` | Open the downloads page in a new tab -`Shift` `Esc` | Open the Brave task manager -`Shift` `Alt` `T` | Set focus on the first item in the toolbar -`F10` | Set focus on the last item in the toolbar -`F6` | Switch focus to unfocused dialog, if showing -`Ctrl` `F` | Open the find bar to search the current page -`Ctrl` `G` | Jump to the next match in your find bar search -`Ctrl` `Shift` `G` | Jump to the previous match in your find bar search -`Ctrl` `Shift` `J` | Open developer tools -`Ctrl` `Shift` `Delete` | Open the clear browser data options -`F1` | Open the Brave help center in a new tab -`Ctrl` `Shift` `M` | Open profile menu -`` | -{.shortcuts} +| Shortcut | Action | +| ----------------------- | -------------------------------------------------- | +| `Alt` `F` | Open the main menu | +| `Ctrl` `Shift` `B` | Show or hide the bookmarks bar | +| `Ctrl` `H` | Open the history page in a new tab | +| `Ctrl` `J` | Open the downloads page in a new tab | +| `Shift` `Esc` | Open the Brave task manager | +| `Shift` `Alt` `T` | Set focus on the first item in the toolbar | +| `F10` | Set focus on the last item in the toolbar | +| `F6` | Switch focus to unfocused dialog, if showing | +| `Ctrl` `F` | Open the find bar to search the current page | +| `Ctrl` `G` | Jump to the next match in your find bar search | +| `Ctrl` `Shift` `G` | Jump to the previous match in your find bar search | +| `Ctrl` `Shift` `J` | Open developer tools | +| `Ctrl` `Shift` `Delete` | Open the clear browser data options | +| `F1` | Open the Brave help center in a new tab | +| `Ctrl` `Shift` `M` | Open profile menu | +| `` | +{.shortcuts} ### Address Bar -Shortcut | Action ----|--- -`Enter` | Search with your default search engine (after typing) -`Tab` | Search using a different search engine (after typing) -`Ctrl` `Enter` | Add www. and .com to a site name, and open it in the current tab (after typing) -`Alt` `Enter` | Open a new tab and perform a search (after typing) -`Ctrl` `L` | Jump to the address bar -`Ctrl` `K` | Search from anywhere on the page -`Shift` `Delete` | Remove predictions from your address bar (after highlighting them) -{.shortcuts} +| Shortcut | Action | +| ---------------- | ------------------------------------------------------------------------------- | +| `Enter` | Search with your default search engine (after typing) | +| `Tab` | Search using a different search engine (after typing) | +| `Ctrl` `Enter` | Add www. and .com to a site name, and open it in the current tab (after typing) | +| `Alt` `Enter` | Open a new tab and perform a search (after typing) | +| `Ctrl` `L` | Jump to the address bar | +| `Ctrl` `K` | Search from anywhere on the page | +| `Shift` `Delete` | Remove predictions from your address bar (after highlighting them) | +{.shortcuts} ### Webpage -Shortcut | Action ----|--- -`Ctrl` `P` | Open options to print the current page -`Ctrl` `S` | Open options to save the current page -`Ctrl` `R` | Reload the current page -`Ctrl` `Shift` `R` | Reload the current page, ignoring cached content -`Esc` | Stop the page loading -`Tab` | Browse clickable items moving forward -`Shift` `Tab` | Browse clickable items moving backwards -`Ctrl` `O` | Open a file from your computer in Brave -`Ctrl` `U` | Display non-editable HTML source code for the current page -`Ctrl` `D` | Save your current webpage as a bookmark -`Ctrl` `Shift` `D` | Save all open tabs as bookmarks in a new folder -`F11` | Turn full-screen mode on or off -`Ctrl` `+` | Make everything on the page bigger -`Ctrl` `-` | Make everything on the page smaller -`Ctrl` `0` | Return everything on the page to default size -`Space` | Scroll down a webpage, a screen at a time -`Shift` `Space` | Scroll up a webpage, a screen at a time -`Home` | Go to the top of the page -`End` | Go to the bottom of the page -`Shift` `(scroll)` | Scroll horizontally on the page -`Alt` `Left` | Move your cursor to the front of the previous word in a text field -`Ctrl` `Right` | Move your cursor to the back of the next word in a text field -`Ctrl` `Back` | Delete the previous word in a text field -`Alt` `Home` | Open the home page in the current tab +| Shortcut | Action | +| ------------------ | ------------------------------------------------------------------ | +| `Ctrl` `P` | Open options to print the current page | +| `Ctrl` `S` | Open options to save the current page | +| `Ctrl` `R` | Reload the current page | +| `Ctrl` `Shift` `R` | Reload the current page, ignoring cached content | +| `Esc` | Stop the page loading | +| `Tab` | Browse clickable items moving forward | +| `Shift` `Tab` | Browse clickable items moving backwards | +| `Ctrl` `O` | Open a file from your computer in Brave | +| `Ctrl` `U` | Display non-editable HTML source code for the current page | +| `Ctrl` `D` | Save your current webpage as a bookmark | +| `Ctrl` `Shift` `D` | Save all open tabs as bookmarks in a new folder | +| `F11` | Turn full-screen mode on or off | +| `Ctrl` `+` | Make everything on the page bigger | +| `Ctrl` `-` | Make everything on the page smaller | +| `Ctrl` `0` | Return everything on the page to default size | +| `Space` | Scroll down a webpage, a screen at a time | +| `Shift` `Space` | Scroll up a webpage, a screen at a time | +| `Home` | Go to the top of the page | +| `End` | Go to the bottom of the page | +| `Shift` `(scroll)` | Scroll horizontally on the page | +| `Alt` `Left` | Move your cursor to the front of the previous word in a text field | +| `Ctrl` `Right` | Move your cursor to the back of the next word in a text field | +| `Ctrl` `Back` | Delete the previous word in a text field | +| `Alt` `Home` | Open the home page in the current tab | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Brave](https://support.brave.com/hc/en-us/articles/360032272171-What-keyboard-shortcuts-can-I-use-in-Brave-) _(support.brave.com)_ +- [Keyboard shortcuts for Brave](https://support.brave.com/hc/en-us/articles/360032272171-What-keyboard-shortcuts-can-I-use-in-Brave-) + _(support.brave.com)_ diff --git a/source/_posts/chmod.md b/source/_posts/chmod.md index c0dcf6f..ded1f48 100644 --- a/source/_posts/chmod.md +++ b/source/_posts/chmod.md @@ -3,47 +3,50 @@ title: Chmod date: 2021-07-01 10:51:44 background: bg-emerald-600 tags: - - permission + - permission categories: - - Linux Command + - Linux Command intro: | - This quick reference cheat sheet provides a brief overview of file permissions, and the operation of the chmod command + This quick reference cheat sheet provides a brief overview of file permissions, and the operation of the chmod command plugins: - - copyCode + - copyCode --- - -Getting Started --------- - +## Getting Started ### Syntax + ```shell script -$ chmod [options] +$ chmod [options] ``` + #### Example + ```shell $ chmod 755 foo.txt $ chmod +x cheatsheets.py $ chmod u-x cheatsheets.py $ chmod u=rwx,g=rx,o= cheatsheets.sh ``` + #### Change files and directories recursively + ```shell $ chmod -R 755 my_directory ``` -The `chmod` command stands for "change mode" +The `chmod` command stands for "change mode" ### Chmod Generator + Chmod Generator allows you to quickly and visually generate permissions in numerical and symbolic. - ### Common Permissions + | Command | s | Meaning | -|---------|-----------|------------------------------| +| ------- | --------- | ---------------------------- | | `400` | r-------- | Readable by owner only | | `500` | r-x------ | Avoid Changing | | `600` | rw------- | Changeable by user | @@ -54,28 +57,30 @@ Chmod Generator allows you to quickly and visually generate permissions in numer | `775` | rwxrwxr-x | Sharing mode for a group | | `777` | rwxrwxrwx | Everybody can do everything | - ### Explains + ```shell $ ls -l -rw-r--r-- 1 root root 3 Jun 29 15:35 a.log drwxr-xr-x 2 root root 2 Jun 30 18:06 dir ``` + #### Permission analysis of "dir" + ```text d rwx r-x r-x -┬ ─┬─ ─┬─ ─┬─ -│ │ │ │ +┬ ─┬─ ─┬─ ─┬─ +│ │ │ │ │ │ │ └─ 4. Other|5 (4+0+1) │ │ └────── 3. Group|5 (4+0+1) │ └─────────── 2. User |7 (4+2+1) └─────────────── 1. File Type | directory ``` - ### Permission Modes {.col-span-2} + | Permission | Description | Octal | Decimal | -|------------|-------------------------|-------|-----------| +| ---------- | ----------------------- | ----- | --------- | | `---` | No Permission | 000 | 0 (0+0+0) | | `--x` | Execute | 001 | 1 (0+0+1) | | `-w-` | Write | 010 | 2 (0+2+0) | @@ -84,61 +89,61 @@ d rwx r-x r-x | `r-x` | Read and Execute | 101 | 5 (4+0+1) | | `rw-` | Read and Write | 110 | 6 (4+2+0) | | `rwx` | Read, Write and Execute | 111 | 7 (4+2+1) | + {.show-header} - - ### Objects + | Who (abbr.) | Meaning | -|-------------|--------------------| +| ----------- | ------------------ | | `u` | `U`ser | | `g` | `G`roup | | `o` | `O`thers | | `a` | `A`ll, same as ugo | + {.show-header} - ### Permissions + | Abbreviation | Permission | Value | -|--------------|---------------|-------| +| ------------ | ------------- | ----- | | `r` | `R`ead | 4 | | `w` | `W`rite | 2 | | `x` | E`x`ecute | 1 | | `-` | No permission | 0 | + {.show-header} - ### File Types + | Abbreviation | File Type | -|--------------|-----------------| +| ------------ | --------------- | | `d` | `D`irectory | | `-` | Regular file | | `l` | Symbolic `L`ink | + {.show-header} - - -Chmod Examples --------- - +## Chmod Examples ### Operators + | Symbol | Description | -|--------|-------------| +| ------ | ----------- | | `+` | Add | | `-` | Remove | | `=` | Set | - ### chmod 600 + ```shell $ chmod 600 example.txt $ chmod u=rw,g=,o= example.txt $ chmod a+rwx,u-x,g-rwx,o-rwx example.txt ``` - ### chmod 664 + ```shell $ chmod 664 example.txt $ chmod u=rw,g=rw,o=r example.txt @@ -146,54 +151,74 @@ $ chmod a+rwx,u-x,g-x,o-wx example.txt ``` ### chmod 777 + ```shell $ chmod 777 example.txt $ chmod u=rwx,g=rwx,o=rwx example.txt $ chmod a=rwx example.txt ``` - ### Symbolic mode {.row-span-3} + Deny execute permission to everyone. + ```shell $ chmod a-x chmodExampleFile.txt ``` + Allow read permission to everyone. + ```shell $ chmod a+r chmodExampleFile.txt ``` + Make a file readable and writable by the group and others. + ```shell $ chmod go+rw chmodExampleFile.txt ``` + Make a shell script executable by the user/owner. + ```shell $ chmod u+x chmodExampleScript.sh ``` + Allow everyone to read, write, and execute the file and turn on the set group-ID. + ```shell $ chmod =rwx,g+s chmodExampleScript.sh ``` -### Removing Permissions {.row-span-3} +### Removing Permissions {.row-span-3} + In order to remove read write permissions given to a file, use the following syntax: + ```shell $ chmod o-rw example.txt ``` + For our file example.txt, we can remove read write permissions using chmod for group by running the following command: + ```shell $ chmod g-rx example.txt ``` -To remove chmod read write permissions from the group while adding read write permission to public/others, we can use the following command: + +To remove chmod read write permissions from the group while adding read write permission to public/others, we can use +the following command: + ```shell $ chmod g-rx, o+rx example.txt ``` + But, if you wish to remove all permissions for group and others, you can do so using the go= instead: + ```shell $ chmod go= example.txt ``` ### Executable + ```shell $ chmod +x ~/example.py $ chmod u+x ~/example.py @@ -201,17 +226,16 @@ $ chmod a+x ~/example.py ``` ### chmod 754 + ```shell $ chmod 754 foo.sh $ chmod u=rwx,g=rx,o=r foo.sh ``` - - -Chmod Practices ---------------- +## Chmod Practices ### SSH Permissions + ```shell script $ chmod 700 ~/.ssh $ chmod 600 ~/.ssh/authorized_keys @@ -221,6 +245,7 @@ $ chmod 400 /path/to/access_key.pem ``` ### Web Permissions + ```shell script $ chmod -R 644 /var/www/html/ $ chmod 644 .htaccess @@ -230,13 +255,16 @@ $ find /var/www/html -type d -exec chmod 755 {} \; ``` ### Batch Change + ```shell script $ chmod -R 644 /your_path $ find /path -type d -exec chmod 755 {} \; $ find /path -type f -exec chmod 644 {} \; ``` + See: [Command Substitution](https://tldp.org/LDP/abs/html/commandsub.html) - ## Also see -* [Modify File Permissions with chmod](https://www.linode.com/docs/guides/modify-file-permissions-with-chmod/) _(linode.com)_ + +- [Modify File Permissions with chmod](https://www.linode.com/docs/guides/modify-file-permissions-with-chmod/) + _(linode.com)_ diff --git a/source/_posts/chrome-devtools.md b/source/_posts/chrome-devtools.md index f2b1803..59e6b92 100644 --- a/source/_posts/chrome-devtools.md +++ b/source/_posts/chrome-devtools.md @@ -2,137 +2,131 @@ title: Chrome Developer Tools date: 2022-11-23 16:23:31.696017 background: bg-[#c64d3e] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 56 keyboard shortcuts found in Chrome's Developer Tools + A visual cheat-sheet for the 56 keyboard shortcuts found in Chrome's Developer Tools --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Opening DevTools -Shortcut | Action ----|--- -`Ctrl` `Shift` `I` | Open whatever panel you used last -`Ctrl` `Shift` `J` | Open the Console panel -`Ctrl` `Shift` `C` | Open the Elements panel +| Shortcut | Action | +| ------------------ | --------------------------------- | +| `Ctrl` `Shift` `I` | Open whatever panel you used last | +| `Ctrl` `Shift` `J` | Open the Console panel | +| `Ctrl` `Shift` `C` | Open the Elements panel | + {.shortcuts} +### Global Shortcuts {.row-span-2} -### Global Shortcuts {.row-span-2} +| Shortcut | Action | +| ------------------ | ------------------------------------------------------ | +| `F1` | Show Settings | +| `Ctrl` `]` | Focus the next panel | +| `Ctrl` `[` | Focus the previous panel | +| `Ctrl` `Shift` `D` | Switch back to whatever docking position you last used | +| `Ctrl` `Shift` `M` | Toggle Device Mode | +| `Ctrl` `Shift` `C` | Toggle Inspect Element Mode | +| `Ctrl` `Shift` `P` | Open the Command Menu | +| `Esc` | Toggle the Drawer | +| `Ctrl` `R` | Normal reload | +| `Ctrl` `Shift` `R` | Hard reload | +| `Ctrl` `F` | Search for text within the current panel | +| `Ctrl` `Shift` `F` | Opens the Search tab in the Drawer | +| `Ctrl` `P` | Open a file in the Sources panel | +| `Ctrl` `Shift` `+` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Restore default zoom level | +| `Ctrl` `O` `!` | Run snippet | -Shortcut | Action ----|--- -`F1` | Show Settings -`Ctrl` `]` | Focus the next panel -`Ctrl` `[` | Focus the previous panel -`Ctrl` `Shift` `D` | Switch back to whatever docking position you last used -`Ctrl` `Shift` `M` | Toggle Device Mode -`Ctrl` `Shift` `C` | Toggle Inspect Element Mode -`Ctrl` `Shift` `P` | Open the Command Menu -`Esc` | Toggle the Drawer -`Ctrl` `R` | Normal reload -`Ctrl` `Shift` `R` | Hard reload -`Ctrl` `F` | Search for text within the current panel -`Ctrl` `Shift` `F` | Opens the Search tab in the Drawer -`Ctrl` `P` | Open a file in the Sources panel -`Ctrl` `Shift` `+` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Restore default zoom level -`Ctrl` `O` `!` | Run snippet {.shortcuts} - ### Elements Panel -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo change -`Ctrl` `Y` | Redo change -`Up/Down` | Select the element above or below the currently-selected element -`Right` | Expand the currently-selected node -`Left` | Collapse the currently-selected node -`Enter` | Toggle Edit Attributes mode on the currently-selected element -`Tab` | Select the next attribute after entering Edit Attributes mode -`Shift` `Tab` | Select the previous attribute after entering Edit Attributes mode -`H` | Hide the currently-selected element -`F2` | Toggle Edit as HTML mode on the currently-selected element -{.shortcuts} +| Shortcut | Action | +| ------------- | ----------------------------------------------------------------- | +| `Ctrl` `Z` | Undo change | +| `Ctrl` `Y` | Redo change | +| `Up/Down` | Select the element above or below the currently-selected element | +| `Right` | Expand the currently-selected node | +| `Left` | Collapse the currently-selected node | +| `Enter` | Toggle Edit Attributes mode on the currently-selected element | +| `Tab` | Select the next attribute after entering Edit Attributes mode | +| `Shift` `Tab` | Select the previous attribute after entering Edit Attributes mode | +| `H` | Hide the currently-selected element | +| `F2` | Toggle Edit as HTML mode on the currently-selected element | +{.shortcuts} ### Sources Panel -Shortcut | Action ----|--- -`Ctrl` `\` | Pause script execution (if running), or resume (if paused) -`Ctrl` `'` | Step over next function call -`Ctrl` `;` | Step into next function call -`Ctrl` `Shift` `;` | Step out of current function -`Ctrl` `./,` | Select the call frame below or above the currently-selected frame -`Ctrl` `S` | Save changes to local modifications -`Ctrl` `Alt` `S` | Save all changes -`Ctrl` `G` | Go to line -`Alt` `W` | Close the active tab -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------------------------------------------------- | +| `Ctrl` `\` | Pause script execution (if running), or resume (if paused) | +| `Ctrl` `'` | Step over next function call | +| `Ctrl` `;` | Step into next function call | +| `Ctrl` `Shift` `;` | Step out of current function | +| `Ctrl` `./,` | Select the call frame below or above the currently-selected frame | +| `Ctrl` `S` | Save changes to local modifications | +| `Ctrl` `Alt` `S` | Save all changes | +| `Ctrl` `G` | Go to line | +| `Alt` `W` | Close the active tab | +{.shortcuts} ### Code Editor -Shortcut | Action ----|--- -`Ctrl` `Del` | Delete all characters in the last word, up to the cursor -`Ctrl` `M` | Go to matching bracket -`Ctrl` `/` | Toggle single-line comment -`Ctrl` `D` | Select the next occurrence of whatever word the cursor is on -`Ctrl` `U` | Deselect the next occurrence of whatever word the cursor is on -{.shortcuts} +| Shortcut | Action | +| ------------ | -------------------------------------------------------------- | +| `Ctrl` `Del` | Delete all characters in the last word, up to the cursor | +| `Ctrl` `M` | Go to matching bracket | +| `Ctrl` `/` | Toggle single-line comment | +| `Ctrl` `D` | Select the next occurrence of whatever word the cursor is on | +| `Ctrl` `U` | Deselect the next occurrence of whatever word the cursor is on | +{.shortcuts} ### Performance Panel -Shortcut | Action ----|--- -`Ctrl` `E` | Start or stop recording -`Ctrl` `S` | Save recording -`Ctrl` `O` | Load recording -{.shortcuts} +| Shortcut | Action | +| ---------- | ----------------------- | +| `Ctrl` `E` | Start or stop recording | +| `Ctrl` `S` | Save recording | +| `Ctrl` `O` | Load recording | +{.shortcuts} ### Memory Panel -Shortcut | Action ----|--- -`Ctrl` `E` | Start or stop recording -{.shortcuts} +| Shortcut | Action | +| ---------- | ----------------------- | +| `Ctrl` `E` | Start or stop recording | +{.shortcuts} ### Console Panel -Shortcut | Action ----|--- -`Tab` | Accept autocomplete suggestion -`Esc` | Reject autocomplete suggestion -`Up` | Get previous statement -`Down` | Get next statement -`Ctrl` \` | Focus the Console -`Ctrl` `L` | Clear the console -`Shift` `Enter` | Force a multi-line entry -`Enter` | Execute +| Shortcut | Action | +| ---------------------- | ------------------------------ | +| `Tab` | Accept autocomplete suggestion | +| `Esc` | Reject autocomplete suggestion | +| `Up` | Get previous statement | +| `Down` | Get next statement | +| `Ctrl` \` | Focus the Console | +| `Ctrl` `L` | Clear the console | +| `Shift` `Enter` | Force a multi-line entry | +| `Enter` | Execute | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools/shortcuts) _(developers.google.com)_ +- [Keyboard shortcuts for Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools/shortcuts) + _(developers.google.com)_ diff --git a/source/_posts/code-editor-ios.md b/source/_posts/code-editor-ios.md index 86b9901..a107d31 100644 --- a/source/_posts/code-editor-ios.md +++ b/source/_posts/code-editor-ios.md @@ -3,81 +3,75 @@ title: Code Editor for iOS date: 2022-11-23 16:23:31.697110 background: bg-[#4880c2] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 43 keyboard shortcuts found in the Code Editor for iOS app. This application is MacOS-only. + A visual cheat-sheet for the 43 keyboard shortcuts found in the Code Editor for iOS app. This application is MacOS-only. --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### General Shortcuts I -Shortcut | Action ----|--- -`Esc` | Show completions -`Tab` | Insert indent, depending on the preferences of tabs or spaces -`Cmd` `N` | New document tab -`Cmd` `W` | Close tab -`Cmd` `S` | Save -`Cmd` `Z` | Undo -`Cmd` `Shift` `Z` | Redo -`Cmd` `A` | Select all -`Cmd` `X` | Cut -`Cmd` `C` | Copy -`Cmd` `V` | Paste -`Cmd` `F` | Find -`Cmd` `G` | Find next -`Cmd` `Shift` `G` | Find previous -`Cmd` `/` | Toggle comment -`Cmd` `[` | Indent selection -`Cmd` `]` | Dedent selection -`Cmd` `Shift` `[` | Move to previous tab -`Cmd` `Shift` `]` | Move to next tab -`Cmd` `4` | Toggle preview, in editor only -`Cmd` `K` | Clear scrollback, in terminal and playgrounds only -{.shortcuts} +| Shortcut | Action | +| ----------------- | ------------------------------------------------------------- | +| `Esc` | Show completions | +| `Tab` | Insert indent, depending on the preferences of tabs or spaces | +| `Cmd` `N` | New document tab | +| `Cmd` `W` | Close tab | +| `Cmd` `S` | Save | +| `Cmd` `Z` | Undo | +| `Cmd` `Shift` `Z` | Redo | +| `Cmd` `A` | Select all | +| `Cmd` `X` | Cut | +| `Cmd` `C` | Copy | +| `Cmd` `V` | Paste | +| `Cmd` `F` | Find | +| `Cmd` `G` | Find next | +| `Cmd` `Shift` `G` | Find previous | +| `Cmd` `/` | Toggle comment | +| `Cmd` `[` | Indent selection | +| `Cmd` `]` | Dedent selection | +| `Cmd` `Shift` `[` | Move to previous tab | +| `Cmd` `Shift` `]` | Move to next tab | +| `Cmd` `4` | Toggle preview, in editor only | +| `Cmd` `K` | Clear scrollback, in terminal and playgrounds only | +{.shortcuts} ### General Shortcuts II -Shortcut | Action ----|--- -`Cmd` `R` | Reload, in preview only -`Cmd` `Left` | Back, in preview only -`Cmd` `Right` | Forward, in preview only -`Shift` `Left` | Select the previous character -`Shift` `Right` | Select the next character -`Cmd` `Left` | Move to the beginning of the current line -`Cmd` `Right` | Move to the end of the current line -`Cmd` `Shift` `Left` | Select to the beginning of the current line -`Cmd` `Shift` `Right` | Select to the end of the current line -`Opt` `Left` | Move to the beginning of the current word -`Opt` `Right` | Move to the end of the current word -`Opt` `Shift` `Left` | Select to the beginning of the current word -`Opt` `Shift` `Right` | Select to the end of the current word -`Cmd` `Del` | Delete to the beginning of the current line -`Cmd` `Opt` `Del` | Delete to the beginning of the current word -`Cmd` `Del (forward)` | Delete to the end of the current line -`Cmd` `Opt` `Del (forward)` | Delete to the end of the current word -`Ctrl` `A` | Move to the beginning of the current line -`Ctrl` `Shift` `A` | Select to the beginning of the current line -`Ctrl` `E` | Move to the end of the current line -`Ctrl` `Shift` `E` | Select to the end of the current line -`Ctrl` `K` | Delete to the end of the current line +| Shortcut | Action | +| --------------------------- | ------------------------------------------- | +| `Cmd` `R` | Reload, in preview only | +| `Cmd` `Left` | Back, in preview only | +| `Cmd` `Right` | Forward, in preview only | +| `Shift` `Left` | Select the previous character | +| `Shift` `Right` | Select the next character | +| `Cmd` `Left` | Move to the beginning of the current line | +| `Cmd` `Right` | Move to the end of the current line | +| `Cmd` `Shift` `Left` | Select to the beginning of the current line | +| `Cmd` `Shift` `Right` | Select to the end of the current line | +| `Opt` `Left` | Move to the beginning of the current word | +| `Opt` `Right` | Move to the end of the current word | +| `Opt` `Shift` `Left` | Select to the beginning of the current word | +| `Opt` `Shift` `Right` | Select to the end of the current word | +| `Cmd` `Del` | Delete to the beginning of the current line | +| `Cmd` `Opt` `Del` | Delete to the beginning of the current word | +| `Cmd` `Del (forward)` | Delete to the end of the current line | +| `Cmd` `Opt` `Del (forward)` | Delete to the end of the current word | +| `Ctrl` `A` | Move to the beginning of the current line | +| `Ctrl` `Shift` `A` | Select to the beginning of the current line | +| `Ctrl` `E` | Move to the end of the current line | +| `Ctrl` `Shift` `E` | Select to the end of the current line | +| `Ctrl` `K` | Delete to the end of the current line | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for the Code Editor iOS app](https://library.panic.com/code-editor/shortcut-keys/) _(library.panic.com)_ +- [Keyboard shortcuts for the Code Editor iOS app](https://library.panic.com/code-editor/shortcut-keys/) + _(library.panic.com)_ diff --git a/source/_posts/conventional-commits.md b/source/_posts/conventional-commits.md index 329dec9..180f906 100644 --- a/source/_posts/conventional-commits.md +++ b/source/_posts/conventional-commits.md @@ -11,15 +11,12 @@ intro: | plugins: --- - - -Getting Started {.cols-3} ----- +## Getting Started {.cols-3} ### Quick Guide - #### Why Conventional Commits + - Easy-to-follow structure for commit messages. - Clearly states the nature of changes. - Ensures uniformity in commit messages across teams. @@ -31,21 +28,18 @@ Getting Started {.cols-3} - Makes the review process efficient. - Helps in future troubleshooting with descriptive commit messages. - #### Structure ```javascript [optional scope]: - + [optional body] - + [optional footer(s)] ``` [Official Website](https://www.conventionalcommits.org/en) {.link-arrow} - - ### Examples - feat: add jwt support @@ -65,11 +59,10 @@ Getting Started {.cols-3} - ci: add job for integration tests - revert: revert commit a1b2c3d4e5f - - ### Types + | Type | Description | -|----------|------------------------------------------------------------------------------------------------------------------| +| -------- | ---------------------------------------------------------------------------------------------------------------- | | `feat` | Introduces a new feature | | `fix` | Fixes a bug | | `docs` | Changes in documentation only | @@ -81,11 +74,10 @@ Getting Started {.cols-3} | build | Changes affecting the build system or external dependencies (e.g., changes in webpack, npm packages) | | ci | Changes to Continuous Integration configuration files and scripts (e.g., Travis, CircleCI, Jenkins) | | revert | Reverts a previously made commit | + {.bold-first} - -Specification {.cols-1} ----- +## Specification {.cols-1} ### Specification @@ -101,8 +93,8 @@ Specification {.cols-1} the code changes. The body MUST begin one blank line after the description. - A commit body is free-form and MAY consist of any number of newline separated paragraphs. - One or more footers MAY be provided one blank line after the body. Each footer MUST consist of a word token, followed - by either a : or # separator, followed by a string value (this is inspired by - the [git trailer convention](https://git-scm.com/docs/git-interpret-trailers)). + by either a : or # separator, followed by a string value (this is inspired by the + [git trailer convention](https://git-scm.com/docs/git-interpret-trailers)). - A footer’s token MUST use - in place of whitespace characters, e.g., Acked-by (this helps differentiate the footer section from a multi-paragraph body). An exception is made for BREAKING CHANGE, which MAY also be used as a token. - A footer’s value MAY contain spaces and newlines, and parsing MUST terminate when the next valid footer @@ -118,7 +110,6 @@ Specification {.cols-1} the exception of BREAKING CHANGE which MUST be uppercase. - BREAKING-CHANGE MUST be synonymous with BREAKING CHANGE, when used as a token in a footer. -Also see --------- +## Also see - [Conventional Commits](https://conventionalcommits.org/) _(conventionalcommits.org)_ diff --git a/source/_posts/dart.md b/source/_posts/dart.md index 6869657..691b197 100644 --- a/source/_posts/dart.md +++ b/source/_posts/dart.md @@ -3,31 +3,28 @@ title: Dart date: 2021-11-04 10:12:25 background: bg-[#58aee9] tags: - - dart - - flutter + - dart + - flutter categories: - Programming intro: | - A Dart cheat sheet with the most important concepts, functions, methods, and more. A complete quick reference for beginners. + A Dart cheat sheet with the most important concepts, functions, methods, and more. A complete quick reference for beginners. plugins: - - copyCode + - copyCode --- - - - -Getting Started {.cols-2} ------------- +## Getting Started {.cols-2} ### hello.dart + ```dart // top-level function where app execution starts void main(){ print("Hello World!"); // Print to console } ``` -Every app has a main() function +Every app has a main() function ### Variables @@ -46,7 +43,6 @@ final String email = "temid@gmail.com"; // you can't change the value const qty = 5; // Compile-time constant ``` - ### Datatypes ```dart @@ -65,7 +61,6 @@ bool isFavourite = true; bool isLoaded = false; ``` - ### String interpolation ```dart @@ -84,6 +79,7 @@ print(upperCase); //Print: NICOLA ``` ### Comments + ```dart // This is a normal, one-line comment. @@ -95,6 +91,7 @@ print(upperCase); //Print: NICOLA ``` ### Imports + ```dart // Importing core libraries import 'dart:math'; @@ -106,11 +103,10 @@ import 'package:test/test.dart'; import 'path/to/my_other_file.dart'; ``` - -Operators {.cols-2} ------------- +## Operators {.cols-2} ### Arithmatic Operators + ```dart print(2 + 3); //Print: 5 print(2 - 3); //Print: -1 @@ -129,8 +125,8 @@ b = --a; // predecrement - Decrement a before b gets its value. b = a--; // postdecrement - Decrement a AFTER b gets its value. ``` - ### Equality and relational operators + ```dart print(2 == 2); //Print: true - Equal print(2 != 3); //Print: true - Not Equal @@ -140,8 +136,8 @@ print(3 >= 3); //Print: true - Greater than or equal to print(2 <= 3); //Print: true - Less than or equal to ``` - ### Logical operators + ```dart // !expr inverts the expression (changes false to true, and vice versa) // || logical OR @@ -153,14 +149,10 @@ if (!isOutOfStock && (quantity == 2 || quantity == 3)) { } ``` - - - -Control Flows : Conditionals {.cols-2} ------------- - +## Control Flows : Conditionals {.cols-2} ### if and else if + ```dart if(age < 18){ print("Teen"); @@ -171,8 +163,8 @@ if(age < 18){ } ``` - ### switch case + ```dart enum Pet {dog, cat} Pet myPet = Pet.dog; @@ -189,30 +181,30 @@ switch(myPet){ // Prints: My Pet is Dog. ``` - - - -Control Flows : Loops ------------- - +## Control Flows : Loops ### while loop + ```dart while (!dreamsAchieved) { workHard(); } ``` + while loop check condition before iteration of the loop ### do-while loop + ```dart do { workHard(); } while (!dreamsAchieved); ``` + do-while loop verifies the condition after the execution of the statements inside the loop ### for loop + ```dart for(int i=0; i< 10; i++){ print(i); @@ -225,10 +217,7 @@ for(var number in numbers){ } ``` - - -Collections {.cols-2} ------------- +## Collections {.cols-2} ### Lists @@ -247,7 +236,6 @@ List cities = ["New York", "Mumbai", "Tokyo"]; const constantCities = const ["New York", "Mumbai", "Tokyo"]; ``` - ### Sets ```dart @@ -260,7 +248,6 @@ Set names = {}; // This works, too. //var names = {}; // Creates a map, not a set. ``` - ### Maps ```dart @@ -282,12 +269,10 @@ var nobleGases = { }; ``` - - -Functions {.cols-2} ------------- +## Functions {.cols-2} ### Functions + ```dart // functions in dart are objects and have a type int add(int a, int b){ @@ -301,14 +286,15 @@ int sum = add(2,3); // returns: 5 int totalSum = add(2, add(2,3)); // returns : 7 ``` +### Arrow Syntax (=>) -### Arrow Syntax (=>) ```dart // functions that contain just one expression, you can use a shorthand syntax bool isFav(Product product) => favProductsList.contains(product); ``` ### Anonymous (lambda) functions + ```dart // small one line functions that dont have name int add(a,b) => a+b; @@ -320,10 +306,10 @@ list.forEach( //Prints: 0: apples 1: bananas 2: oranges ``` -Classes and Objects ----------- +## Classes and Objects ### Class + ```dart class Cat { String name; @@ -335,8 +321,8 @@ class Cat { } ``` - ### Object + ```dart // instance of a class // below myCat is Object of class Cat @@ -348,8 +334,8 @@ void main(){ } ``` - ### Constructors + ```dart class Cat { String name; @@ -361,8 +347,8 @@ void main(){ } ``` - ### Abstract Classes + ```dart // abstract class—a class that can’t be instantiated // This class is declared abstract and thus can't be instantiated. @@ -373,13 +359,13 @@ abstract class AbstractContainer { } ``` - ### Getters Setters + ```dart // provide read and write access to an object’s properties class Cat { String name; - + // getter String get catName { return name; @@ -392,11 +378,10 @@ class Cat { } ``` - -Implicit interfaces {.cols-2} ------------- +## Implicit interfaces {.cols-2} ### A basic interface + ```dart // A person. The implicit interface contains greet(). class Person { @@ -426,6 +411,7 @@ void main() { ``` ### Extending a class + ```dart class Phone { @@ -445,10 +431,10 @@ class SmartPhone extends Phone { } ``` -Exceptions ------------- +## Exceptions ### Throw + ```dart // throws or raises and exception throw IntegerDivisionByZeroException(); @@ -457,7 +443,8 @@ throw IntegerDivisionByZeroException(); throw "Product out of stock!"; ``` -### Catch +### Catch + ```dart try { @@ -475,7 +462,9 @@ try { } ``` + ### Finally + ```dart // To ensure that some code runs whether or not an exception is thrown try { @@ -487,10 +476,10 @@ try { } ``` +## Futures -Futures ------------- ### Async Await + ```dart // functions which are asynchronous: they return after setting up a possibly time-consuming operation // The async and await keywords support asynchronous programming @@ -509,12 +498,12 @@ main() async { } ``` -Extensions {.cols-2} ----------- +## Extensions {.cols-2} ### Why use extensions? {.row-span-2} + ```dart -// Extensions allow you to add methods to existing +// Extensions allow you to add methods to existing // classes without modifying them. // Instead of defining a util class. @@ -528,7 +517,7 @@ class StringUtil { print(StringUtil.isValidEmail('someString')); //Print: false // We can define an extension which will be applied -// on a certain type. +// on a certain type. extension StringExtensions on String { bool get isValidEmail { @@ -538,10 +527,12 @@ extension StringExtensions on String { } print('test@example.com'.isValidEmail); //Print: true -print('SomeString'.isValidEmail); //Print: false +print('SomeString'.isValidEmail); //Print: false ``` + ### Generic Extensions + ```dart // allows you to apply the same logic to a range of types. extension NumGenericExtensions on T { @@ -552,6 +543,7 @@ print(7.addTwo()); // Print: 9 ``` ### Dart Extensions in Flutter + ```dart extension ContextExtension on BuildContext { double get screenHeight => MediaQuery.of(this).size.height; @@ -572,9 +564,7 @@ Widget build(BuildContext context) => MaterialApp( ); ``` - -Miscellaneous {.cols-2} ------------- +## Miscellaneous {.cols-2} ### Null and Null aware @@ -592,9 +582,8 @@ print(x); // Print: 6 - result is still 6 print(null ?? 10); // Prints: 10. Display the value on the left if it's not null else return the value on the right ``` - - ### Ternary Operator + ```dart // condition ? exprIfTrue : exprIfFalse bool isAvailable; @@ -602,7 +591,6 @@ bool isAvailable; isAvailable ? orderproduct() : addToFavourite(); ``` - ### Spread Operator (...) ```dart @@ -632,6 +620,7 @@ var user = User() ``` ### Conditional Property Access + ```dart userObject?.userName diff --git a/source/_posts/express.md b/source/_posts/express.md index e969fcf..9116754 100644 --- a/source/_posts/express.md +++ b/source/_posts/express.md @@ -10,17 +10,15 @@ categories: intro: | A quick reference cheatsheet for Express, a flexible and streamlined web framework for Node.js plugins: - - copyCode + - copyCode --- -Getting Started ---- - - +## Getting Started ### Hello World {.row-span-2} - "Create project, add `package.json` configuration + ```bash $ mkdir myapp # create directory $ cd myapp # enter the directory @@ -28,30 +26,30 @@ Getting Started ``` - Install dependencies + ```bash $ npm install express ``` - Entry file `index.js` add code: + ```js - const express = require('express') - const app = express() - const port = 3000 - app.get('/', (req, res) => { - res. send('Hello World!') - }) - app. listen(port, () => { - console.log(`Listening port on ${port}`) - }) + const express = require("express"); + const app = express(); + const port = 3000; + app.get("/", (req, res) => { + res.send("Hello World!"); + }); + app.listen(port, () => { + console.log(`Listening port on ${port}`); + }); ``` - Run the application using the following command ```bash $ node index.js ``` -{.marker-timeline} - - + {.marker-timeline} ### express -h {.row-span-2} @@ -70,6 +68,7 @@ Options: --git add .gitignore -f, --force force non-empty directories ``` + {.wrap-text} Create a `myapp` project @@ -80,382 +79,328 @@ $ express --view=pug myapp $ DEBUG=myapp:*npm start ``` - - ### express() -:-| :- -:-| :- -`express.json()` | [#](http://expressjs.com/en/4x/api.html#express.json) -`express.raw()` | [#](http://expressjs.com/en/4x/api.html#express.raw) -`express.Router()` | [#](http://expressjs.com/en/4x/api.html#express.router) -`express.static()` | [#](http://expressjs.com/en/4x/api.html#express.static) -`express.text()` | [#](http://expressjs.com/en/4x/api.html#express.text) -`express.urlencoded()` | [#](http://expressjs.com/en/4x/api.html#express.urlencoded) - - +| :- | :- | +| :--------------------- | :---------------------------------------------------------- | +| `express.json()` | [#](http://expressjs.com/en/4x/api.html#express.json) | +| `express.raw()` | [#](http://expressjs.com/en/4x/api.html#express.raw) | +| `express.Router()` | [#](http://expressjs.com/en/4x/api.html#express.router) | +| `express.static()` | [#](http://expressjs.com/en/4x/api.html#express.static) | +| `express.text()` | [#](http://expressjs.com/en/4x/api.html#express.text) | +| `express.urlencoded()` | [#](http://expressjs.com/en/4x/api.html#express.urlencoded) | ### Router -:-| :- -:-| :- -`router.all()` | [#](http://expressjs.com/en/4x/api.html#router.all) -`router.METHOD()` | [#](http://expressjs.com/en/4x/api.html#router.METHOD) -`router.param()` | [#](http://expressjs.com/en/4x/api.html#router.param) -`router.route()` | [#](http://expressjs.com/en/4x/api.html#router.route) -`router.use()` | [#](http://expressjs.com/en/4x/api.html#router.use) - - +| :- | :- | +| :---------------- | :----------------------------------------------------- | +| `router.all()` | [#](http://expressjs.com/en/4x/api.html#router.all) | +| `router.METHOD()` | [#](http://expressjs.com/en/4x/api.html#router.METHOD) | +| `router.param()` | [#](http://expressjs.com/en/4x/api.html#router.param) | +| `router.route()` | [#](http://expressjs.com/en/4x/api.html#router.route) | +| `router.use()` | [#](http://expressjs.com/en/4x/api.html#router.use) | ### Application ```js -var express = require('express') -var app = express() +var express = require("express"); +var app = express(); -console.dir(app.locals.title) +console.dir(app.locals.title); //=> 'My App' -console.dir(app.locals.email) +console.dir(app.locals.email); //=> 'me@myapp.com' ``` - - #### Attribute -:-| :- -:-| :- -`app.locals` | Local variables in the application [#](http://expressjs.com/en/4x/api.html#app.locals) -`app.mountpath` | Path pattern for mounting sub-apps [#](http://expressjs.com/en/4x/api.html#app.mountpath) - - +| :- | :- | +| :-------------- | :---------------------------------------------------------------------------------------- | +| `app.locals` | Local variables in the application [#](http://expressjs.com/en/4x/api.html#app.locals) | +| `app.mountpath` | Path pattern for mounting sub-apps [#](http://expressjs.com/en/4x/api.html#app.mountpath) | #### Events -:-| :- -:-| :- -`mount` | The child application is mounted on the parent application, and the event is triggered on the child application [#](http://expressjs.com/en/4x/api.html#app.onmount) - - +| :- | :- | +| :------ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `mount` | The child application is mounted on the parent application, and the event is triggered on the child application [#](http://expressjs.com/en/4x/api.html#app.onmount) | #### Method -:-| :- -:-| :- -`app.all()` | [#](http://expressjs.com/en/4x/api.html#app.all) -`app.delete()` | [#](http://expressjs.com/en/4x/api.html#app.delete.method) -`app.disable()` | [#](http://expressjs.com/en/4x/api.html#app.disable) -`app.disabled()` | [#](http://expressjs.com/en/4x/api.html#app.disabled) -`app.enable()` | [#](http://expressjs.com/en/4x/api.html#app.enable) -`app.enabled()` | [#](http://expressjs.com/en/4x/api.html#app.enabled) -`app.engine()` | [#](http://expressjs.com/en/4x/api.html#app.engine) -`app.get(name)` | [#](http://expressjs.com/en/4x/api.html#app.get) -`app.get(path, callback)` | [#](http://expressjs.com/en/4x/api.html#app.get.method) -`app.listen()` | [#](http://expressjs.com/en/4x/api.html#app.listen) -`app.METHOD()` | [#](http://expressjs.com/en/4x/api.html#app.METHOD) -`app.param()` | [#](http://expressjs.com/en/4x/api.html#app.param) -`app.path()` | [#](http://expressjs.com/en/4x/api.html#app.path) -`app.post()` | [#](http://expressjs.com/en/4x/api.html#app.post.method) -`app.put()` | [#](http://expressjs.com/en/4x/api.html#app.put.method) -`app.render()` | [#](http://expressjs.com/en/4x/api.html#app.render) -`app.route()` | [#](http://expressjs.com/en/4x/api.html#app.route) -`app.set()` | [#](http://expressjs.com/en/4x/api.html#app.set) -`app.use()` | [#](http://expressjs.com/en/4x/api.html#app.use) - - +| :- | :- | +| :------------------------ | :--------------------------------------------------------- | +| `app.all()` | [#](http://expressjs.com/en/4x/api.html#app.all) | +| `app.delete()` | [#](http://expressjs.com/en/4x/api.html#app.delete.method) | +| `app.disable()` | [#](http://expressjs.com/en/4x/api.html#app.disable) | +| `app.disabled()` | [#](http://expressjs.com/en/4x/api.html#app.disabled) | +| `app.enable()` | [#](http://expressjs.com/en/4x/api.html#app.enable) | +| `app.enabled()` | [#](http://expressjs.com/en/4x/api.html#app.enabled) | +| `app.engine()` | [#](http://expressjs.com/en/4x/api.html#app.engine) | +| `app.get(name)` | [#](http://expressjs.com/en/4x/api.html#app.get) | +| `app.get(path, callback)` | [#](http://expressjs.com/en/4x/api.html#app.get.method) | +| `app.listen()` | [#](http://expressjs.com/en/4x/api.html#app.listen) | +| `app.METHOD()` | [#](http://expressjs.com/en/4x/api.html#app.METHOD) | +| `app.param()` | [#](http://expressjs.com/en/4x/api.html#app.param) | +| `app.path()` | [#](http://expressjs.com/en/4x/api.html#app.path) | +| `app.post()` | [#](http://expressjs.com/en/4x/api.html#app.post.method) | +| `app.put()` | [#](http://expressjs.com/en/4x/api.html#app.put.method) | +| `app.render()` | [#](http://expressjs.com/en/4x/api.html#app.render) | +| `app.route()` | [#](http://expressjs.com/en/4x/api.html#app.route) | +| `app.set()` | [#](http://expressjs.com/en/4x/api.html#app.set) | +| `app.use()` | [#](http://expressjs.com/en/4x/api.html#app.use) | ### Request - - #### Attribute -:-| :- -:-| :- -`req.app` | [#](http://expressjs.com/en/4x/api.html#req.app) -`req.baseUrl` | [#](http://expressjs.com/en/4x/api.html#req.baseUrl) -`req.body` | [#](http://expressjs.com/en/4x/api.html#req.body) -`req.cookies` | [#](http://expressjs.com/en/4x/api.html#req.cookies) -`req.fresh` | [#](http://expressjs.com/en/4x/api.html#req.fresh) -`req.hostname` | [#](http://expressjs.com/en/4x/api.html#req.hostname) -`req.ip` | [#](http://expressjs.com/en/4x/api.html#req.ip) -`req.ips` | [#](http://expressjs.com/en/4x/api.html#req.ips) -`req.method` | [#](http://expressjs.com/en/4x/api.html#req.method) -`req.originalUrl` | [#](http://expressjs.com/en/4x/api.html#req.originalUrl) -`req.params` | [#](http://expressjs.com/en/4x/api.html#req.params) -`req.path` | [#](http://expressjs.com/en/4x/api.html#req.path) -`req.protocol` | [#](http://expressjs.com/en/4x/api.html#req.protocol) -`req.query` | [#](http://expressjs.com/en/4x/api.html#req.query) -`req.route` | [#](http://expressjs.com/en/4x/api.html#req.route) -`req.secure` | [#](http://expressjs.com/en/4x/api.html#req.secure) -`req.signedCookies` | [#](http://expressjs.com/en/4x/api.html#req.signedCookies) -`req.stale` | [#](http://expressjs.com/en/4x/api.html#req.stale) -`req.subdomains` | [#](http://expressjs.com/en/4x/api.html#req.subdomains) -`req.xhr` | [#](http://expressjs.com/en/4x/api.html#req.xhr) - - +| :- | :- | +| :------------------ | :--------------------------------------------------------- | +| `req.app` | [#](http://expressjs.com/en/4x/api.html#req.app) | +| `req.baseUrl` | [#](http://expressjs.com/en/4x/api.html#req.baseUrl) | +| `req.body` | [#](http://expressjs.com/en/4x/api.html#req.body) | +| `req.cookies` | [#](http://expressjs.com/en/4x/api.html#req.cookies) | +| `req.fresh` | [#](http://expressjs.com/en/4x/api.html#req.fresh) | +| `req.hostname` | [#](http://expressjs.com/en/4x/api.html#req.hostname) | +| `req.ip` | [#](http://expressjs.com/en/4x/api.html#req.ip) | +| `req.ips` | [#](http://expressjs.com/en/4x/api.html#req.ips) | +| `req.method` | [#](http://expressjs.com/en/4x/api.html#req.method) | +| `req.originalUrl` | [#](http://expressjs.com/en/4x/api.html#req.originalUrl) | +| `req.params` | [#](http://expressjs.com/en/4x/api.html#req.params) | +| `req.path` | [#](http://expressjs.com/en/4x/api.html#req.path) | +| `req.protocol` | [#](http://expressjs.com/en/4x/api.html#req.protocol) | +| `req.query` | [#](http://expressjs.com/en/4x/api.html#req.query) | +| `req.route` | [#](http://expressjs.com/en/4x/api.html#req.route) | +| `req.secure` | [#](http://expressjs.com/en/4x/api.html#req.secure) | +| `req.signedCookies` | [#](http://expressjs.com/en/4x/api.html#req.signedCookies) | +| `req.stale` | [#](http://expressjs.com/en/4x/api.html#req.stale) | +| `req.subdomains` | [#](http://expressjs.com/en/4x/api.html#req.subdomains) | +| `req.xhr` | [#](http://expressjs.com/en/4x/api.html#req.xhr) | #### Method -:-| :- -:-| :- -`req.accepts()` | [#](http://expressjs.com/en/4x/api.html#req.accepts) -`req.acceptsCharsets()` | [#](http://expressjs.com/en/4x/api.html#req.acceptsCharsets) -`req.acceptsEncodings()` | [#](http://expressjs.com/en/4x/api.html#req.acceptsEncodings) -`req.acceptsLanguages()` | [#](http://expressjs.com/en/4x/api.html#req.acceptsLanguages) -`req.get()` | Get HTTP request header fields [#](http://expressjs.com/en/4x/api.html#req.get) -`req.is()` | [#](http://expressjs.com/en/4x/api.html#req.is) -`req.param()` | [#](http://expressjs.com/en/4x/api.html#req.param) -`req.range()` | [#](http://expressjs.com/en/4x/api.html#req.range) - - +| :- | :- | +| :----------------------- | :------------------------------------------------------------------------------ | +| `req.accepts()` | [#](http://expressjs.com/en/4x/api.html#req.accepts) | +| `req.acceptsCharsets()` | [#](http://expressjs.com/en/4x/api.html#req.acceptsCharsets) | +| `req.acceptsEncodings()` | [#](http://expressjs.com/en/4x/api.html#req.acceptsEncodings) | +| `req.acceptsLanguages()` | [#](http://expressjs.com/en/4x/api.html#req.acceptsLanguages) | +| `req.get()` | Get HTTP request header fields [#](http://expressjs.com/en/4x/api.html#req.get) | +| `req.is()` | [#](http://expressjs.com/en/4x/api.html#req.is) | +| `req.param()` | [#](http://expressjs.com/en/4x/api.html#req.param) | +| `req.range()` | [#](http://expressjs.com/en/4x/api.html#req.range) | ### Response ```js -app.get('/', function (req, res) { - console.dir(res.headersSent) //false - res.send('OK') -console.dir(res.headersSent) //true -}) +app.get("/", function (req, res) { + console.dir(res.headersSent); //false + res.send("OK"); + console.dir(res.headersSent); //true +}); ``` - - #### Attribute -:-| :- -:-| :- -`res.app` | [#](http://expressjs.com/en/4x/api.html#res.app) -`res.headersSent` | [#](http://expressjs.com/en/4x/api.html#res.headersSent) -`res.locals` | [#](http://expressjs.com/en/4x/api.html#res.locals) - - +| :- | :- | +| :---------------- | :------------------------------------------------------- | +| `res.app` | [#](http://expressjs.com/en/4x/api.html#res.app) | +| `res.headersSent` | [#](http://expressjs.com/en/4x/api.html#res.headersSent) | +| `res.locals` | [#](http://expressjs.com/en/4x/api.html#res.locals) | #### Method -:-| :- -:-| :- -`res.append()` | [#](http://expressjs.com/en/4x/api.html#res.append) -`res.attachment()` | [#](http://expressjs.com/en/4x/api.html#res.attachment) -`res.cookie()` | [#](http://expressjs.com/en/4x/api.html#res.cookie) -`res.clearCookie()` | [#](http://expressjs.com/en/4x/api.html#res.clearCookie) -`res.download()` | Prompt for files to download [#](http://expressjs.com/en/4x/api.html#res.download) -`res.end()` | end the response process [#](http://expressjs.com/en/4x/api.html#res.end) -`res.format()` | [#](http://expressjs.com/en/4x/api.html#res.format) -`res.get()` | [#](http://expressjs.com/en/4x/api.html#res.get) -`res.json()` | Send JSON response [#](http://expressjs.com/en/4x/api.html#res.json) -`res.jsonp()` | Send a response with JSONP support [#](http://expressjs.com/en/4x/api.html#res.jsonp) -`res.links()` | [#](http://expressjs.com/en/4x/api.html#res.links) -`res.location()` | [#](http://expressjs.com/en/4x/api.html#res.location) -`res.redirect()` | Redirect request [#](http://expressjs.com/en/4x/api.html#res.redirect) -`res.render()` | render view template [#](http://expressjs.com/en/4x/api.html#res.render) -`res.send()` | Send various types of responses [#](http://expressjs.com/en/4x/api.html#res.send) -`res.sendFile()` | Send a file as an octet stream [#](http://expressjs.com/en/4x/api.html#res.sendFile) -`res.sendStatus()` | [#](http://expressjs.com/en/4x/api.html#res.sendStatus) -`res.set()` | [#](http://expressjs.com/en/4x/api.html#res.set) -`res.status()` | [#](http://expressjs.com/en/4x/api.html#res.status) -`res.type()` | [#](http://expressjs.com/en/4x/api.html#res.type) -`res.vary()` | [#](http://expressjs.com/en/4x/api.html#res.vary) - - - - - - - -Example ----- +| :- | :- | +| :------------------ | :------------------------------------------------------------------------------------ | +| `res.append()` | [#](http://expressjs.com/en/4x/api.html#res.append) | +| `res.attachment()` | [#](http://expressjs.com/en/4x/api.html#res.attachment) | +| `res.cookie()` | [#](http://expressjs.com/en/4x/api.html#res.cookie) | +| `res.clearCookie()` | [#](http://expressjs.com/en/4x/api.html#res.clearCookie) | +| `res.download()` | Prompt for files to download [#](http://expressjs.com/en/4x/api.html#res.download) | +| `res.end()` | end the response process [#](http://expressjs.com/en/4x/api.html#res.end) | +| `res.format()` | [#](http://expressjs.com/en/4x/api.html#res.format) | +| `res.get()` | [#](http://expressjs.com/en/4x/api.html#res.get) | +| `res.json()` | Send JSON response [#](http://expressjs.com/en/4x/api.html#res.json) | +| `res.jsonp()` | Send a response with JSONP support [#](http://expressjs.com/en/4x/api.html#res.jsonp) | +| `res.links()` | [#](http://expressjs.com/en/4x/api.html#res.links) | +| `res.location()` | [#](http://expressjs.com/en/4x/api.html#res.location) | +| `res.redirect()` | Redirect request [#](http://expressjs.com/en/4x/api.html#res.redirect) | +| `res.render()` | render view template [#](http://expressjs.com/en/4x/api.html#res.render) | +| `res.send()` | Send various types of responses [#](http://expressjs.com/en/4x/api.html#res.send) | +| `res.sendFile()` | Send a file as an octet stream [#](http://expressjs.com/en/4x/api.html#res.sendFile) | +| `res.sendStatus()` | [#](http://expressjs.com/en/4x/api.html#res.sendStatus) | +| `res.set()` | [#](http://expressjs.com/en/4x/api.html#res.set) | +| `res.status()` | [#](http://expressjs.com/en/4x/api.html#res.status) | +| `res.type()` | [#](http://expressjs.com/en/4x/api.html#res.type) | +| `res.vary()` | [#](http://expressjs.com/en/4x/api.html#res.vary) | +## Example ### Router {. row-span-2} Called for any request passed to this router ```js -router. use(function (req, res, next) { +router.use(function (req, res, next) { //.. some logic here .. like any other middleware - next() -}) + next(); +}); ``` will handle any request ending in `/events` ```js //depends on where the router "use()" -router. get('/events', (req, res, next) => { +router.get("/events", (req, res, next) => { //.. -}) +}); ``` - - ### Response The `res` object represents the HTTP response sent by the `Express` application when it receives an HTTP request ```js -app.get('/user/:id', (req, res) => { - res.send('user' + req.params.id) -}) +app.get("/user/:id", (req, res) => { + res.send("user" + req.params.id); +}); ``` - - ### Request -A `req` object represents an `HTTP` request and has properties for the request query string, parameters, body, HTTP headers, etc. +A `req` object represents an `HTTP` request and has properties for the request query string, parameters, body, HTTP +headers, etc. ```js -app.get('/user/:id', (req, res) => { - res.send('user' + req.params.id) -}) +app.get("/user/:id", (req, res) => { + res.send("user" + req.params.id); +}); ``` - - ### res. end() ```js -res. end() -res.status(404).end() +res.end(); +res.status(404).end(); ``` -End the response process. This method actually comes from the Node core, specifically the `response.end()` method of `http.ServerResponse` - +End the response process. This method actually comes from the Node core, specifically the `response.end()` method of +`http.ServerResponse` ### res.json([body]) ```js -res.json(null) -res.json({ user: 'tobi' }) -res.status(500).json({ error: 'message' }) +res.json(null); +res.json({ user: "tobi" }); +res.status(500).json({ error: "message" }); ``` - - ### app.all ```js -app.all('/secret', function (req, res, next) { - console.log('access secret section...') - next() // Pass control to the next handler -}) +app.all("/secret", function (req, res, next) { + console.log("access secret section..."); + next(); // Pass control to the next handler +}); ``` - - ### app.delete ```js -app.delete('/', function (req, res) { - res.send('DELETE request to homepage') -}) +app.delete("/", function (req, res) { + res.send("DELETE request to homepage"); +}); ``` - - ### app.disable(name) ```js -app.disable('trust proxy') -app.get('trust proxy') +app.disable("trust proxy"); +app.get("trust proxy"); // => false ``` - - ### app.disabled(name) ```js -app.disabled('trust proxy') +app.disabled("trust proxy"); // => true -app.enable('trust proxy') -app.disabled('trust proxy') +app.enable("trust proxy"); +app.disabled("trust proxy"); // => false ``` - - ### app.engine(ext, callback) ```js -var engines = require('consolidate') +var engines = require("consolidate"); -app.engine('haml', engines.haml) -app.engine('html', engines.hogan) +app.engine("haml", engines.haml); +app.engine("html", engines.hogan); ``` - - ### app.listen([port[, host[, backlog]]][, callback]) ```js -var express = require('express') +var express = require("express"); -var app = express() -app.listen(3000) +var app = express(); +app.listen(3000); ``` - ### Routing + ```js -const express = require('express') -const app = express() +const express = require("express"); +const app = express(); //Respond to "hello world" when making a GET request to the homepage -app.get('/', (req, res) => { - res.send('hello world') -}) +app.get("/", (req, res) => { + res.send("hello world"); +}); ``` ```js // GET method routing -app.get('/', (req, res) => { - res.send('GET request to the homepage') -}) +app.get("/", (req, res) => { + res.send("GET request to the homepage"); +}); // POST method routing -app.post('/', (req, res) => { - res.send('POST request to the homepage') -}) +app.post("/", (req, res) => { + res.send("POST request to the homepage"); +}); ``` - ### Middleware ```js -function logOriginalUrl (req, res, next) { - console.log('ReqURL:', req.originalUrl) - next() +function logOriginalUrl(req, res, next) { + console.log("ReqURL:", req.originalUrl); + next(); } -function logMethod (req, res, next) { - console.log('Request Type:', req.method) - next() +function logMethod(req, res, next) { + console.log("Request Type:", req.method); + next(); } -const log = [logOriginalUrl, logMethod] +const log = [logOriginalUrl, logMethod]; -app.get('/user/:id', log, - (req, res, next)=>{ - res.send('User Info') - } -) +app.get("/user/:id", log, (req, res, next) => { + res.send("User Info"); +}); ``` - - ### Using templates ```js -app.set('view engine', 'pug') +app.set("view engine", "pug"); ``` Create a `Pug` template file named `index.pug` in the `views` directory with the following content -``` pug +```pug html the head title= title @@ -463,12 +408,14 @@ html h1=message ``` -Create a route to render the `index.pug` file. If the view engine property is not set, the extension of the view file must be specified +Create a route to render the `index.pug` file. If the view engine property is not set, the extension of the view file +must be specified ```js -app.get('/', (req, res) => { - res. render('index', { - title: 'Hey', message: 'Hello there!' - }) -}) +app.get("/", (req, res) => { + res.render("index", { + title: "Hey", + message: "Hello there!", + }); +}); ``` diff --git a/source/_posts/figma.md b/source/_posts/figma.md index 362624e..38098b0 100644 --- a/source/_posts/figma.md +++ b/source/_posts/figma.md @@ -2,228 +2,221 @@ title: Figma date: 2022-11-23 16:23:31.706507 background: bg-[#935aee] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 119 keyboard shortcuts found in Figma + A visual cheat-sheet for the 119 keyboard shortcuts found in Figma --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Essential -Shortcut | Action ----|--- -`Ctrl` `\` | Show/Hide UI -`Ctrl` `C` | Pick Color -`Ctrl` `/` | Search Menu -{.shortcuts} +| Shortcut | Action | +| ---------- | ------------ | +| `Ctrl` `\` | Show/Hide UI | +| `Ctrl` `C` | Pick Color | +| `Ctrl` `/` | Search Menu | +{.shortcuts} ### Tools -Shortcut | Action ----|--- -`V` | Move Tool -`F` | Frame Tool -`P` | Pen Tool -`Shift` `P` | Pencil Tool -`T` | Text Tool -`R` | Rectangle Tool -`O` | Ellipse Tool -`L` | Line Tool -`Shift` `L` | Arrow Tool -`C` | Add/Show Comments -`Ctrl` `C` | Pick Color -`S` | Slice Tool -{.shortcuts} +| Shortcut | Action | +| ----------- | ----------------- | +| `V` | Move Tool | +| `F` | Frame Tool | +| `P` | Pen Tool | +| `Shift` `P` | Pencil Tool | +| `T` | Text Tool | +| `R` | Rectangle Tool | +| `O` | Ellipse Tool | +| `L` | Line Tool | +| `Shift` `L` | Arrow Tool | +| `C` | Add/Show Comments | +| `Ctrl` `C` | Pick Color | +| `S` | Slice Tool | +{.shortcuts} ### View -Shortcut | Action ----|--- -`Shift` `R` | Toggle Rulers -`Ctrl` `Y` | Show Outlines -`Ctrl` `P` | Pixel Preview -`Ctrl` `G` | Layout Grids -`Ctrl` `'` | Pixel Grid -`Ctrl` `\` | Show/Hide UI -`Ctrl` `Alt` `\` | Show Multiplayer Cursors -`Alt` `1` | Show Layers -`Alt` `2` | Show Components -`Alt` `3` | Show Team Library -{.shortcuts} +| Shortcut | Action | +| ---------------- | ------------------------ | +| `Shift` `R` | Toggle Rulers | +| `Ctrl` `Y` | Show Outlines | +| `Ctrl` `P` | Pixel Preview | +| `Ctrl` `G` | Layout Grids | +| `Ctrl` `'` | Pixel Grid | +| `Ctrl` `\` | Show/Hide UI | +| `Ctrl` `Alt` `\` | Show Multiplayer Cursors | +| `Alt` `1` | Show Layers | +| `Alt` `2` | Show Components | +| `Alt` `3` | Show Team Library | +{.shortcuts} ### Zoom -Shortcut | Action ----|--- -`Space` `(drag)` | Pan -`+` | Zoom In -`-` | Zoom Out -`Shift` `0` | Zoom to 100% -`Shift` `1` | Zoom to Fit -`Shift` `2` | Zoom to Selection -`Shift` `N` | Zoom to Previous Frame -`N` | Zoom to Next Frame -`PgUp` | Previous Page -`PgDown` | Next Page -`Home` | Find Previous Frame -`End` | Find Next Frame -{.shortcuts} +| Shortcut | Action | +| ---------------- | ---------------------- | +| `Space` `(drag)` | Pan | +| `+` | Zoom In | +| `-` | Zoom Out | +| `Shift` `0` | Zoom to 100% | +| `Shift` `1` | Zoom to Fit | +| `Shift` `2` | Zoom to Selection | +| `Shift` `N` | Zoom to Previous Frame | +| `N` | Zoom to Next Frame | +| `PgUp` | Previous Page | +| `PgDown` | Next Page | +| `Home` | Find Previous Frame | +| `End` | Find Next Frame | +{.shortcuts} ### Text -Shortcut | Action ----|--- -`Ctrl` `B` | Bold -`Ctrl` `I` | Italic -`Ctrl` `U` | Underline -`Ctrl` `Shift` `V` | Paste and Match Style -`Ctrl` `Alt` `L` | Text Alight Left -`Ctrl` `Alt` `T` | Text Align Center -`Ctrl` `Alt` `R` | Text Align Right -`Ctrl` `Alt` `J` | Text Align Justified -`Ctrl` `Shift` `` | Adjust Font Size -`Alt` `,/.` | Adjust Letter Spacing -`Alt` `Shift` `` | Adjust Line Height -{.shortcuts} +| Shortcut | Action | +| -------------------- | --------------------- | +| `Ctrl` `B` | Bold | +| `Ctrl` `I` | Italic | +| `Ctrl` `U` | Underline | +| `Ctrl` `Shift` `V` | Paste and Match Style | +| `Ctrl` `Alt` `L` | Text Alight Left | +| `Ctrl` `Alt` `T` | Text Align Center | +| `Ctrl` `Alt` `R` | Text Align Right | +| `Ctrl` `Alt` `J` | Text Align Justified | +| `Ctrl` `Shift` `` | Adjust Font Size | +| `Alt` `,/.` | Adjust Letter Spacing | +| `Alt` `Shift` `` | Adjust Line Height | +{.shortcuts} ### Shape -Shortcut | Action ----|--- -`P` | Pen -`Shift` `P` | Pencil -`B` | Paint Bucket (while editing shape) -`Ctrl` | Bend Tool (while editing shape) -`Alt` `/` | Remove Fill -`/` | Remove Stroke -`Shift` `X` | Swap Fill and Stroke -`Ctrl` `Shift` `O` | Outline Stroke -`Ctrl` `E` | Flatten Selection -`Ctrl` `J` | Join Selection (after selecting points) -`Ctrl` `Shift` `J` | Smooth Join Selection (after selecting points) -`Shift` `Backspace` | Delete and Heal Selection (after selecting points) -{.shortcuts} +| Shortcut | Action | +| ------------------- | -------------------------------------------------- | +| `P` | Pen | +| `Shift` `P` | Pencil | +| `B` | Paint Bucket (while editing shape) | +| `Ctrl` | Bend Tool (while editing shape) | +| `Alt` `/` | Remove Fill | +| `/` | Remove Stroke | +| `Shift` `X` | Swap Fill and Stroke | +| `Ctrl` `Shift` `O` | Outline Stroke | +| `Ctrl` `E` | Flatten Selection | +| `Ctrl` `J` | Join Selection (after selecting points) | +| `Ctrl` `Shift` `J` | Smooth Join Selection (after selecting points) | +| `Shift` `Backspace` | Delete and Heal Selection (after selecting points) | +{.shortcuts} ### Selection -Shortcut | Action ----|--- -`Ctrl` `A` | Select All -`Ctrl` `Shift` `A` | Select Inverse -`Esc` | Select None -`Ctrl` `(click)` | Deep Select -`Ctrl` `(right click)` | Select Layer Menu -`Enter` | Select Child -`Shift` `Enter` | Select Parents -`Tab` | Select Next Sibling -`Shift` `Tab` | Select Previous Sibling -`Ctrl` `G` | Group Selection -`Ctrl` `Shift` `G` | Ungroup Selection -`Ctrl` `Alt` `G` | Frame Selection -`Ctrl` `Shift` `H` | Show/Hide Selection -`Ctrl` `Shift` `L` | Lock/Unlock Selection -{.shortcuts} +| Shortcut | Action | +| ---------------------- | ----------------------- | +| `Ctrl` `A` | Select All | +| `Ctrl` `Shift` `A` | Select Inverse | +| `Esc` | Select None | +| `Ctrl` `(click)` | Deep Select | +| `Ctrl` `(right click)` | Select Layer Menu | +| `Enter` | Select Child | +| `Shift` `Enter` | Select Parents | +| `Tab` | Select Next Sibling | +| `Shift` `Tab` | Select Previous Sibling | +| `Ctrl` `G` | Group Selection | +| `Ctrl` `Shift` `G` | Ungroup Selection | +| `Ctrl` `Alt` `G` | Frame Selection | +| `Ctrl` `Shift` `H` | Show/Hide Selection | +| `Ctrl` `Shift` `L` | Lock/Unlock Selection | +{.shortcuts} ### Cursor -Shortcut | Action ----|--- -`Alt` | Measure to Selection (while pointing) -`Alt` | Duplicate Selection (while moving) -`Ctrl` `(click)` | Deep Select (while clicking) -`Ctrl` `(right click)` | Select Layer Menu (while clicking) -`Ctrl` `(drag)` | Deep Select Within Rectangle (while dragging to select) -`Alt` | Resize from Center (while resizing) -`Shift` | Resize Proportionally (while resizing) -`Space` | Move While Resizing -`Ctrl` | Ignore Constraints (Frames Only) -{.shortcuts} +| Shortcut | Action | +| ---------------------- | ------------------------------------------------------- | +| `Alt` | Measure to Selection (while pointing) | +| `Alt` | Duplicate Selection (while moving) | +| `Ctrl` `(click)` | Deep Select (while clicking) | +| `Ctrl` `(right click)` | Select Layer Menu (while clicking) | +| `Ctrl` `(drag)` | Deep Select Within Rectangle (while dragging to select) | +| `Alt` | Resize from Center (while resizing) | +| `Shift` | Resize Proportionally (while resizing) | +| `Space` | Move While Resizing | +| `Ctrl` | Ignore Constraints (Frames Only) | +{.shortcuts} ### Edit -Shortcut | Action ----|--- -`Ctrl` `C` | Copy -`Ctrl` `X` | Cut -`Ctrl` `V` | Paste -`Ctrl` `Shift` `V` | Paste Over Selection -`Ctrl` `D` | Duplicate Selection in Place -`Ctrl` `R` | Rename Selection -`Ctrl` `Shift` `E` | Export -`Ctrl` `Alt` `C` | Copy Properties -`Ctrl` `Alt` `V` | Paste Properties -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------------- | +| `Ctrl` `C` | Copy | +| `Ctrl` `X` | Cut | +| `Ctrl` `V` | Paste | +| `Ctrl` `Shift` `V` | Paste Over Selection | +| `Ctrl` `D` | Duplicate Selection in Place | +| `Ctrl` `R` | Rename Selection | +| `Ctrl` `Shift` `E` | Export | +| `Ctrl` `Alt` `C` | Copy Properties | +| `Ctrl` `Alt` `V` | Paste Properties | +{.shortcuts} ### Transform -Shortcut | Action ----|--- -`Shift` `H` | Flip Horizontal -`Shift` `V` | Flip Vertical -`Ctrl` `M` | Use as Mask -`Enter` | Edit Shape or Image -`Ctrl` `Shift` `K` | Place Image -`Alt` `(click x2)` | Crop Image -`1` | Set Opacity to 10% -`5` | Set Opacity to 50% -`0` | Set Opacity to 100% -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------- | +| `Shift` `H` | Flip Horizontal | +| `Shift` `V` | Flip Vertical | +| `Ctrl` `M` | Use as Mask | +| `Enter` | Edit Shape or Image | +| `Ctrl` `Shift` `K` | Place Image | +| `Alt` `(click x2)` | Crop Image | +| `1` | Set Opacity to 10% | +| `5` | Set Opacity to 50% | +| `0` | Set Opacity to 100% | +{.shortcuts} ### Arrange -Shortcut | Action ----|--- -`Ctrl` `]` | Bring Forward -`Ctrl` `[` | Send Backward -`Ctrl` `Alt` `]` | Bring to Front -`Ctrl` `Alt` `[` | Send to Back -`Alt` `A` | Align Left -`Alt` `D` | Align Right -`Alt` `W` | Align Top -`Alt` `S` | Align Bottom -`Alt` `H` | Align Horizontal Centers -`Alt` `V` | Align Vertical Centers -`Ctrl` `Alt` `T` | Tidy Up -`Ctrl` `Alt` `H` | Distribute Horizontal Spacing -`Ctrl` `Alt` `V` | Distribute Vertical Spacing -{.shortcuts} +| Shortcut | Action | +| ---------------- | ----------------------------- | +| `Ctrl` `]` | Bring Forward | +| `Ctrl` `[` | Send Backward | +| `Ctrl` `Alt` `]` | Bring to Front | +| `Ctrl` `Alt` `[` | Send to Back | +| `Alt` `A` | Align Left | +| `Alt` `D` | Align Right | +| `Alt` `W` | Align Top | +| `Alt` `S` | Align Bottom | +| `Alt` `H` | Align Horizontal Centers | +| `Alt` `V` | Align Vertical Centers | +| `Ctrl` `Alt` `T` | Tidy Up | +| `Ctrl` `Alt` `H` | Distribute Horizontal Spacing | +| `Ctrl` `Alt` `V` | Distribute Vertical Spacing | +{.shortcuts} ### Components -Shortcut | Action ----|--- -`Alt` `2` | Show Components -`Ctrl` `Shift` `O` | Team Library -`Ctrl` `Shift` `K` | Create Component -`Ctrl` `Shift` `B` | Detach Instance -`Alt` | Swap Component Instance (while dragging from Assets) +| Shortcut | Action | +| ------------------ | ---------------------------------------------------- | +| `Alt` `2` | Show Components | +| `Ctrl` `Shift` `O` | Team Library | +| `Ctrl` `Shift` `K` | Create Component | +| `Ctrl` `Shift` `B` | Detach Instance | +| `Alt` | Swap Component Instance (while dragging from Assets) | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Figma](https://help.figma.com/article/77-keyboard-shortcuts) _(help.figma.com)_ diff --git a/source/_posts/filezilla.md b/source/_posts/filezilla.md index 7caff8f..2b355f1 100644 --- a/source/_posts/filezilla.md +++ b/source/_posts/filezilla.md @@ -2,71 +2,63 @@ title: FileZilla date: 2022-11-23 16:23:31.705296 background: bg-[#a42115] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 30 keyboard shortcuts found on the FileZilla program + A visual cheat-sheet for the 30 keyboard shortcuts found on the FileZilla program --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### General Shortcuts I -Shortcut | Action ----|--- -`F2` | Rename selected file -`F3` | Search remote files -`F5` | Refreshes local and remote file and folder views -`Tab` | Switches to the next view -`Alt` `Down` | Transfers the currently selected item to an item of the same name in the other pane -`Alt` `Up` | Navigates up one line in a tree view, navigates to parent folder in file view -`Ctrl` `B` | Add bookmark -`Ctrl` `Shift` `B` | Manage bookmarks -`Ctrl` `C` | Stops the current operation -`Ctrl` `D` | Disconnects from server -`Ctrl` `E` | Show files currently being edited -`Ctrl` `I` | Directory listing filters... -`Ctrl` `M` | Manual transfer -`Ctrl` `Shift` `N` | Create a new directory -`Ctrl` `O` | Enable directory comparison +| Shortcut | Action | +| ------------------ | ----------------------------------------------------------------------------------- | +| `F2` | Rename selected file | +| `F3` | Search remote files | +| `F5` | Refreshes local and remote file and folder views | +| `Tab` | Switches to the next view | +| `Alt` `Down` | Transfers the currently selected item to an item of the same name in the other pane | +| `Alt` `Up` | Navigates up one line in a tree view, navigates to parent folder in file view | +| `Ctrl` `B` | Add bookmark | +| `Ctrl` `Shift` `B` | Manage bookmarks | +| `Ctrl` `C` | Stops the current operation | +| `Ctrl` `D` | Disconnects from server | +| `Ctrl` `E` | Show files currently being edited | +| `Ctrl` `I` | Directory listing filters... | +| `Ctrl` `M` | Manual transfer | +| `Ctrl` `Shift` `N` | Create a new directory | +| `Ctrl` `O` | Enable directory comparison | + {.shortcuts} - - ### General Shortcuts II -Shortcut | Action ----|--- -`Ctrl` `P` | Process queue -`Ctrl` `Q` | Exit -`Ctrl` `R` | Reconnects to server -`Ctrl` `S` | Opens the site manager -`Ctrl` `T` | Opens a new tab -`Ctrl` `U` | Preserve the timestamps of transferred files -`Ctrl` `Y` | Toggle synchronized browsing -`Ctrl` `W` | Close tab -`Enter` | Transfer the currently selected item if it is a file, or expands if it is a directory -`Ctrl` `PgUp` | Switches to the next tab -`Ctrl` `PgDn` | Switches to the previous tab -`Up` | Moves up one item in the current view -`Down` | Moves down one item in the current view -`Left` | Nothing in a files view, up on level in a tree view -`Right` | Down one level in a tree view if there are subfolders, nothing if there are none +| Shortcut | Action | +| ------------- | ------------------------------------------------------------------------------------- | +| `Ctrl` `P` | Process queue | +| `Ctrl` `Q` | Exit | +| `Ctrl` `R` | Reconnects to server | +| `Ctrl` `S` | Opens the site manager | +| `Ctrl` `T` | Opens a new tab | +| `Ctrl` `U` | Preserve the timestamps of transferred files | +| `Ctrl` `Y` | Toggle synchronized browsing | +| `Ctrl` `W` | Close tab | +| `Enter` | Transfer the currently selected item if it is a file, or expands if it is a directory | +| `Ctrl` `PgUp` | Switches to the next tab | +| `Ctrl` `PgDn` | Switches to the previous tab | +| `Up` | Moves up one item in the current view | +| `Down` | Moves down one item in the current view | +| `Left` | Nothing in a files view, up on level in a tree view | +| `Right` | Down one level in a tree view if there are subfolders, nothing if there are none | + {.shortcuts} +## Also see - - - -Also see --------- -- [Keyboard shortcuts for FileZilla](https://wiki.filezilla-project.org/Keyboard_shortcuts) _(wiki.filezilla-project.org)_ +- [Keyboard shortcuts for FileZilla](https://wiki.filezilla-project.org/Keyboard_shortcuts) + _(wiki.filezilla-project.org)_ diff --git a/source/_posts/find.md b/source/_posts/find.md index e6ebc1b..81b214d 100644 --- a/source/_posts/find.md +++ b/source/_posts/find.md @@ -2,20 +2,18 @@ title: Find date: 2020-12-28 16:52:20 tags: - - search - - file - - directory + - search + - file + - directory categories: - - Linux Command + - Linux Command intro: | - This is a quick reference list of cheatsheet for linux find command, contains common options and examples. + This is a quick reference list of cheatsheet for linux find command, contains common options and examples. plugins: - - copyCode + - copyCode --- - -Getting Started ---------------- +## Getting Started ### Usage @@ -24,33 +22,37 @@ $ find [path...] [options] [expression] ``` Wildcard + ```shell script $ find . -name "*.txt" $ find . -name "2020*.csv" $ find . -name "json_*" ``` ----- +--- + - [Regex reference](/regex) _(cheatsheets.zip)_ - [Find cheatsheet](https://gist.github.com/gr1ev0us/3a9b9d9dbdd38f6379288eb2686fc538) _(gist.github.com)_ ### Option Examples {.col-span-2} -| Option | Example | Description | -|-------------|-------------------------------------------|---------------------------------------------| -| `-type` | find . -type d | Find only directories | -| `-name` | find . -type f -name "*.txt" | Find file by name | -| `-iname` | find . -type f -iname "hello" | Find file by name (case-insensitive) | -| `-size` | find . -size +1G | Find files larger than 1G | -| `-user` | find . -type d -user jack | Find jack's file | -| `-regex` | find /var -regex '.\*/tmp/.\*[0-9]*.file' | Using Regex with find. See [regex](/regex) | -| `-maxdepth` | find . -maxdepth 1 -name "a.txt" | In the current directory and subdirectories | -| `-mindepth` | find / -mindepth 3 -maxdepth 5 -name pass | Between sub-directory level 2 and 4 | + +| Option | Example | Description | +| ----------- | ------------------------------------------ | ------------------------------------------- | +| `-type` | find . -type d | Find only directories | +| `-name` | find . -type f -name "\*.txt" | Find file by name | +| `-iname` | find . -type f -iname "hello" | Find file by name (case-insensitive) | +| `-size` | find . -size +1G | Find files larger than 1G | +| `-user` | find . -type d -user jack | Find jack's file | +| `-regex` | find /var -regex '.\*/tmp/.\*[0-9]\*.file' | Using Regex with find. See [regex](/regex) | +| `-maxdepth` | find . -maxdepth 1 -name "a.txt" | In the current directory and subdirectories | +| `-mindepth` | find / -mindepth 3 -maxdepth 5 -name pass | Between sub-directory level 2 and 4 | + {.show-header} - ### Type + | | | -|-----------|----------------------| +| --------- | -------------------- | | `-type d` | Directory | | `-type f` | File | | `-type l` | Symbolic link | @@ -59,11 +61,10 @@ $ find . -name "json_*" | `-type p` | Named pipe | | `-type s` | Socket | - - ### Size + | | | -|-----------|---------------------------| +| --------- | ------------------------- | | `-size b` | 512-byte blocks (default) | | `-size c` | Bytes | | `-size k` | Kilobytes | @@ -75,33 +76,35 @@ $ find . -name "json_*" ### Size +/- Find all bigger than 10MB files + ```shell script $ find / -size +10M ``` Find all smaller than 10MB files + ```shell script $ find / -size -10M -```` +``` Find all files that are exactly 10M + ```shell script $ find / -size 10M ``` Find Size between 100MB and 1GB + ```shell script $ find / -size +100M -size -1G ``` The `+` and `-` prefixes signify greater than and less than, as usual. - - - ### Names Find files using name in current directory + ```shell script $ find . -name tecmint.txt ``` @@ -113,26 +116,29 @@ $ find /home -name tecmint.txt ``` Find files using name and ignoring case + ```shell script $ find /home -iname tecmint.txt ``` Find directories using name + ```shell script $ find / -type d -name tecmint ``` Find php files using name + ```shell script $ find . -type f -name tecmint.php ``` Find all php files in directory + ```shell script $ find . -type f -name "*.php" ``` - ### Permissions Find the files whose permissions are 777. @@ -171,67 +177,74 @@ Find Executable files. $ find / -perm /a=x ``` - ### Owners and Groups Find single file based on user + ```shell script $ find / -user root -name tecmint.txt ``` + Find all files based on user + ```shell script $ find /home -user tecmint ``` + Find all files based on group + ```shell script $ find /home -group developer ``` + Find particular files of user + ```shell script $ find /home -user tecmint -iname "*.txt" ``` - ### Multiple filenames + ```shell script {.wrap} $ find . -type f \( -name "*.sh" -o -name "*.txt" \) ``` + Find files with `.sh` and `.txt` extensions - ### Multiple dirs - ```shell script {.wrap} $ find /opt /usr /var -name foo.scala -type f ``` + Find files with multiple dirs - ### Empty + ```shell script $ find . -type d -empty ``` Delete all empty files in a directory + ```shell script $ find . -type f -empty -delete ``` - -Find Date and Time -------------- - +## Find Date and Time ### Means {.col-span-2} + | Option | Description | -|---------|-----------------------------------------------------------------| +| ------- | --------------------------------------------------------------- | | `atime` | access time (last time file opened) | | `mtime` | modified time (last time file contents was modified) | | `ctime` | changed time (last time file inode was changed) | + #### Example + | Option | Description | -|-----------------|------------------------------------------------------------| +| --------------- | ---------------------------------------------------------- | | `-mtime +0` | Modified greater than 24 hours ago | | `-mtime 0` | Modified between now and 1 day ago | | `-mtime -1` | Modified less than 1 day ago (same as `-mtime 0`) | @@ -245,37 +258,45 @@ Find Date and Time | `-atime -1` | Accessed less than 24 hours ago (same as `-atime 0`) | | `-ctime -6h30m` | File status changed within the last 6 hours and 30 minutes | - ### Examples - Find last 50 days modified files + +Find last 50 days modified files + ```shell script $ find / -mtime 50 ``` - find last 50 days accessed files + +find last 50 days accessed files + ```shell script $ find / -atime 50 ``` - find last 50-100 days modified files + +find last 50-100 days modified files + ```shell script $ find / -mtime +50 –mtime -100 ``` - find changed files in last 1 hour + +find changed files in last 1 hour + ```shell script $ find / -cmin -60 ``` - find modified files in last 1 hour + +find modified files in last 1 hour + ```shell script $ find / -mmin -60 ``` - find accessed files in last 1 hour + +find accessed files in last 1 hour + ```shell script $ find / -amin -60 ``` - -Find and {.cols-2} --------- - +## Find and {.cols-2} ### Find and delete {.row-span-2} @@ -291,13 +312,14 @@ Find and remove single file $ find . -type f -name "tecmint.txt" -exec rm -f {} \; ``` - Find and delete 100mb files + ```shell script $ find / -type f -size +100m -exec rm -f {} \; ``` Find specific files and delete + ```shell script $ find / -type f -name *.mp3 -size +10m -exec rm {} \; ``` @@ -315,8 +337,8 @@ Find readable and writable files and modify the content `old` to `new` ```shell script {.wrap} $ find ./ -type f -readable -writable -exec sed -i "s/old/new/g" {} \; ``` + See also: [sed cheatsheet](/sed) - ### Find and rename @@ -327,24 +349,28 @@ $ find . -type f -name 'file*' -exec mv {} {}.bak\; ``` Find and rename extension (`.html` => `.gohtml`) + ```shell script {.wrap} $ find ./ -depth -name "*.html" -exec sh -c 'mv "$1" "${1%.html}.gohtml"' _ {} \; ``` ### Find and move + ```shell script $ find . -name '*.mp3' -exec mv {} /tmp/music \; ``` + Find and move it to a specific directory (`/tmp/music`) ### Find and copy + ```shell script $ find . -name '*2020*.xml' -exec cp -r "{}" /tmp/backup \; ``` + Find matching files and copy to a specific directory (`/tmp/backup`) - -### Find and concatenate +### Find and concatenate Merge all csv files in the download directory into `merged.csv` @@ -358,7 +384,6 @@ Merge all sorted csv files in the download directory into `merged.csv` $ find download -type f -iname '*.csv' | sort | xargs cat > merged.csv ``` - ### Find and sort Find and sort in ascending @@ -373,8 +398,7 @@ find and sort descending $ find . -type f | sort -r ``` - -### Find and chmod {.row-span-1} +### Find and chmod {.row-span-1} Find files and set permissions to 644. @@ -388,7 +412,6 @@ Find directories and set permissions to 755. $ find / -type d -perm 777 -print -exec chmod 755 {} \; ``` - ### Find and compress Find all `.java` files and compress it into `java.tar` @@ -402,5 +425,3 @@ Find all `.csv` files and compress it into `cheatsheets.zip` ```shell script $ find . -type f -name "*.csv" | xargs zip cheatsheets.zip ``` - - diff --git a/source/_posts/finder.md b/source/_posts/finder.md index 1160292..ae7f015 100644 --- a/source/_posts/finder.md +++ b/source/_posts/finder.md @@ -3,95 +3,86 @@ title: Finder date: 2022-11-23 16:23:31.693285 background: bg-[#4b9be8] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 55 keyboard shortcuts found in Finder. This application is part of MacOS. + A visual cheat-sheet for the 55 keyboard shortcuts found in Finder. This application is part of MacOS. --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### Finder Shortcuts -Shortcut | Action ----|--- -`Cmd` `D` | Duplicate the selected files -`Cmd` `E` | Eject the selected disk or volume -`Cmd` `F` | Start a Spotlight search in the Finder window -`Cmd` `I` | Show the get info window for a selected file -`Cmd` `R` | When an alias is selected in the Finder, show original file for the selected alias -`Cmd` `Shift` `C` | Open the Computer window -`Cmd` `Shift` `D` | Open the desktop folder -`Cmd` `Shift` `F` | Open the Recents window, showing all files you viewed or changed recently -`Cmd` `Shift` `G` | Open a Go to Folder window -`Cmd` `Shift` `H` | Open the Home folder of the current MacOS user account -`Cmd` `Shift` `I` | Open the iCloud drive -`Cmd` `Shift` `K` | Open the Network window -`Cmd` `Opt` `L` | Open the Downloads folder -`Cmd` `Shift` `N` | Create a new folder -`Cmd` `Shift` `O` | Open the Documents folder -`Cmd` `Shift` `P` | Show or hide the Preview pane in Finder windows -`Cmd` `Shift` `R` | Open the AirDrop window -`Cmd` `Shift` `T` | Show or hide the tab bar in Finder windows -`Ctrl` `Cmd` `Shift` `T` | Add selected Finder items to the Dock -`Cmd` `Shift` `U` | Open the Utilities folder -`Cmd` `Opt` `D` | Show or hide the Dock -`Cmd` `Ctrl` `T` | Add the selected item to the sidebar -`Cmd` `Opt` `P` | Hide or show the path bar in Finder windows -`Cmd` `Opt` `S` | Hide or show the Sidebar in Finder windows -`Cmd` `/` | Hide or show the status bar in Finder windows -`Cmd` `J` | Show view options -`Cmd` `K` | Open the Connect to Server window +| Shortcut | Action | +| ------------------------ | ---------------------------------------------------------------------------------- | +| `Cmd` `D` | Duplicate the selected files | +| `Cmd` `E` | Eject the selected disk or volume | +| `Cmd` `F` | Start a Spotlight search in the Finder window | +| `Cmd` `I` | Show the get info window for a selected file | +| `Cmd` `R` | When an alias is selected in the Finder, show original file for the selected alias | +| `Cmd` `Shift` `C` | Open the Computer window | +| `Cmd` `Shift` `D` | Open the desktop folder | +| `Cmd` `Shift` `F` | Open the Recents window, showing all files you viewed or changed recently | +| `Cmd` `Shift` `G` | Open a Go to Folder window | +| `Cmd` `Shift` `H` | Open the Home folder of the current MacOS user account | +| `Cmd` `Shift` `I` | Open the iCloud drive | +| `Cmd` `Shift` `K` | Open the Network window | +| `Cmd` `Opt` `L` | Open the Downloads folder | +| `Cmd` `Shift` `N` | Create a new folder | +| `Cmd` `Shift` `O` | Open the Documents folder | +| `Cmd` `Shift` `P` | Show or hide the Preview pane in Finder windows | +| `Cmd` `Shift` `R` | Open the AirDrop window | +| `Cmd` `Shift` `T` | Show or hide the tab bar in Finder windows | +| `Ctrl` `Cmd` `Shift` `T` | Add selected Finder items to the Dock | +| `Cmd` `Shift` `U` | Open the Utilities folder | +| `Cmd` `Opt` `D` | Show or hide the Dock | +| `Cmd` `Ctrl` `T` | Add the selected item to the sidebar | +| `Cmd` `Opt` `P` | Hide or show the path bar in Finder windows | +| `Cmd` `Opt` `S` | Hide or show the Sidebar in Finder windows | +| `Cmd` `/` | Hide or show the status bar in Finder windows | +| `Cmd` `J` | Show view options | +| `Cmd` `K` | Open the Connect to Server window | + {.shortcuts} - - - - ### Finder Shortcuts -Shortcut | Action ----|--- -`Cmd` `Ctrl` `A` | Make an alias of the selected item -`Cmd` `N` | Open a new Finder window -`Cmd` `Opt` `N` | Create a new Smart Folder -`Cmd` `T` | Show or hide the tab bar when a single tab is open in the current Finder window -`Cmd` `Opt` `T` | Show or hide the toolbar when a single tab is open in the current Finder window -`Cmd` `Opt` `V` | Move the files in the Clipboard from their original location to the current location -`Cmd` `Y` | Use Quick Look to preview the selected files -`Cmd` `Opt` `Y` | View a Quick Look slideshow of the selected files -`Cmd` `1` | View the items in the Finder window as icons -`Cmd` `2` | View the items in a Finder window as a list -`Cmd` `3` | View the items in a Finder window in columns -`Cmd` `4` | View the items in a Finder window in a gallery -`Cmd` `[` | Go to the previous folder -`Cmd` `]` | Go to the next folder -`Cmd` `Up` | Open the folder that contains the current folder -`Cmd` `Ctrl` `Up` | Open the folder that contains the current folder, in a new window -`Cmd` `Down` | Open the selected item -`Right` | Open the selected folder, this only works when in list view -`Left` | Close the selected folder, this only works when in list view -`Cmd` `Del` | Move the selected item to the trash -`Cmd` `Shift` `Del` | Empty the trash -`Cmd` `Opt` `Shift` `Del` | Empty the trash without the confirmation dialogue -`Cmd` `Bright-Down` | Turn video mirroring on or off when your Mac is connected to more than one display -`Cmd` `Bright-Up` | Open Displays preferences -`Ctrl` `Bright` | Change the brightness of your external display, if supported -`Opt` `Shift` `Bright` | Adjust the display brightness in smaller steps -`Ctrl` `Down` | Show all windows of the front app -`Opt` `Vol` | Open Sound preferences +| Shortcut | Action | +| ------------------------- | ------------------------------------------------------------------------------------ | +| `Cmd` `Ctrl` `A` | Make an alias of the selected item | +| `Cmd` `N` | Open a new Finder window | +| `Cmd` `Opt` `N` | Create a new Smart Folder | +| `Cmd` `T` | Show or hide the tab bar when a single tab is open in the current Finder window | +| `Cmd` `Opt` `T` | Show or hide the toolbar when a single tab is open in the current Finder window | +| `Cmd` `Opt` `V` | Move the files in the Clipboard from their original location to the current location | +| `Cmd` `Y` | Use Quick Look to preview the selected files | +| `Cmd` `Opt` `Y` | View a Quick Look slideshow of the selected files | +| `Cmd` `1` | View the items in the Finder window as icons | +| `Cmd` `2` | View the items in a Finder window as a list | +| `Cmd` `3` | View the items in a Finder window in columns | +| `Cmd` `4` | View the items in a Finder window in a gallery | +| `Cmd` `[` | Go to the previous folder | +| `Cmd` `]` | Go to the next folder | +| `Cmd` `Up` | Open the folder that contains the current folder | +| `Cmd` `Ctrl` `Up` | Open the folder that contains the current folder, in a new window | +| `Cmd` `Down` | Open the selected item | +| `Right` | Open the selected folder, this only works when in list view | +| `Left` | Close the selected folder, this only works when in list view | +| `Cmd` `Del` | Move the selected item to the trash | +| `Cmd` `Shift` `Del` | Empty the trash | +| `Cmd` `Opt` `Shift` `Del` | Empty the trash without the confirmation dialogue | +| `Cmd` `Bright-Down` | Turn video mirroring on or off when your Mac is connected to more than one display | +| `Cmd` `Bright-Up` | Open Displays preferences | +| `Ctrl` `Bright` | Change the brightness of your external display, if supported | +| `Opt` `Shift` `Bright` | Adjust the display brightness in smaller steps | +| `Ctrl` `Down` | Show all windows of the front app | +| `Opt` `Vol` | Open Sound preferences | + {.shortcuts} +## Also see - -Also see --------- - [Keyboard shortcuts for MacOS Finder](https://support.apple.com/en-us/HT201236) _(support.apple.com)_ diff --git a/source/_posts/firefox.md b/source/_posts/firefox.md index df426c9..2d3aecb 100644 --- a/source/_posts/firefox.md +++ b/source/_posts/firefox.md @@ -2,218 +2,212 @@ title: Firefox date: 2022-11-23 16:23:31.703957 background: bg-[#e34e4b] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 116 keyboard shortcuts found in Firefox + A visual cheat-sheet for the 116 keyboard shortcuts found in Firefox --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Navigation -Shortcut | Action ----|--- -`Alt` `Left` | Back -`Alt` `Right` | Forward -`Alt` `Home` | Home -`Ctrl` `O` | Open File -`Ctrl` `R` | Reload -`Ctrl` `Shift` `R` | Reload (override cache) -`Ctrl` `.` | Stop -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------- | +| `Alt` `Left` | Back | +| `Alt` `Right` | Forward | +| `Alt` `Home` | Home | +| `Ctrl` `O` | Open File | +| `Ctrl` `R` | Reload | +| `Ctrl` `Shift` `R` | Reload (override cache) | +| `Ctrl` `.` | Stop | +{.shortcuts} ### Current Page -Shortcut | Action ----|--- -`Tab` | Focus Next Link or Input Field -`Shift` `Tab` | Focus Previous Link or Input Field -`Space` | Go Down a Screen -`Shift` `Space` | Go Up a Screen -`Ctrl` `Down` | Go to Bottom of Page -`Ctrl` `Up` | Go to Top of Page -`F6` | Move to Next Frame -`Shift` `F6` | Move to Previous Frame -`Ctrl` `P` | Print -`Ctrl` `S` | Save Page As -`Ctrl` `+` | Zoom In -`Ctrl` `-` | Zoom Out -`Ctrl` `0` | Zoom Reset -{.shortcuts} +| Shortcut | Action | +| --------------- | ---------------------------------- | +| `Tab` | Focus Next Link or Input Field | +| `Shift` `Tab` | Focus Previous Link or Input Field | +| `Space` | Go Down a Screen | +| `Shift` `Space` | Go Up a Screen | +| `Ctrl` `Down` | Go to Bottom of Page | +| `Ctrl` `Up` | Go to Top of Page | +| `F6` | Move to Next Frame | +| `Shift` `F6` | Move to Previous Frame | +| `Ctrl` `P` | Print | +| `Ctrl` `S` | Save Page As | +| `Ctrl` `+` | Zoom In | +| `Ctrl` `-` | Zoom Out | +| `Ctrl` `0` | Zoom Reset | +{.shortcuts} ### Editing -Shortcut | Action ----|--- -`Ctrl` `C` | Copy -`Ctrl` `X` | Cut -`Backspace` | Delete -`Home` | Go to Beginning of Line -`End` | Go to End of Line -`Ctrl` `V` | Paste -`Ctrl` `Shift` `V` | Paste (as plain text) -`Ctrl` `Shift` `Z` | Redo -`Ctrl` `A` | Select All -`Ctrl` `Z` | Undo -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------- | +| `Ctrl` `C` | Copy | +| `Ctrl` `X` | Cut | +| `Backspace` | Delete | +| `Home` | Go to Beginning of Line | +| `End` | Go to End of Line | +| `Ctrl` `V` | Paste | +| `Ctrl` `Shift` `V` | Paste (as plain text) | +| `Ctrl` `Shift` `Z` | Redo | +| `Ctrl` `A` | Select All | +| `Ctrl` `Z` | Undo | +{.shortcuts} ### Search -Shortcut | Action ----|--- -`Ctrl` `F` | Find -`Ctrl` `G` | Find Again -`Ctrl` `Shift` `G` | Find Previous -`'` | Quick Find within link-text only -`/` | Quick Find -`Esc` | Close the Find or Quick Find bar -`Ctrl` `K` | Focus Search bar -`Ctrl` `Up/Down` | Change the Default Search Engine -`Alt` `Up/Down` | View menu to switch, add, or manage search engines -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------------------------------------------- | +| `Ctrl` `F` | Find | +| `Ctrl` `G` | Find Again | +| `Ctrl` `Shift` `G` | Find Previous | +| `'` | Quick Find within link-text only | +| `/` | Quick Find | +| `Esc` | Close the Find or Quick Find bar | +| `Ctrl` `K` | Focus Search bar | +| `Ctrl` `Up/Down` | Change the Default Search Engine | +| `Alt` `Up/Down` | View menu to switch, add, or manage search engines | +{.shortcuts} ### Windows and Tabs {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `W` | Close Tab -`Ctrl` `Shift` `W` | Close Window -`Ctrl` `Tab` | Cycle through Tabs in Recently Used Order -`Ctrl` `Q` | Quit -`Ctrl` `Alt` `Left` | Go one Tab to the Left -`Ctrl` `Alt` `Right` | Go one Tab to the Right -`Ctrl` `Shift` `PgUp` | Move Tab Left -`Ctrl` `Shift` `PgDown` | Move Tab Right -`Ctrl` `Shift` `Home` | Move Tab in focus to start -`Ctrl` `Shift` `End` | Move Tab in focus to end -`Ctrl` `M` | Mute/Unmute Audio -`Ctrl` `T` | New Tab -`Ctrl` `N` | New Window -`Ctrl` `Shift` `P` | New Private Window -`Alt` `Enter` | Open Address in New Foreground Tab -`Enter` | Open Focused Bookmark or Link in Current Tab -`Ctrl` `Enter` | Open Focused Bookmark in New Foreground Tab -`Ctrl` `Shift` `Enter` | Open Focused Bookmark in New Background Tab -`Ctrl` `Enter` | Open Focused Link in New Background Tab -`Shift` `Enter` | Open Focused Bookmark or Link in New Window -`Ctrl` `Shift` `T` | Undo Close Tab -`Ctrl` `Shift` `N` | Undo Close Window -`Ctrl` `1-8` | Select Tab 1-8 -`Ctrl` `9` | Select Last Tab -`Ctrl` `Shift` `X` | Moves the URL left or right -{.shortcuts} +| Shortcut | Action | +| ----------------------- | -------------------------------------------- | +| `Ctrl` `W` | Close Tab | +| `Ctrl` `Shift` `W` | Close Window | +| `Ctrl` `Tab` | Cycle through Tabs in Recently Used Order | +| `Ctrl` `Q` | Quit | +| `Ctrl` `Alt` `Left` | Go one Tab to the Left | +| `Ctrl` `Alt` `Right` | Go one Tab to the Right | +| `Ctrl` `Shift` `PgUp` | Move Tab Left | +| `Ctrl` `Shift` `PgDown` | Move Tab Right | +| `Ctrl` `Shift` `Home` | Move Tab in focus to start | +| `Ctrl` `Shift` `End` | Move Tab in focus to end | +| `Ctrl` `M` | Mute/Unmute Audio | +| `Ctrl` `T` | New Tab | +| `Ctrl` `N` | New Window | +| `Ctrl` `Shift` `P` | New Private Window | +| `Alt` `Enter` | Open Address in New Foreground Tab | +| `Enter` | Open Focused Bookmark or Link in Current Tab | +| `Ctrl` `Enter` | Open Focused Bookmark in New Foreground Tab | +| `Ctrl` `Shift` `Enter` | Open Focused Bookmark in New Background Tab | +| `Ctrl` `Enter` | Open Focused Link in New Background Tab | +| `Shift` `Enter` | Open Focused Bookmark or Link in New Window | +| `Ctrl` `Shift` `T` | Undo Close Tab | +| `Ctrl` `Shift` `N` | Undo Close Window | +| `Ctrl` `1-8` | Select Tab 1-8 | +| `Ctrl` `9` | Select Last Tab | +| `Ctrl` `Shift` `X` | Moves the URL left or right | +{.shortcuts} ### History -Shortcut | Action ----|--- -`Ctrl` `Shift` `H` | History sidebar -`Ctrl` `Shift` `Delete` | Clear Recent History -{.shortcuts} +| Shortcut | Action | +| ----------------------- | -------------------- | +| `Ctrl` `Shift` `H` | History sidebar | +| `Ctrl` `Shift` `Delete` | Clear Recent History | +{.shortcuts} ### Bookmarks -Shortcut | Action ----|--- -`Ctrl` `Shift` `D` | Bookmark All Tabs -`Ctrl` `D` | Bookmark This Page -`Ctrl` `B` | Bookmarks sidebar -`Ctrl` `Shift` `S` | Library window (Bookmarks) -`(search field in Library)` `Space` | Search for all Bookmarks -{.shortcuts} +| Shortcut | Action | +| ----------------------------------- | -------------------------- | +| `Ctrl` `Shift` `D` | Bookmark All Tabs | +| `Ctrl` `D` | Bookmark This Page | +| `Ctrl` `B` | Bookmarks sidebar | +| `Ctrl` `Shift` `S` | Library window (Bookmarks) | +| `(search field in Library)` `Space` | Search for all Bookmarks | +{.shortcuts} ### Tools -Shortcut | Action ----|--- -`Ctrl` `J` | Downloads -`Ctrl` `Shift` `A` | Add-ons -`Ctrl` `Alt` `I` | Toggle Developer Tools -`Ctrl` `Alt` `K` | Web Console -`Ctrl` `Alt` `C` | Inspector -`Ctrl` `Alt` `S` | Debugger -`Shift` `F7` | Style Editor -`Shift` `F5` | Profiler -`Ctrl` `Alt` `E` | Network -`Shift` `F2` | Developer Toolbar -`Ctrl` `Alt` `M` | Responsive Design View -`Shift` `F4` | Scratchpad -`Ctrl` `U` | Page Source -`Ctrl` `Shift` `J` | Browser Console -`Ctrl` `I` | Page Info -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------- | +| `Ctrl` `J` | Downloads | +| `Ctrl` `Shift` `A` | Add-ons | +| `Ctrl` `Alt` `I` | Toggle Developer Tools | +| `Ctrl` `Alt` `K` | Web Console | +| `Ctrl` `Alt` `C` | Inspector | +| `Ctrl` `Alt` `S` | Debugger | +| `Shift` `F7` | Style Editor | +| `Shift` `F5` | Profiler | +| `Ctrl` `Alt` `E` | Network | +| `Shift` `F2` | Developer Toolbar | +| `Ctrl` `Alt` `M` | Responsive Design View | +| `Shift` `F4` | Scratchpad | +| `Ctrl` `U` | Page Source | +| `Ctrl` `Shift` `J` | Browser Console | +| `Ctrl` `I` | Page Info | +{.shortcuts} ### PDF Viewer -Shortcut | Action ----|--- -`N/J/Right` | Next page -`P/K/Left` | Previous page -`Ctrl` `+` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Automatic Zoom -`R` | Rotate the document clockwise -`Ctrl` `R` | Rotate counterclockwise -`Ctrl` `Alt` `P` | Switch to Presentation Mode -`S` | Choose Text Selection Tool -`H` | Choose Hand Tool -`Ctrl` `Alt` `G` | Focus the Page Number input box -{.shortcuts} +| Shortcut | Action | +| ---------------- | ------------------------------- | +| `N/J/Right` | Next page | +| `P/K/Left` | Previous page | +| `Ctrl` `+` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Automatic Zoom | +| `R` | Rotate the document clockwise | +| `Ctrl` `R` | Rotate counterclockwise | +| `Ctrl` `Alt` `P` | Switch to Presentation Mode | +| `S` | Choose Text Selection Tool | +| `H` | Choose Hand Tool | +| `Ctrl` `Alt` `G` | Focus the Page Number input box | +{.shortcuts} ### Miscellaneous -Shortcut | Action ----|--- -`Ctrl` `Enter` | Complete .com address -`Shift` `Enter` | Complete .net address -`Ctrl` `Shift` `Enter` | Complete .org address -`Shift` `Delete` | Delete Selected Autocomplete Entry -`Ctrl` `Shift` `F` | Toggle Full Screen -`Ctrl` `Alt` `R` | Toggle Reader Mode -`F7` | Caret Browsing -`Ctrl` `L` | Select Location Bar -{.shortcuts} +| Shortcut | Action | +| ---------------------- | ---------------------------------- | +| `Ctrl` `Enter` | Complete .com address | +| `Shift` `Enter` | Complete .net address | +| `Ctrl` `Shift` `Enter` | Complete .org address | +| `Shift` `Delete` | Delete Selected Autocomplete Entry | +| `Ctrl` `Shift` `F` | Toggle Full Screen | +| `Ctrl` `Alt` `R` | Toggle Reader Mode | +| `F7` | Caret Browsing | +| `Ctrl` `L` | Select Location Bar | +{.shortcuts} ### Media Shortcuts -Shortcut | Action ----|--- -`Space` | Toggle Play/Pause -`Down` | Decrease volume -`Up` | Increase volume -`Ctrl` `Down` | Mute audio -`Ctrl` `Up` | Unmute audio -`Left` | Seek back 15 seconds -`Ctrl` `Left` | Seek back 10% -`Right` | Seek forward 15 seconds -`Ctrl` `Right` | Seek forward 10% -`Home` | Seek to the beginning -`End` | Seek to the end +| Shortcut | Action | +| -------------- | ----------------------- | +| `Space` | Toggle Play/Pause | +| `Down` | Decrease volume | +| `Up` | Increase volume | +| `Ctrl` `Down` | Mute audio | +| `Ctrl` `Up` | Unmute audio | +| `Left` | Seek back 15 seconds | +| `Ctrl` `Left` | Seek back 10% | +| `Right` | Seek forward 15 seconds | +| `Ctrl` `Right` | Seek forward 10% | +| `Home` | Seek to the beginning | +| `End` | Seek to the end | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Firefox](https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly) _(support.mozilla.org)_ +- [Keyboard shortcuts for Firefox](https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly) + _(support.mozilla.org)_ diff --git a/source/_posts/fortnite.md b/source/_posts/fortnite.md index e9c0ff9..cd156b4 100644 --- a/source/_posts/fortnite.md +++ b/source/_posts/fortnite.md @@ -2,72 +2,65 @@ title: Fortnite date: 2022-11-23 16:23:31.699229 background: bg-[#8d2fc9] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 26 default keyboard shortcuts found in Fortnite + A visual cheat-sheet for the 26 default keyboard shortcuts found in Fortnite --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Main Controls -Shortcut | Action ----|--- -`R` | Reload -`Q` | Switch between combat mode and build mode -`Space` | Jump -`Left Ctrl` | Crouch -`Left Shift` | Sprint -`=` | Auto run -`W` | Move forward -`S` | Move backwards -`A` | Move left -`D` | Move right -`M` | Toggle map -`Tab` | Toggle inventory -`E` | Use or interact with object -`F` | Select pickaxe -`1-5` | Select weapon slot 1-5 -{.shortcuts} +| Shortcut | Action | +| ------------ | ----------------------------------------- | +| `R` | Reload | +| `Q` | Switch between combat mode and build mode | +| `Space` | Jump | +| `Left Ctrl` | Crouch | +| `Left Shift` | Sprint | +| `=` | Auto run | +| `W` | Move forward | +| `S` | Move backwards | +| `A` | Move left | +| `D` | Move right | +| `M` | Toggle map | +| `Tab` | Toggle inventory | +| `E` | Use or interact with object | +| `F` | Select pickaxe | +| `1-5` | Select weapon slot 1-5 | +{.shortcuts} ### Building -Shortcut | Action ----|--- -`R` | Rotate building piece -`Z` | Wall mode -`X` | Floor mode -`C` | Stair mode -`V` | Pyramid mode -`Y` | Trap mode -`F3` | Select trap -`H` | Upgrade building piece of repair damaged building piece -`G` | Edit building piece -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------------------------------------- | +| `R` | Rotate building piece | +| `Z` | Wall mode | +| `X` | Floor mode | +| `C` | Stair mode | +| `V` | Pyramid mode | +| `Y` | Trap mode | +| `F3` | Select trap | +| `H` | Upgrade building piece of repair damaged building piece | +| `G` | Edit building piece | +{.shortcuts} ### Communication -Shortcut | Action ----|--- -`Enter` | Chat -`B` | Emote +| Shortcut | Action | +| -------- | ------ | +| `Enter` | Chat | +| `B` | Emote | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Fortnite](https://fortnite.gamepedia.com/Controls) _(fortnite.gamepedia.com)_ diff --git a/source/_posts/framer-x.md b/source/_posts/framer-x.md index 7eed4f5..8928a6d 100644 --- a/source/_posts/framer-x.md +++ b/source/_posts/framer-x.md @@ -3,125 +3,118 @@ title: Framer X date: 2022-11-23 16:23:31.701096 background: bg-[#2151ed] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 45 keyboard shortcuts found in Framer X. This application is MacOS-only. + A visual cheat-sheet for the 45 keyboard shortcuts found in Framer X. This application is MacOS-only. --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Tools -Shortcut | Action ----|--- -`F` | Frame -`U` | Round -`T` | Text -`S` | Stack -`L` | Link -`Space` | Pan Canvas -{.shortcuts} +| Shortcut | Action | +| -------- | ---------- | +| `F` | Frame | +| `U` | Round | +| `T` | Text | +| `S` | Stack | +| `L` | Link | +| `Space` | Pan Canvas | +{.shortcuts} ### Graphics -Shortcut | Action ----|--- -`G` | Graphic -`P` | Path -`R` | Rectangle -`O` | Oval -`V` | Vector -`Cmd` `G` | Group -`Cmd` `Shift` `G` | Ungroup -{.shortcuts} +| Shortcut | Action | +| ----------------- | --------- | +| `G` | Graphic | +| `P` | Path | +| `R` | Rectangle | +| `O` | Oval | +| `V` | Vector | +| `Cmd` `G` | Group | +| `Cmd` `Shift` `G` | Ungroup | +{.shortcuts} ### Layout -Shortcut | Action ----|--- -`Cmd` `Enter` | Add Frame -`Cmd` `Opt` `Enter` | Add Stack -`Cmd` `Del` | Remove Wrapper -`Cmd` `Opt` `Up` | Move Forward -`Cmd` `Opt` `Down` | Move Backward -{.shortcuts} +| Shortcut | Action | +| ------------------- | -------------- | +| `Cmd` `Enter` | Add Frame | +| `Cmd` `Opt` `Enter` | Add Stack | +| `Cmd` `Del` | Remove Wrapper | +| `Cmd` `Opt` `Up` | Move Forward | +| `Cmd` `Opt` `Down` | Move Backward | +{.shortcuts} ### Components -Shortcut | Action ----|--- -`Cmd` `K` | Create from Design -`Cmd` `Shift` `K` | Create from Code -{.shortcuts} +| Shortcut | Action | +| ----------------- | ------------------ | +| `Cmd` `K` | Create from Design | +| `Cmd` `Shift` `K` | Create from Code | +{.shortcuts} ### Text -Shortcut | Action ----|--- -`Cmd` `B` | Bold -`Cmd` `I` | Italic -`Cmd` `U` | Underline -`Cmd` `T` | Select Typeface -{.shortcuts} +| Shortcut | Action | +| --------- | --------------- | +| `Cmd` `B` | Bold | +| `Cmd` `I` | Italic | +| `Cmd` `U` | Underline | +| `Cmd` `T` | Select Typeface | +{.shortcuts} ### Editing -Shortcut | Action ----|--- -`Cmd` `(arrows)` | Object Size -`Cmd` `Shift` `(arrows)` | Object Size by 10px -`0-9` | Opacity -`Opt` | Show Distance -`Cmd` `D` | Duplicate in Place -`Cmd` `Opt` `C` | Copy Style -`Cmd` `Opt` `V` | Paste Style -`Ctrl` `C` | Color Picker -`Cmd` `A` | Select All Layers -`Cmd` `Shift` `A` | Select All Siblings -`Cmd` `Opt` `A` | Select All Children -{.shortcuts} +| Shortcut | Action | +| ------------------------ | ------------------- | +| `Cmd` `(arrows)` | Object Size | +| `Cmd` `Shift` `(arrows)` | Object Size by 10px | +| `0-9` | Opacity | +| `Opt` | Show Distance | +| `Cmd` `D` | Duplicate in Place | +| `Cmd` `Opt` `C` | Copy Style | +| `Cmd` `Opt` `V` | Paste Style | +| `Ctrl` `C` | Color Picker | +| `Cmd` `A` | Select All Layers | +| `Cmd` `Shift` `A` | Select All Siblings | +| `Cmd` `Opt` `A` | Select All Children | +{.shortcuts} ### View -Shortcut | Action ----|--- -`Z` | Zoom -`Cmd` `+` | Zoom In -`Cmd` `-` | Zoom Out -`Cmd` `1` | Zoom to Fit -`Cmd` `2` | Zoom to Fit Selection -`Cmd` `0` | Zoom to 100% -`Ctrl` `R` | Show Rulers -{.shortcuts} +| Shortcut | Action | +| ---------- | --------------------- | +| `Z` | Zoom | +| `Cmd` `+` | Zoom In | +| `Cmd` `-` | Zoom Out | +| `Cmd` `1` | Zoom to Fit | +| `Cmd` `2` | Zoom to Fit Selection | +| `Cmd` `0` | Zoom to 100% | +| `Ctrl` `R` | Show Rulers | +{.shortcuts} ### Window -Shortcut | Action ----|--- -`Cmd` `M` | Minimize -`Cmd` `Shift` `1` | Welcome -`Cmd` `P` | Preview +| Shortcut | Action | +| ----------------- | -------- | +| `Cmd` `M` | Minimize | +| `Cmd` `Shift` `1` | Welcome | +| `Cmd` `P` | Preview | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Framer X](https://www.framer.com/support/using-framer-x/shortcuts/) _(www.framer.com)_ diff --git a/source/_posts/gimp.md b/source/_posts/gimp.md index 494c7cd..bfb0b7a 100644 --- a/source/_posts/gimp.md +++ b/source/_posts/gimp.md @@ -2,190 +2,178 @@ title: GIMP date: 2022-11-23 16:23:31.696743 background: bg-[#554f42] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 97 keyboard shortcuts found in GIMP + A visual cheat-sheet for the 97 keyboard shortcuts found in GIMP --- +## Keyboard Shortcuts +### Toolbox {.row-span-2} -Keyboard Shortcuts ------------------- +| Shortcut | Action | +| ----------- | ---------------- | +| `R` | Rectangle select | +| `E` | Ellipse select | +| `F` | Free select | +| `U` | Fuzzy select | +| `Shift` `O` | Select by color | +| `I` | Scissors | +| `B` | Paths | +| `O` | Color picker | +| `M` | Move | +| `Shift` `C` | Crop and resize | +| `Shift` `R` | Rotate | +| `Shift` `T` | Scale | +| `Shift` `S` | Shear | +| `Shift` `P` | Perspective | +| `Shift` `F` | Flip | +| `T` | Text | +| `Shift` `B` | Bucket fill | +| `L` | Blend | +| `N` | Pencil | +| `P` | Paintbrush | +| `Shift` `E` | Eraser | +| `A` | Airbrush | +| `K` | Ink | +| `C` | Clone | +| `V` | Convolve | +| `S` | Smudge | +| `Shift` `D` | Dodge or burn | +| `X` | Swap colors | +| `D` | Default colors | - - - -### Toolbox {.row-span-2} - -Shortcut | Action ----|--- -`R` | Rectangle select -`E` | Ellipse select -`F` | Free select -`U` | Fuzzy select -`Shift` `O` | Select by color -`I` | Scissors -`B` | Paths -`O` | Color picker -`M` | Move -`Shift` `C` | Crop and resize -`Shift` `R` | Rotate -`Shift` `T` | Scale -`Shift` `S` | Shear -`Shift` `P` | Perspective -`Shift` `F` | Flip -`T` | Text -`Shift` `B` | Bucket fill -`L` | Blend -`N` | Pencil -`P` | Paintbrush -`Shift` `E` | Eraser -`A` | Airbrush -`K` | Ink -`C` | Clone -`V` | Convolve -`S` | Smudge -`Shift` `D` | Dodge or burn -`X` | Swap colors -`D` | Default colors {.shortcuts} - ### File -Shortcut | Action ----|--- -`Ctrl` `N` | New image -`Ctrl` `O` | Open image -`Ctrl` `Alt` `N` | Open image as new layer -`Ctrl` `D` | Duplicate image -`Ctrl` `1-0` | Open recent image 1-10 -`Ctrl` `S` | Save image -`Ctrl` `S` | Save image under a new name -`Ctrl` `Q` | Quit -{.shortcuts} +| Shortcut | Action | +| ---------------- | --------------------------- | +| `Ctrl` `N` | New image | +| `Ctrl` `O` | Open image | +| `Ctrl` `Alt` `N` | Open image as new layer | +| `Ctrl` `D` | Duplicate image | +| `Ctrl` `1-0` | Open recent image 1-10 | +| `Ctrl` `S` | Save image | +| `Ctrl` `S` | Save image under a new name | +| `Ctrl` `Q` | Quit | +{.shortcuts} ### Dialogs -Shortcut | Action ----|--- -`Ctrl` `L` | Layers -`Ctrl` `Shift` `B` | Brushes -`Ctrl` `Shift` `P` | Patterns -`Ctrl` `G` | Gradients -`Ctrl` `Shift` `T` | Tool options -`Ctrl` `P` | Palettes -`Ctrl` `Shift` `I` | Info window -`Ctrl` `Shift` `N` | Navigation window -`Tab` | Jump to next widget -`Shift` `Tab` | Jump to previous widget -`Enter` | Set the new value -`Space` | Activate the current button or list -`Ctrl` `Alt` `PgUp` | In a multi-tab dialog, switch tabs -`Shift` `L` | Open location -`Alt` `Up` | Up folder -`Alt` `Down` | Down folder -`Alt` `Home` | Home folder -`Esc` | Close dialog -{.shortcuts} +| Shortcut | Action | +| ------------------- | ----------------------------------- | +| `Ctrl` `L` | Layers | +| `Ctrl` `Shift` `B` | Brushes | +| `Ctrl` `Shift` `P` | Patterns | +| `Ctrl` `G` | Gradients | +| `Ctrl` `Shift` `T` | Tool options | +| `Ctrl` `P` | Palettes | +| `Ctrl` `Shift` `I` | Info window | +| `Ctrl` `Shift` `N` | Navigation window | +| `Tab` | Jump to next widget | +| `Shift` `Tab` | Jump to previous widget | +| `Enter` | Set the new value | +| `Space` | Activate the current button or list | +| `Ctrl` `Alt` `PgUp` | In a multi-tab dialog, switch tabs | +| `Shift` `L` | Open location | +| `Alt` `Up` | Up folder | +| `Alt` `Down` | Down folder | +| `Alt` `Home` | Home folder | +| `Esc` | Close dialog | +{.shortcuts} ### View -Shortcut | Action ----|--- -`F10` | Main menu -`Shift` `F10` | Drop-down menu -`F11` | Toggle fullscreen -`Shift` `Q` | Toggle quickmask -`Ctrl` `W` | Close document window -`+` | Zoom in -`-` | Zoom out -`1` | Zoom 1:1 -`Ctrl` `E` | Shrink wrap -`Ctrl` `Shift` `E` | Fit image in window -`Ctrl` `Shift` `R` | Toggle rulers -`Ctrl` `Shift` `T` | Toggle guides +| Shortcut | Action | +| ------------------ | --------------------- | +| `F10` | Main menu | +| `Shift` `F10` | Drop-down menu | +| `F11` | Toggle fullscreen | +| `Shift` `Q` | Toggle quickmask | +| `Ctrl` `W` | Close document window | +| `+` | Zoom in | +| `-` | Zoom out | +| `1` | Zoom 1:1 | +| `Ctrl` `E` | Shrink wrap | +| `Ctrl` `Shift` `E` | Fit image in window | +| `Ctrl` `Shift` `R` | Toggle rulers | +| `Ctrl` `Shift` `T` | Toggle guides | + {.shortcuts} - - ### Layers -Shortcut | Action ----|--- -`PgUp` | Select the layer above -`PgDn` | Select the layer below -`Home` | Select the first layer -`End` | Select the last layer -`Ctrl` `M` | Merge visible layers -`Ctrl` `H` | Anchor layer +| Shortcut | Action | +| ---------- | ---------------------- | +| `PgUp` | Select the layer above | +| `PgDn` | Select the layer below | +| `Home` | Select the first layer | +| `End` | Select the last layer | +| `Ctrl` `M` | Merge visible layers | +| `Ctrl` `H` | Anchor layer | + {.shortcuts} +### Edit {.row-span-2} +| Shortcut | Action | +| ------------------ | -------------------------- | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Y` | Redo | +| `Ctrl` `C` | Copy selection | +| `Ctrl` `X` | Cut selection | +| `Ctrl` `Shift` `C` | Copy visible | +| `Ctrl` `Shift` `V` | Paste as new image | +| `Ctrl` `V` | Paste clipboard | +| `Ctrl` `K` | Clears selection | +| `Ctrl` `Shift` `C` | Named copy selection | +| `Ctrl` `Shift` `X` | Named cut selection | +| `Ctrl` `Shift` `V` | Named paste clipboard | +| `Ctrl` `,` | Fill with foreground color | +| `Ctrl` `.` | Fill with background color | +| `Ctrl` `;` | Fill with pattern | -### Edit {.row-span-2} - -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo -`Ctrl` `Y` | Redo -`Ctrl` `C` | Copy selection -`Ctrl` `X` | Cut selection -`Ctrl` `Shift` `C` | Copy visible -`Ctrl` `Shift` `V` | Paste as new image -`Ctrl` `V` | Paste clipboard -`Ctrl` `K` | Clears selection -`Ctrl` `Shift` `C` | Named copy selection -`Ctrl` `Shift` `X` | Named cut selection -`Ctrl` `Shift` `V` | Named paste clipboard -`Ctrl` `,` | Fill with foreground color -`Ctrl` `.` | Fill with background color -`Ctrl` `;` | Fill with pattern {.shortcuts} - - ### Selections -Shortcut | Action ----|--- -`Ctrl` `T` | Toggle selections -`Ctrl` `A` | Select all -`Ctrl` `Shift` `A` | Select none -`Ctrl` `I` | Invert selection -`Ctrl` `Shift` `L` | Float selection -`Shift` `V` | Path to selection -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------- | +| `Ctrl` `T` | Toggle selections | +| `Ctrl` `A` | Select all | +| `Ctrl` `Shift` `A` | Select none | +| `Ctrl` `I` | Invert selection | +| `Ctrl` `Shift` `L` | Float selection | +| `Shift` `V` | Path to selection | +{.shortcuts} ### Plug-Ins -Shortcut | Action ----|--- -`Ctrl` `F` | Repeat last plug-in -`Ctrl` `Shift` `F` | Reshow last plug-in +| Shortcut | Action | +| ------------------ | ------------------- | +| `Ctrl` `F` | Repeat last plug-in | +| `Ctrl` `Shift` `F` | Reshow last plug-in | + {.shortcuts} - - ### Help -Shortcut | Action ----|--- -`F1` | Help -`Shift` `F1` | Context help +| Shortcut | Action | +| ------------ | ------------ | +| `F1` | Help | +| `Shift` `F1` | Context help | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for GIMP](https://www.gimpusers.com/gimp/hotkeys) _(www.gimpusers.com)_ diff --git a/source/_posts/git.md b/source/_posts/git.md index 309104e..8ffefa5 100644 --- a/source/_posts/git.md +++ b/source/_posts/git.md @@ -3,196 +3,227 @@ title: Git date: 2020-11-25 18:28:43 background: bg-[#d7593e] tags: - - github - - gitlab - - version - - VCS + - github + - gitlab + - version + - VCS categories: - - Linux Command + - Linux Command intro: This cheat sheet summarizes commonly used Git command line instructions for quick reference. plugins: - - copyCode + - copyCode --- -Getting Started ---------------- +## Getting Started ### Create a Repository + Create a new local repository -``` shell script + +```shell script $ git init [project name] ``` -Clone a repository -``` shell script +Clone a repository + +```shell script $ git clone git_url ``` Clone a repository into a specified directory -``` shell script + +```shell script $ git clone git_url my_directory ``` - - - ### Make a change {.row-span-2} + Show modified files in working directory, staged for your next commit -``` shell script + +```shell script $ git status ``` Stages the file, ready for commit -``` shell script + +```shell script $ git add [file] ``` Stage all changed files, ready for commit -``` shell script + +```shell script $ git add . ``` Commit all staged files to version history -``` shell script + +```shell script $ git commit -m "commit message" ``` Commit all your tracked files to version history -``` shell script + +```shell script $ git commit -am "commit message" ``` + Discard changes in working directory which is not staged -``` shell script + +```shell script $ git restore [file] ``` + Unstage a staged file or file which is staged -``` shell script + +```shell script $ git restore --staged [file] ``` Unstage a file, keeping the file changes -``` shell script + +```shell script $ git reset [file] ``` Revert everything to the last commit -``` shell script + +```shell script $ git reset --hard ``` Diff of what is changed but not staged -``` shell script + +```shell script $ git diff ``` Diff of what is staged but not yet committed -``` shell script + +```shell script $ git diff --staged ``` Apply any commits of current branch ahead of specified one -``` shell script + +```shell script $ git rebase [branch] ``` - ### Configuration Set the name that will be attached to your commits and tags -``` shell script + +```shell script $ git config --global user.name "name" ``` Set an email address that will be attached to your commits and tags -``` shell script + +```shell script $ git config --global user.email "email" ``` Enable some colorization of Git output -``` shell script + +```shell script $ git config --global color.ui auto ``` Edit the global configuration file in a text editor -``` shell script + +```shell script $ git config --global --edit ``` - - ### Working with Branches List all local branches -``` shell script + +```shell script $ git branch ``` List all branches, local and remote -``` shell script + +```shell script $ git branch -av ``` Switch to my_branch, and update working directory -``` shell script + +```shell script $ git checkout my_branch ``` Create a new branch called new_branch -``` shell script + +```shell script $ git checkout -b new_branch ``` Delete the branch called my_branch -``` shell script + +```shell script $ git branch -d my_branch ``` Merge branchA into branchB -``` shell script + +```shell script $ git checkout branchB $ git merge branchA ``` Tag the current commit -``` shell script + +```shell script $ git tag my_tag ``` - - ### Observe your Repository + Show the commit history for the currently active branch -``` shell script + +```shell script $ git log ``` + Show the commits on branchA that are not on branchB -``` shell script + +```shell script $ git log branchB..branchA ``` + Show the commits that changed file, even across renames -``` shell script + +```shell script $ git log --follow [file] ``` + Show the diff of what is in branchA that is not in branchB -``` shell script + +```shell script $ git diff branchB...branchA ``` + Show any object in Git in human-readable format -``` shell script + +```shell script $ git show [SHA] ``` - - ### Synchronize Fetch down all the branches from that Git remote -``` shell script + +```shell script $ git fetch [alias] ``` Merge a remote branch into your current branch to bring it up to date -``` shell script + +```shell script $ git merge [alias]/[branch] # No fast-forward $ git merge --no-ff [alias]/[branch] @@ -201,102 +232,107 @@ $ git merge --ff-only [alias]/[branch] ``` Transmit local branch commits to the remote repository branch -``` shell script + +```shell script $ git push [alias] [branch] ``` Fetch and merge any commits from the tracking remote branch -``` shell script + +```shell script $ git pull ``` Merge just one specific commit from another branch to your current branch -``` shell script + +```shell script $ git cherry-pick [commit_id] ``` - - - ### Remote + Add a git URL as an alias -``` shell script + +```shell script $ git remote add [alias] [url] ``` Show the names of the remote repositories you've set up -``` shell script + +```shell script $ git remote ``` Show the names and URLs of the remote repositories -``` shell script + +```shell script $ git remote -v ``` Remove a remote repository -``` shell script + +```shell script $ git remote rm [remote repo name] ``` Change the URL of the git repo -``` shell script + +```shell script $ git remote set-url origin [git_url] ``` - - - - - ### Temporary Commits Save modified and staged changes -``` shell script + +```shell script $ git stash ``` List stack-order of stashed file changes -``` shell script + +```shell script $ git stash list ``` Write working from top of stash stack -``` shell script + +```shell script $ git stash pop ``` Discard the changes from top of stash stack -``` shell script + +```shell script $ git stash drop ``` - - - ### Tracking path Changes + Delete the file from project and stage the removal for commit -``` shell script + +```shell script $ git rm [file] ``` Change an existing file path and stage the move -``` shell script + +```shell script $ git mv [existing-path] [new-path] ``` Show all commit logs with indication of any paths that moved -``` shell script + +```shell script $ git log --stat -M ``` - ### Ignoring Files ``` /logs/* -# "!" means don't ignore +# "!" means don't ignore !logs/.gitkeep /# Ignore Mac system files @@ -308,113 +344,130 @@ node_modules # Ignore SASS config files .sass-cache ``` + A `.gitignore` file specifies intentionally untracked files that Git should ignore +## Git Tricks +### Rename branch -Git Tricks ------- - -### Rename branch - #### **Renamed** to `new_name` - ```shell script - $ git branch -m - ``` + ```shell script + $ git branch -m + ``` - #### **Push** and reset - ```shell script - $ git push origin -u - ``` + ```shell script + $ git push origin -u + ``` - #### **Delete** remote branch - ```shell script - $ git push origin --delete - ``` -{.marker-timeline} - + ```shell script + $ git push origin --delete + ``` + {.marker-timeline} ### Log + Search change by content + ```shell script $ git log -S'' ``` + Show changes over time for specific file + ```shell script $ git log -p ``` + Print out a cool visualization of your log + ```shell script {.wrap} $ git log --pretty=oneline --graph --decorate --all ``` ### Branch {.row-span-2} -List all branches and their upstreams + +List all branches and their upstreams + ```shell script -$ git branch -vv +$ git branch -vv ``` + Quickly switch to the previous branch + ```shell script $ git checkout - ``` + Get only remote branches + ```shell script $ git branch -r ``` + Checkout a single file from another branch + ```shell script $ git checkout -- ``` - - ### Rewriting history + Rewrite last commit message + ```shell script $ git commit --amend -m "new message" ``` Amend the latest commit without changing the commit message. + ```shell script $ git commit --amend --no-edit ``` - See also: [Rewriting history](https://www.atlassian.com/git/tutorials/rewriting-history) - ### Git Aliases + ```cmd git config --global alias.co checkout git config --global alias.br branch git config --global alias.ci commit git config --global alias.st status ``` + See also: [More Aliases](https://gist.github.com/johnpolacek/69604a1f6861129ef088) - -Advanced Git ------------- +## Advanced Git ### Submodules Create a new submodule within your repository: + ```shell script $ git submodule add ``` Clone a repository and initialize its submodules: + ```shell script $ git clone --recursive ``` + Update all the submodules in your repository to the latest commit of their respective branches: + ```shell script $ git submodule update ``` Pull the latest changes from the remote repositories of the submodules and update them in your main repository: + ```shell script $ git submodule update --remote ``` Remove a submodule from your repository: + ```shell script $ git submodule deinit $ git rm @@ -422,6 +475,7 @@ $ git commit -m "Removed submodule" ``` ### Cherry-picking + Cherry-picking allows you to apply a specific commit from one branch to another branch. ```shell script @@ -431,11 +485,13 @@ $ git cherry-pick ### Reflog Display the reflog, showing the history of HEAD and branch movements: + ```shell script $ git reflog ``` Find the hash of the lost commit or branch using the reflog and then checkout to that hash to restore it: + ```shell script $ git checkout ``` diff --git a/source/_posts/github-actions.md b/source/_posts/github-actions.md index ea26084..36bcbdd 100644 --- a/source/_posts/github-actions.md +++ b/source/_posts/github-actions.md @@ -1,27 +1,33 @@ --- title: Github Actions date: 2023-11-28 -icon: +icon: background: bg-[#808080] tags: - Github - CICD categories: - Toolkit -intro: A quick reference to Github Actions for the automation of software workflows, allowing developers to build, test, and deploy code right from their GitHub repositories. -plugins: +intro: + A quick reference to Github Actions for the automation of software workflows, allowing developers to build, test, and + deploy code right from their GitHub repositories. +plugins: - copyCode --- -Getting Started ------------- +## Getting Started ### Introduction -[GitHub Actions](https://docs.github.com/en/actions) is a CI/CD platform that enables automation of software workflows, allowing developers to build, test, and deploy code right from their GitHub repositories. ----- +[GitHub Actions](https://docs.github.com/en/actions) is a CI/CD platform that enables automation of software workflows, +allowing developers to build, test, and deploy code right from their GitHub repositories. + +--- + ### Workflow Files -Github Action Workflows are defined in special YAML files, typically stored in a `.github/workflows` directory in the github repository. + +Github Action Workflows are defined in special YAML files, typically stored in a `.github/workflows` directory in the +github repository. ```yaml name: hello-world @@ -39,9 +45,10 @@ jobs: - On GitHub.com, navigate to the main page of the repository. - Under your repository name, click `Actions`. - In the left sidebar, click the workflow you want to display, in this example "hello-world" ----- -### Workflow Syntax +--- + +### Workflow Syntax ```yaml name: learn-github-actions @@ -54,25 +61,25 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: '14' + node-version: "14" - run: npm install -g bats - run: bats -v ``` ### Workflow Syntax Descriptions -| Line | Description | -| :--- | :--- | -| `name:` | Sets the name of the GitHub Actions workflow. It's a label used for identifying the workflow in the repository. | -| `run-name:` | Sets a custom name for the run, using a GitHub context `${{ github.actor }}` to include the name of the user who initiated the run. | -| `on:` | Specifies the event that triggers the workflow. In this case, the workflow is triggered on any `push` event to the repository. | -| `jobs:` | Defines a group of jobs that will be executed as part of the workflow. Each job runs independently in the workflow. | -| `check-bats-version:` | Identifier for a specific job within the workflow. This job is named `check-bats-version`. | -| `runs-on:` | Specifies the type of machine to run the job on. Here, it's set to run on the latest version of Ubuntu. | -| `steps:` | Contains a sequence of tasks (steps) that will be executed as part of the job. | -| `uses:` | Used to specify an action to include as part of a step. For example, `actions/checkout@v4` checks out the repository, and `actions/setup-node@v3` sets up a Node environment. | -| `with:` | Specifies additional parameters for the action. It's used in conjunction with `uses` to configure the action. | -| `node-version:` | Contains parameter under `with`, specifying the version of Node.js to be set up by the `setup-node` action. In this case, it's set to version '14'. | +| Line | Description | +| :-------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name:` | Sets the name of the GitHub Actions workflow. It's a label used for identifying the workflow in the repository. | +| `run-name:` | Sets a custom name for the run, using a GitHub context `${{ github.actor }}` to include the name of the user who initiated the run. | +| `on:` | Specifies the event that triggers the workflow. In this case, the workflow is triggered on any `push` event to the repository. | +| `jobs:` | Defines a group of jobs that will be executed as part of the workflow. Each job runs independently in the workflow. | +| `check-bats-version:` | Identifier for a specific job within the workflow. This job is named `check-bats-version`. | +| `runs-on:` | Specifies the type of machine to run the job on. Here, it's set to run on the latest version of Ubuntu. | +| `steps:` | Contains a sequence of tasks (steps) that will be executed as part of the job. | +| `uses:` | Used to specify an action to include as part of a step. For example, `actions/checkout@v4` checks out the repository, and `actions/setup-node@v3` sets up a Node environment. | +| `with:` | Specifies additional parameters for the action. It's used in conjunction with `uses` to configure the action. | +| `node-version:` | Contains parameter under `with`, specifying the version of Node.js to be set up by the `setup-node` action. In this case, it's set to version '14'. | ### Events @@ -85,49 +92,49 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Run a script - run: echo "This workflow runs on every push to the repository." - + - uses: actions/checkout@v2 + - name: Run a script + run: echo "This workflow runs on every push to the repository." ``` **Event Triggers** -| Event Name | Description | -| :--- | :--- | -| `push` | Triggers on a push to the repository. | -| `pull_request` | Triggers on pull request events. | -| `pull_request_review` | Triggers on pull request review events. | -| `pull_request_review_comment` | Triggers on comments on pull request reviews. | -| `pull_request_target` | For workflows in forked repositories. | -| `fork` | Triggers when a repository is forked. | -| `issue_comment` | Triggers on issue and PR comments. | -| `issues` | Triggers on issue events. | -| `label` | Triggers on label events. | -| `milestone` | Triggers on milestone events. | -| `deployment` | Triggers on deployment. | -| `deployment_status` | Triggers on deployment status updates. | -| `public` | Triggers when repo goes from private to public.| -| `repository_dispatch` | Triggers on a custom repository event. | -| `schedule` | Triggers on a defined schedule. | -| `workflow_dispatch` | Allows manual triggering of the workflow. | -| `workflow_run` | Triggers on the completion of another workflow.| -| `create` | Triggers when a branch or tag is created. | -| `delete` | Triggers when a branch or tag is deleted. | -| `page_build` | Triggers on GitHub Pages build events. | -| `release` | Triggers on release events. | -| `watch` | Triggers when someone stars the repo. | -| `registry_package` | Triggers on registry package events. | -| `status` | Triggers on status updates to a Git commit. | -| `project` | Triggers on project board events. | -| `project_card` | Triggers on project card events. | -| `project_column` | Triggers on project column events. | -| `member` | Triggers on collaborator events. | -| `gollum` | Triggers on wiki page updates. | +| Event Name | Description | +| :---------------------------- | :---------------------------------------------- | +| `push` | Triggers on a push to the repository. | +| `pull_request` | Triggers on pull request events. | +| `pull_request_review` | Triggers on pull request review events. | +| `pull_request_review_comment` | Triggers on comments on pull request reviews. | +| `pull_request_target` | For workflows in forked repositories. | +| `fork` | Triggers when a repository is forked. | +| `issue_comment` | Triggers on issue and PR comments. | +| `issues` | Triggers on issue events. | +| `label` | Triggers on label events. | +| `milestone` | Triggers on milestone events. | +| `deployment` | Triggers on deployment. | +| `deployment_status` | Triggers on deployment status updates. | +| `public` | Triggers when repo goes from private to public. | +| `repository_dispatch` | Triggers on a custom repository event. | +| `schedule` | Triggers on a defined schedule. | +| `workflow_dispatch` | Allows manual triggering of the workflow. | +| `workflow_run` | Triggers on the completion of another workflow. | +| `create` | Triggers when a branch or tag is created. | +| `delete` | Triggers when a branch or tag is deleted. | +| `page_build` | Triggers on GitHub Pages build events. | +| `release` | Triggers on release events. | +| `watch` | Triggers when someone stars the repo. | +| `registry_package` | Triggers on registry package events. | +| `status` | Triggers on status updates to a Git commit. | +| `project` | Triggers on project board events. | +| `project_card` | Triggers on project card events. | +| `project_column` | Triggers on project column events. | +| `member` | Triggers on collaborator events. | +| `gollum` | Triggers on wiki page updates. | ### Jobs Single Job: + ```yaml name: Single Job on: [push] @@ -135,12 +142,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Run a build script - run: script/build + - uses: actions/checkout@v2 + - name: Run a build script + run: script/build ``` Multiple Jobs: + ```yaml name: CI Workflow @@ -150,49 +158,49 @@ jobs: job-1: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Runs job 1 - run: echo "Running Job 1" + - uses: actions/checkout@v2 + - name: Runs job 1 + run: echo "Running Job 1" job-2: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Runs job 2 - run: echo "Running Job 2" + - uses: actions/checkout@v2 + - name: Runs job 2 + run: echo "Running Job 2" job-3: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Runs job 3 - run: echo "Running Job 3" + - uses: actions/checkout@v2 + - name: Runs job 3 + run: echo "Running Job 3" ``` -### Steps +### Steps ```yaml jobs: build: runs-on: ubuntu-latest steps: - # step 1 - - name: Check out repository - uses: actions/checkout@v2 - - # step 2 - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - # step 3 - - name: Install dependencies - run: npm install + # step 1 + - name: Check out repository + uses: actions/checkout@v2 - # step 4 - - name: Run tests - run: npm test + # step 2 + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: "14" + + # step 3 + - name: Install dependencies + run: npm install + + # step 4 + - name: Run tests + run: npm test ``` ### Github Runners & Self Hosted Runners @@ -204,11 +212,11 @@ name: Workflow on: [push] jobs: build: - runs-on: ubuntu-latest # default runner + runs-on: ubuntu-latest # default runner steps: - - uses: actions/checkout@v2 - - name: Run a script - run: echo "Hello, world!" + - uses: actions/checkout@v2 + - name: Run a script + run: echo "Hello, world!" ``` [Self Hosted Runner](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners) @@ -220,12 +228,12 @@ jobs: build: runs-on: self-hosted steps: - - uses: actions/checkout@v2 - - name: Run a script - run: echo "Hello from self-hosted runner!" + - uses: actions/checkout@v2 + - name: Run a script + run: echo "Hello from self-hosted runner!" ``` -### Environment Variables +### Environment Variables Custom variable defined using environments. @@ -240,8 +248,10 @@ jobs: run: echo "Value of CUSTOM_VAR is $CUSTOM_VAR" ``` -### Secrets -To add a new secret in your github repository nagivate to `Repository` > `Settings` > `Security` > `Secrets and Variables` > `Actions` > `New Repository Secret` +### Secrets + +To add a new secret in your github repository nagivate to `Repository` > `Settings` > `Security` > +`Secrets and Variables` > `Actions` > `New Repository Secret` Example Secrets workflow: @@ -254,13 +264,13 @@ jobs: example_job: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Use a secret - run: echo "The secret is ${{ secrets.MY_SECRET }}" + - name: Checkout repository + uses: actions/checkout@v2 + - name: Use a secret + run: echo "The secret is ${{ secrets.MY_SECRET }}" ``` -### Artifacts +### Artifacts To access your artifact navigate to `Repository` > `Actions` > `Workflow Run` > `Artifacts` @@ -269,16 +279,16 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Build project - run: make build - - name: Upload build artifact - uses: actions/upload-artifact@v3 # upload Artifacts prebuilt action - with: - name: my-artifact - path: path/to/artifact + - name: Build project + run: make build + - name: Upload build artifact + uses: actions/upload-artifact@v3 # upload Artifacts prebuilt action + with: + name: my-artifact + path: path/to/artifact ``` -### Caching Dependencies +### Caching Dependencies Dependency caches stores downloaded packages or compiled binaries of your workflows. @@ -287,19 +297,19 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Cache dependencies - uses: actions/cache@v2 # stores downloaded packages or compiled binaries - with: - path: | - path/to/dependencies - another/path - key: ${{ runner.os }}-deps-${{ hashFiles('**/lockfile') }} # hash of the dependency lock file is generated in the OS - - name: Install dependencies - run: install-command + - uses: actions/checkout@v2 + - name: Cache dependencies + uses: actions/cache@v2 # stores downloaded packages or compiled binaries + with: + path: | + path/to/dependencies + another/path + key: ${{ runner.os }}-deps-${{ hashFiles('**/lockfile') }} # hash of the dependency lock file is generated in the OS + - name: Install dependencies + run: install-command ``` -### Matrix Strategies +### Matrix Strategies ```yaml jobs: @@ -309,20 +319,20 @@ jobs: matrix: node-version: [12.x, 14.x, 16.x] # matrix strategy runs enables you to run jobs across multiple combinations of environments and OS's - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm test - env: - CI: true + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm install + - run: npm test + env: + CI: true ``` -### Conditions and Expressions +### Conditions and Expressions Branch Conditions: @@ -331,11 +341,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Run build - if: github.ref == 'refs/heads/main' # "Run build" step will only execute if the current branch is main. - run: make build + - name: Checkout code + uses: actions/checkout@v2 + - name: Run build + if: github.ref == 'refs/heads/main' # "Run build" step will only execute if the current branch is main. + run: make build ``` Event Trigger Conditions: @@ -345,17 +355,16 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 - - name: Run tests - if: github.event_name == 'pull_request' # "Run tests" step is executed only when the workflow is triggered by a pull request event - run: npm test - + - name: Checkout code + uses: actions/checkout@v2 + - name: Run tests + if: github.event_name == 'pull_request' # "Run tests" step is executed only when the workflow is triggered by a pull request event + run: npm test ``` -### Workflow Commands +### Workflow Commands -Depending on your OS, if you are running ubuntu-latest, bash commands should work +Depending on your OS, if you are running ubuntu-latest, bash commands should work ```yaml steps: @@ -365,22 +374,23 @@ steps: ### Concurrency -The concurrency field creates a group based on the `github.head_ref`. If a new run starts within the same concurrency group, it cancels any in-progress runs. +The concurrency field creates a group based on the `github.head_ref`. If a new run starts within the same concurrency +group, it cancels any in-progress runs. ```yaml jobs: my_job: runs-on: ubuntu-latest - concurrency: + concurrency: group: ${{ github.head_ref }} cancel-in-progress: true steps: - - name: Run a script - run: echo "Running script..." + - name: Run a script + run: echo "Running script..." ``` -Also see ------------- +## Also see + - [YAML](/yaml) _(cheatsheets.zip)_ - [Github](/github) _(cheatsheets.zip)_ -- [Github Actions Documentation](https://docs.github.com/en/actions)_(docs.github.com/en/actions)_ \ No newline at end of file +- [Github Actions Documentation](https://docs.github.com/en/actions)_(docs.github.com/en/actions)_ diff --git a/source/_posts/github.md b/source/_posts/github.md index 1549ff1..2c71063 100644 --- a/source/_posts/github.md +++ b/source/_posts/github.md @@ -2,182 +2,175 @@ title: Github date: 2022-11-23 16:23:31.704787 background: bg-[#17191e] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 80 keyboard shortcuts found on Github.com + A visual cheat-sheet for the 80 keyboard shortcuts found on Github.com --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Site wide shortcuts -Shortcut | Action ----|--- -`S` | Focus the search bar -`G` `N` | Go to your notifications -`H` | Opens and focuses on a user, issue, or pull request hovercard -`Esc` | When focused on above, closes hovercard -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------------------------------------------- | +| `S` | Focus the search bar | +| `G` `N` | Go to your notifications | +| `H` | Opens and focuses on a user, issue, or pull request hovercard | +| `Esc` | When focused on above, closes hovercard | +{.shortcuts} ### Repositories -Shortcut | Action ----|--- -`G` `C` | Go to the Code tab -`G` `I` | Go to the Issues tab -`G` `P` | Go to the Pull requests tab -`G` `B` | Go to the Projects tab -`G` `W` | Go to the Wiki tab -{.shortcuts} +| Shortcut | Action | +| -------- | --------------------------- | +| `G` `C` | Go to the Code tab | +| `G` `I` | Go to the Issues tab | +| `G` `P` | Go to the Pull requests tab | +| `G` `B` | Go to the Projects tab | +| `G` `W` | Go to the Wiki tab | +{.shortcuts} ### Source code editing -Shortcut | Action ----|--- -`Ctrl` `F` | Start searching in file editor -`Ctrl` `G` | Find next -`Ctrl` `Shift` `G` | Find previous -`Ctrl` `Shift` `F` | Replace -`Ctrl` `Shift` `R` | Replace all -`Alt` `G` | Jump to line -`Ctrl` `Z` | Undo -`Ctrl` `Y` | Redo -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------ | +| `Ctrl` `F` | Start searching in file editor | +| `Ctrl` `G` | Find next | +| `Ctrl` `Shift` `G` | Find previous | +| `Ctrl` `Shift` `F` | Replace | +| `Ctrl` `Shift` `R` | Replace all | +| `Alt` `G` | Jump to line | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Y` | Redo | +{.shortcuts} ### Source code browsing -Shortcut | Action ----|--- -`T` | Activates the file finder -`L` | Jump to a line in your code -`W` | Switch to a new branch or tag -`Y` | Expand a URL to its canonical form -`I` | Show or hide comments on diffs -`B` | Open blame view -{.shortcuts} +| Shortcut | Action | +| -------- | ---------------------------------- | +| `T` | Activates the file finder | +| `L` | Jump to a line in your code | +| `W` | Switch to a new branch or tag | +| `Y` | Expand a URL to its canonical form | +| `I` | Show or hide comments on diffs | +| `B` | Open blame view | +{.shortcuts} ### Comments -Shortcut | Action ----|--- -`Ctrl` `B` | Inserts Markdown formatting for bolding text -`Ctrl` `I` | Inserts Markdown formatting for italicizing text -`Ctrl` `K` | Inserts Markdown formatting for creating a link -`Ctrl` `Shift` `P` | Toggles between the Write and Preview comment tabs -`Ctrl` `Enter` | Submits a comment -`Ctrl` `.` | Opens saved replies menu and then autofills comment field with a saved reply -`Ctrl` `G` | Inserts a suggestions -`R` | Quote the selected text in your reply -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------------------------------------------------------------- | +| `Ctrl` `B` | Inserts Markdown formatting for bolding text | +| `Ctrl` `I` | Inserts Markdown formatting for italicizing text | +| `Ctrl` `K` | Inserts Markdown formatting for creating a link | +| `Ctrl` `Shift` `P` | Toggles between the Write and Preview comment tabs | +| `Ctrl` `Enter` | Submits a comment | +| `Ctrl` `.` | Opens saved replies menu and then autofills comment field with a saved reply | +| `Ctrl` `G` | Inserts a suggestions | +| `R` | Quote the selected text in your reply | +{.shortcuts} ### Issue and pull request lists -Shortcut | Action ----|--- -`C` | Create an issue -`Ctrl` `/` | Focus your cursor on the issues or pull requests search bar -`U` | Filter by author -`L` | Filter by or edit labels -`M` | Filter by or edit milestones -`A` | Filter by or edit assignee -`O` | Open issue -{.shortcuts} +| Shortcut | Action | +| ---------- | ----------------------------------------------------------- | +| `C` | Create an issue | +| `Ctrl` `/` | Focus your cursor on the issues or pull requests search bar | +| `U` | Filter by author | +| `L` | Filter by or edit labels | +| `M` | Filter by or edit milestones | +| `A` | Filter by or edit assignee | +| `O` | Open issue | +{.shortcuts} ### Issues and pull requests -Shortcut | Action ----|--- -`Q` | Request a reviewer -`M` | Set a milestone -`L` | Apply a label -`A` | Set an assignee -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------ | +| `Q` | Request a reviewer | +| `M` | Set a milestone | +| `L` | Apply a label | +| `A` | Set an assignee | +{.shortcuts} ### Changes in pull requests -Shortcut | Action ----|--- -`C` | Open the list of commits in the pull request -`T` | Open the list of changed files in the pull request -`J` | Move selection down in the list -`K` | Move selection up in the list -`Ctrl` `Shift` `Enter` | Add a single comment on a pull request diff -`Alt` `(click)` | Toggle between collapsing and expanding all outdated review comments in a pull request -{.shortcuts} +| Shortcut | Action | +| ---------------------- | -------------------------------------------------------------------------------------- | +| `C` | Open the list of commits in the pull request | +| `T` | Open the list of changed files in the pull request | +| `J` | Move selection down in the list | +| `K` | Move selection up in the list | +| `Ctrl` `Shift` `Enter` | Add a single comment on a pull request diff | +| `Alt` `(click)` | Toggle between collapsing and expanding all outdated review comments in a pull request | +{.shortcuts} ### Project boards {.row-span-2} -Shortcut | Action ----|--- -`Enter/Space` | Start moving the focused column -`Esc` | Cancel the move in progress -`Enter` | Complete the move in progress -`Left/H` | Move column to the left -`Ctrl` `Left/H` | Move column to the leftmost position -`Right/L` | Move column to the right -`Ctrl` `Right/L` | Move column to the rightmost position -`Enter/Space` | Start moving the focused card -`Esc` | Cancel the move in progress -`Enter` | Complete the move in progress -`Down/J` | Move card down -`Ctrl` `Down/J` | Move card to the bottom of the column -`Up/K` | Move card up -`Ctrl` `Up/K` | Move card to the top of the column -`Left/H` | Move card to the bottom of the column on the left -`Shift` `Left/H` | Move card to the top of the column on the left -`Ctrl` `Left/H` | Move card to the bottom of the leftmost column -`Ctrl` `Shift` `Left/H` | Move card to the top of the leftmost column -`Right` | Move card to the bottom of the column on the right -`Shift` `Right/L` | Move card to the top of the column on the right -`Ctrl` `Right/L` | Move card to the bottom of the rightmost column -`Ctrl` `Shift` `Right/L` | Move card to the top of the rightmost column -{.shortcuts} +| Shortcut | Action | +| ------------------------ | -------------------------------------------------- | +| `Enter/Space` | Start moving the focused column | +| `Esc` | Cancel the move in progress | +| `Enter` | Complete the move in progress | +| `Left/H` | Move column to the left | +| `Ctrl` `Left/H` | Move column to the leftmost position | +| `Right/L` | Move column to the right | +| `Ctrl` `Right/L` | Move column to the rightmost position | +| `Enter/Space` | Start moving the focused card | +| `Esc` | Cancel the move in progress | +| `Enter` | Complete the move in progress | +| `Down/J` | Move card down | +| `Ctrl` `Down/J` | Move card to the bottom of the column | +| `Up/K` | Move card up | +| `Ctrl` `Up/K` | Move card to the top of the column | +| `Left/H` | Move card to the bottom of the column on the left | +| `Shift` `Left/H` | Move card to the top of the column on the left | +| `Ctrl` `Left/H` | Move card to the bottom of the leftmost column | +| `Ctrl` `Shift` `Left/H` | Move card to the top of the leftmost column | +| `Right` | Move card to the bottom of the column on the right | +| `Shift` `Right/L` | Move card to the top of the column on the right | +| `Ctrl` `Right/L` | Move card to the bottom of the rightmost column | +| `Ctrl` `Shift` `Right/L` | Move card to the top of the rightmost column | +{.shortcuts} ### Notifications -Shortcut | Action ----|--- -`E/L/Y` | Mark as read -`Shift` `M` | Mute thread -{.shortcuts} +| Shortcut | Action | +| ----------- | ------------ | +| `E/L/Y` | Mark as read | +| `Shift` `M` | Mute thread | +{.shortcuts} ### Network graph -Shortcut | Action ----|--- -`Left/H` | Scroll left -`Right/L` | Scroll right -`Up/K` | Scroll up -`Down/J` | Scroll down -`Shift` `Left/H` | Scroll all the way left -`Shift` `Right/L` | Scroll all the way right -`Shift` `Up/K` | Scroll all the way up -`Shift` `Down/J` | Scroll all the way down +| Shortcut | Action | +| ----------------- | ------------------------ | +| `Left/H` | Scroll left | +| `Right/L` | Scroll right | +| `Up/K` | Scroll up | +| `Down/J` | Scroll down | +| `Shift` `Left/H` | Scroll all the way left | +| `Shift` `Right/L` | Scroll all the way right | +| `Shift` `Up/K` | Scroll all the way up | +| `Shift` `Down/J` | Scroll all the way down | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Github](https://help.github.com/articles/using-keyboard-shortcuts/) _(help.github.com)_ diff --git a/source/_posts/gitlab.md b/source/_posts/gitlab.md index a40575c..7e35076 100644 --- a/source/_posts/gitlab.md +++ b/source/_posts/gitlab.md @@ -2,146 +2,139 @@ title: GitLab date: 2022-11-23 16:23:31.693478 background: bg-[#e47030] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 58 keyboard shortcuts found in GitLab + A visual cheat-sheet for the 58 keyboard shortcuts found in GitLab --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Global -Shortcut | Action ----|--- -`?` | Show or hide the shortcut reference sheet -`Shift` `P` | Go to your projects page -`Shift` `G` | Go to your groups page -`Shift` `A` | Go to your activity page -`Shift` `L` | Go to your milestones page -`Shift` `S` | Go to your snippets page -`S` | Put the cursor in the issues or merge requests search -`Shift` `I` | Go to your issues page -`Shift` `T` | Go to your merge requests page -`P` `B` | Show or hide the performance bar -`Up` | Edit your last comment, you must be in a blank text field below a thread -`Ctrl` `Shift` `P` | Toggle markdown preview when editing text in a text field -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------------------------------------------------ | +| `?` | Show or hide the shortcut reference sheet | +| `Shift` `P` | Go to your projects page | +| `Shift` `G` | Go to your groups page | +| `Shift` `A` | Go to your activity page | +| `Shift` `L` | Go to your milestones page | +| `Shift` `S` | Go to your snippets page | +| `S` | Put the cursor in the issues or merge requests search | +| `Shift` `I` | Go to your issues page | +| `Shift` `T` | Go to your merge requests page | +| `P` `B` | Show or hide the performance bar | +| `Up` | Edit your last comment, you must be in a blank text field below a thread | +| `Ctrl` `Shift` `P` | Toggle markdown preview when editing text in a text field | +{.shortcuts} ### Project -Shortcut | Action ----|--- -`G` `P` | Go to the project home page -`G` `V` | Go to the project activity feed -`G` `R` | Go to the project releases list -`G` `F` | Go to the project files list -`T` | Go to the project file search page -`G` `C` | Go to the project commits list -`G` `N` | Go to the repository graph page -`G` `D` | Go to the repository charts -`G` `I` | Go to the project issues list -`I` | Go to the new issue page -`G` `B` | Go to the project issues boards list -`G` `M` | Go to the project merge requests list -`G` `J` | Go to the CI/CD jobs list -`G` `L` | Go to the project metrics -`G` `E` | Go to the project environments -`G` `K` | Go to the project Kubernetes cluster integration page -`G` `S` | Go to the project snippets list -`G` `W` | Go to the project wiki, if enabled -{.shortcuts} +| Shortcut | Action | +| -------- | ----------------------------------------------------- | +| `G` `P` | Go to the project home page | +| `G` `V` | Go to the project activity feed | +| `G` `R` | Go to the project releases list | +| `G` `F` | Go to the project files list | +| `T` | Go to the project file search page | +| `G` `C` | Go to the project commits list | +| `G` `N` | Go to the repository graph page | +| `G` `D` | Go to the repository charts | +| `G` `I` | Go to the project issues list | +| `I` | Go to the new issue page | +| `G` `B` | Go to the project issues boards list | +| `G` `M` | Go to the project merge requests list | +| `G` `J` | Go to the CI/CD jobs list | +| `G` `L` | Go to the project metrics | +| `G` `E` | Go to the project environments | +| `G` `K` | Go to the project Kubernetes cluster integration page | +| `G` `S` | Go to the project snippets list | +| `G` `W` | Go to the project wiki, if enabled | +{.shortcuts} ### Issues and Merge Requests -Shortcut | Action ----|--- -`E` | Edit description -`A` | Change assignee -`M` | Change milestone -`L` | Change label -`R` | Start writing a comment, if any text is selected it will be quoted -`N` | Move to next unresolved discussion, merge requests only -`P` | Move to previous unresolved discussion, merge requests only -`]` | Move to next file, merge requests only -`[` | Move to previous file, merge requests only -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------------------------------------------------ | +| `E` | Edit description | +| `A` | Change assignee | +| `M` | Change milestone | +| `L` | Change label | +| `R` | Start writing a comment, if any text is selected it will be quoted | +| `N` | Move to next unresolved discussion, merge requests only | +| `P` | Move to previous unresolved discussion, merge requests only | +| `]` | Move to next file, merge requests only | +| `[` | Move to previous file, merge requests only | +{.shortcuts} ### Project Files -Shortcut | Action ----|--- -`Up` | Move selection up -`Down` | Move selection down -`Enter` | Open selection -`Esc` | Go back to file list screen, only while searching for files -`Y` | Go to file permalink, only while viewing a file -{.shortcuts} +| Shortcut | Action | +| -------- | ----------------------------------------------------------- | +| `Up` | Move selection up | +| `Down` | Move selection down | +| `Enter` | Open selection | +| `Esc` | Go back to file list screen, only while searching for files | +| `Y` | Go to file permalink, only while viewing a file | +{.shortcuts} ### Web IDE -Shortcut | Action ----|--- -`Ctrl` `P` | Search for, and then open, another file for editing -`Ctrl` `Enter` | Commit, when editing the commit message -{.shortcuts} +| Shortcut | Action | +| -------------- | --------------------------------------------------- | +| `Ctrl` `P` | Search for, and then open, another file for editing | +| `Ctrl` `Enter` | Commit, when editing the commit message | +{.shortcuts} ### Repository Graph -Shortcut | Action ----|--- -`Left` | Scroll left -`Right` | Scroll right -`Up` | Scroll up -`Down` | Scroll down -`Shift` `Up` | Scroll to top -`Shift` `Down` | Scroll to bottom -{.shortcuts} +| Shortcut | Action | +| -------------- | ---------------- | +| `Left` | Scroll left | +| `Right` | Scroll right | +| `Up` | Scroll up | +| `Down` | Scroll down | +| `Shift` `Up` | Scroll to top | +| `Shift` `Down` | Scroll to bottom | +{.shortcuts} ### Wiki Pages -Shortcut | Action ----|--- -`E` | Edit wiki page -{.shortcuts} +| Shortcut | Action | +| -------- | -------------- | +| `E` | Edit wiki page | +{.shortcuts} ### Filtered Search -Shortcut | Action ----|--- -`Ctrl` `Backspace` | Clear entire search filter -`Alt` `Backspace` | Clear one token at a time -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------------------- | +| `Ctrl` `Backspace` | Clear entire search filter | +| `Alt` `Backspace` | Clear one token at a time | +{.shortcuts} ### Epics -Shortcut | Action ----|--- -`R` | Start writing a comment, if any text is selected it will be quoted -`E` | Edit description -`L` | Change a label +| Shortcut | Action | +| -------- | ------------------------------------------------------------------ | +| `R` | Start writing a comment, if any text is selected it will be quoted | +| `E` | Edit description | +| `L` | Change a label | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for GitLab](https://docs.gitlab.com/ee/user/shortcuts.html) _(docs.gitlab.com)_ diff --git a/source/_posts/gmail.md b/source/_posts/gmail.md index 33e8bca..e8b4a79 100644 --- a/source/_posts/gmail.md +++ b/source/_posts/gmail.md @@ -2,171 +2,164 @@ title: Gmail date: 2022-11-23 16:23:31.699967 background: bg-[#d8503f] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 90 keyboard shortcuts found on Gmail + A visual cheat-sheet for the 90 keyboard shortcuts found on Gmail --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Compose and Chat -Shortcut | Action ----|--- -`P` | Previous message in an open conversation -`N` | Next message in an open conversation -`Shift` `Esc` | Focus main window -`Esc` | Focus latest chat or compose -`Ctrl` `.` | Advance to the next chat or compose -`Ctrl` `,` | Advance to the previous chat or compose -`Ctrl` `Enter` | Send -`Ctrl` `Shift` `C` | Add cc recipients -`Ctrl` `Shift` `B` | Add bcc recipients -`Ctrl` `Shift` `F` | Access custom from -`Ctrl` `K` | Insert a link -`Cmd` `;` | Go to next misspelled word (Mac only) -`Ctrl` `M` | Open spelling suggestions -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------------------------- | +| `P` | Previous message in an open conversation | +| `N` | Next message in an open conversation | +| `Shift` `Esc` | Focus main window | +| `Esc` | Focus latest chat or compose | +| `Ctrl` `.` | Advance to the next chat or compose | +| `Ctrl` `,` | Advance to the previous chat or compose | +| `Ctrl` `Enter` | Send | +| `Ctrl` `Shift` `C` | Add cc recipients | +| `Ctrl` `Shift` `B` | Add bcc recipients | +| `Ctrl` `Shift` `F` | Access custom from | +| `Ctrl` `K` | Insert a link | +| `Cmd` `;` | Go to next misspelled word (Mac only) | +| `Ctrl` `M` | Open spelling suggestions | +{.shortcuts} ### Formatting Text -Shortcut | Action ----|--- -`Ctrl` `Shift` `5` | Previous font -`Ctrl` `Shift` `6` | Next font -`Ctrl` `Shift` `-` | Decrease font size -`Ctrl` `Shift` `+` | Increase font size -`Ctrl` `B` | Bold -`Ctrl` `I` | Italics -`Ctrl` `U` | Underline -`Ctrl` `Shift` `7` | Numbered list -`Ctrl` `Shift` `8` | Bulleted list -`Ctrl` `Shift` `9` | Quote -`Ctrl` `[` | Indent less -`Ctrl` `]` | Indent more -`Ctrl` `Shift` `L` | Align left -`Ctrl` `Shift` `E` | Align center -`Ctrl` `Shift` `R` | Align right -`Ctrl` `\` | Remove formatting -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------ | +| `Ctrl` `Shift` `5` | Previous font | +| `Ctrl` `Shift` `6` | Next font | +| `Ctrl` `Shift` `-` | Decrease font size | +| `Ctrl` `Shift` `+` | Increase font size | +| `Ctrl` `B` | Bold | +| `Ctrl` `I` | Italics | +| `Ctrl` `U` | Underline | +| `Ctrl` `Shift` `7` | Numbered list | +| `Ctrl` `Shift` `8` | Bulleted list | +| `Ctrl` `Shift` `9` | Quote | +| `Ctrl` `[` | Indent less | +| `Ctrl` `]` | Indent more | +| `Ctrl` `Shift` `L` | Align left | +| `Ctrl` `Shift` `E` | Align center | +| `Ctrl` `Shift` `R` | Align right | +| `Ctrl` `\` | Remove formatting | +{.shortcuts} ### Actions {.row-span-2} -Shortcut | Action ----|--- -`,` | Move focus to toolbar -`X` | Select conversation -`S` | Toggle star or rotate among superstars -`E` | Archive -`M` | Mute conversation -`Shift` `1` | Report as spam -`Shift` `3` | Delete -`R` | Reply -`Shift` `R` | Reply in a new window -`A` | Reply all -`Shift` `A` | Reply all in a new window -`F` | Forward -`Shift` `F` | Forward in a new window -`Shift` `N` | Update conversation -`]/[` | Archive conversation and go to previous or next -`Z` | Undo last action -`Shift` `I` | Mark as read -`Shift` `U` | Mark as unread -`Shift` `-` | Mark unread from the selected message -`=` | Mark as important -`-` | Mark as not important -`B` | Snooze -`;` | Expand entire conversation -`Shift` `;` | Collapse entire conversation -`Shift` `T` | Add conversation to tasks -{.shortcuts} +| Shortcut | Action | +| ----------- | ----------------------------------------------- | +| `,` | Move focus to toolbar | +| `X` | Select conversation | +| `S` | Toggle star or rotate among superstars | +| `E` | Archive | +| `M` | Mute conversation | +| `Shift` `1` | Report as spam | +| `Shift` `3` | Delete | +| `R` | Reply | +| `Shift` `R` | Reply in a new window | +| `A` | Reply all | +| `Shift` `A` | Reply all in a new window | +| `F` | Forward | +| `Shift` `F` | Forward in a new window | +| `Shift` `N` | Update conversation | +| `]/[` | Archive conversation and go to previous or next | +| `Z` | Undo last action | +| `Shift` `I` | Mark as read | +| `Shift` `U` | Mark as unread | +| `Shift` `-` | Mark unread from the selected message | +| `=` | Mark as important | +| `-` | Mark as not important | +| `B` | Snooze | +| `;` | Expand entire conversation | +| `Shift` `;` | Collapse entire conversation | +| `Shift` `T` | Add conversation to tasks | +{.shortcuts} ### Hangouts -Shortcut | Action ----|--- -`H` `M` | Show menu -`H` `A` | Show archived hangouts -`H` `I` | Show hangout requests -`H` `C` | Focus on the conversation list -`H` `P` | Open phone -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------------ | +| `H` `M` | Show menu | +| `H` `A` | Show archived hangouts | +| `H` `I` | Show hangout requests | +| `H` `C` | Focus on the conversation list | +| `H` `P` | Open phone | +{.shortcuts} ### Jumping -Shortcut | Action ----|--- -`G` `I` | Go to inbox -`G` `S` | Go to starred conversations -`G` `B` | Go to snoozed conversations -`G` `T` | Go to sent messages -`S` `D` | Go to drafts -`G` `A` | Go to all mail -`Ctrl` `Alt` `,/.` | Switch between the calendar, keep, and tasks sidebar and your inbox -`G` `K` | Go to tasks -`G` `L` | Go to label -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------------------------------------------- | +| `G` `I` | Go to inbox | +| `G` `S` | Go to starred conversations | +| `G` `B` | Go to snoozed conversations | +| `G` `T` | Go to sent messages | +| `S` `D` | Go to drafts | +| `G` `A` | Go to all mail | +| `Ctrl` `Alt` `,/.` | Switch between the calendar, keep, and tasks sidebar and your inbox | +| `G` `K` | Go to tasks | +| `G` `L` | Go to label | +{.shortcuts} ### Threadlist Selection -Shortcut | Action ----|--- -`Shift` `8` `A` | Select all conversations -`Shift` `8` `N` | Deselect all conversations -`Shift` `8` `R` | Select read conversations -`Shift` `8` `U` | Select unread conversations -`Shift` `8` `S` | Select starred conversations -`Shift` `8` `T` | Select unstarred conversations -{.shortcuts} +| Shortcut | Action | +| --------------- | ------------------------------ | +| `Shift` `8` `A` | Select all conversations | +| `Shift` `8` `N` | Deselect all conversations | +| `Shift` `8` `R` | Select read conversations | +| `Shift` `8` `U` | Select unread conversations | +| `Shift` `8` `S` | Select starred conversations | +| `Shift` `8` `T` | Select unstarred conversations | +{.shortcuts} ### Navigation -Shortcut | Action ----|--- -`G` `N` | Go to next page -`G` `P` | Go to previous page -`U` | Back to threadlist -`K` | Newer conversation -`J` | Older conversation -`Enter` | Open conversation -\` | Go to next inbox section -`Shift` \` | Go to previous inbox section -{.shortcuts} +| Shortcut | Action | +| ----------------------- | ---------------------------- | +| `G` `N` | Go to next page | +| `G` `P` | Go to previous page | +| `U` | Back to threadlist | +| `K` | Newer conversation | +| `J` | Older conversation | +| `Enter` | Open conversation | +| \` | Go to next inbox section | +| `Shift` \` | Go to previous inbox section | +{.shortcuts} ### Application -Shortcut | Action ----|--- -`C` | Compose -`D` | Compose in a new tab -`/` | Search mail -`G` | Search chat contacts -`.` | Open more actions menu -`V` | Open move to menu -`L` | Open label as menu -`?` | Open keyboard shortcut help +| Shortcut | Action | +| -------- | --------------------------- | +| `C` | Compose | +| `D` | Compose in a new tab | +| `/` | Search mail | +| `G` | Search chat contacts | +| `.` | Open more actions menu | +| `V` | Open move to menu | +| `L` | Open label as menu | +| `?` | Open keyboard shortcut help | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Gmail](https://support.google.com/mail/answer/6594?hl=en) _(support.google.com)_ diff --git a/source/_posts/google-chrome.md b/source/_posts/google-chrome.md index 99a4a3a..79a73ef 100644 --- a/source/_posts/google-chrome.md +++ b/source/_posts/google-chrome.md @@ -2,118 +2,111 @@ title: Google Chrome date: 2022-11-23 16:23:31.696190 background: bg-[#ca4732] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 65 keyboard shortcuts found in Google Chrome + A visual cheat-sheet for the 65 keyboard shortcuts found in Google Chrome --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### Tab and window -Shortcut | Action ----|--- -`Ctrl` `N` | Open a new window -`Ctrl` `Shift` `N` | Open a new window in Incognito mode -`Ctrl` `T` | Open a new tab, and jump to it -`Ctrl` `Shift` `T` | Reopen the last closed tab, and jump to it -`Ctrl` `Tab` | Jump to the next open tab -`Ctrl` `Shift` `Tab` | Jump to the previous open tab -`Ctrl` `1-8` | Jump to a specific tab -`Ctrl` `9` | Jump to the last tab -`Alt` `Home` | Open your home page in the current tab -`Alt` `Left` | Open the previous page from your history in the current tab -`Alt` `Right` | Open the next page from your history in the current tab -`Ctrl` `W` | Close the current tab -`Ctrl` `Shift` `W` | Close the current window -`Alt` `Space` `N` | Minimize the current window -`Alt` `Space` `X` | Maximize the current window -`Alt` `F4` | Close the current window -`Ctrl` `Shift` `Q` | Quite Google Chrome -{.shortcuts} +| Shortcut | Action | +| -------------------- | ----------------------------------------------------------- | +| `Ctrl` `N` | Open a new window | +| `Ctrl` `Shift` `N` | Open a new window in Incognito mode | +| `Ctrl` `T` | Open a new tab, and jump to it | +| `Ctrl` `Shift` `T` | Reopen the last closed tab, and jump to it | +| `Ctrl` `Tab` | Jump to the next open tab | +| `Ctrl` `Shift` `Tab` | Jump to the previous open tab | +| `Ctrl` `1-8` | Jump to a specific tab | +| `Ctrl` `9` | Jump to the last tab | +| `Alt` `Home` | Open your home page in the current tab | +| `Alt` `Left` | Open the previous page from your history in the current tab | +| `Alt` `Right` | Open the next page from your history in the current tab | +| `Ctrl` `W` | Close the current tab | +| `Ctrl` `Shift` `W` | Close the current window | +| `Alt` `Space` `N` | Minimize the current window | +| `Alt` `Space` `X` | Maximize the current window | +| `Alt` `F4` | Close the current window | +| `Ctrl` `Shift` `Q` | Quite Google Chrome | +{.shortcuts} ### Google Chrome features -Shortcut | Action ----|--- -`Alt` `F` | Open the Chrome menu -`Ctrl` `Shift` `B` | Show or hide the Bookmarks bar -`Ctrl` `Shift` `O` | Open the Bookmarks manager -`Ctrl` `H` | Open the History page in a new tab -`Ctrl` `J` | Open the Downloads page in a new tab -`Shift` `Esc` | Open the Chrome Task Manager -`Shift` `Alt` `T` | Set focus on the first item in the Chrome toolbar -`F10` | Set focus on the last item in the Chrome toolbar -`F6` | Switch focus to unfocused dialog (if showing) -`Ctrl` `F` | Open the Find Bar to search the current page -`Ctrl` `G` | Jump to the next match to your Find Bar search -`Ctrl` `Shift` `G` | Jump to the previous match to your Find Bar search -`F12` | Open Developer Tools -`Ctrl` `Shift` `Delete` | Open the Clear Browsing Data options -`F1` | Open the Chrome Help Center in a new tab -`Ctrl` `Shift` `M` | Log in a different user or browse as a Guest -`Alt` `Shift` `I` | Open a feedback form -{.shortcuts} +| Shortcut | Action | +| ----------------------- | -------------------------------------------------- | +| `Alt` `F` | Open the Chrome menu | +| `Ctrl` `Shift` `B` | Show or hide the Bookmarks bar | +| `Ctrl` `Shift` `O` | Open the Bookmarks manager | +| `Ctrl` `H` | Open the History page in a new tab | +| `Ctrl` `J` | Open the Downloads page in a new tab | +| `Shift` `Esc` | Open the Chrome Task Manager | +| `Shift` `Alt` `T` | Set focus on the first item in the Chrome toolbar | +| `F10` | Set focus on the last item in the Chrome toolbar | +| `F6` | Switch focus to unfocused dialog (if showing) | +| `Ctrl` `F` | Open the Find Bar to search the current page | +| `Ctrl` `G` | Jump to the next match to your Find Bar search | +| `Ctrl` `Shift` `G` | Jump to the previous match to your Find Bar search | +| `F12` | Open Developer Tools | +| `Ctrl` `Shift` `Delete` | Open the Clear Browsing Data options | +| `F1` | Open the Chrome Help Center in a new tab | +| `Ctrl` `Shift` `M` | Log in a different user or browse as a Guest | +| `Alt` `Shift` `I` | Open a feedback form | +{.shortcuts} ### Address bar -Shortcut | Action ----|--- -`(type)` `Enter` | Search with your default search engine -`(type)` `Tab` | Search using a different search engine -`Ctrl` `Enter` | Add www. and .com to a site name, and open in the current tab -`Alt` `Enter` | Open a new tab and perform a Google search -`Ctrl` `L` | Jump to the address bar -`Ctrl` `K` | Search from anywhere on the page -`Shift` `Delete` | Remove predictions from your address bar -{.shortcuts} +| Shortcut | Action | +| ---------------- | ------------------------------------------------------------- | +| `(type)` `Enter` | Search with your default search engine | +| `(type)` `Tab` | Search using a different search engine | +| `Ctrl` `Enter` | Add www. and .com to a site name, and open in the current tab | +| `Alt` `Enter` | Open a new tab and perform a Google search | +| `Ctrl` `L` | Jump to the address bar | +| `Ctrl` `K` | Search from anywhere on the page | +| `Shift` `Delete` | Remove predictions from your address bar | +{.shortcuts} ### Webpage shortcuts -Shortcut | Action ----|--- -`Ctrl` `P` | Open options to print the current page -`Ctrl` `S` | Open options to save the current page -`Ctrl` `R` | Reload the current page -`Ctrl` `Shift` `R` | Reload the current page, ignoring cached content -`Esc` | Stop the page loading -`Tab` | Browse clickable items moving forward -`Shift` `Tab` | Browse clickable items moving backward -`Ctrl` `O` | Open a file from your computer in Chrome -`Ctrl` `U` | Display non-editable HTML source code for the current page -`Ctrl` `D` | Save your current webpage as a bookmark -`Ctrl` `Shift` `D` | Save all open tabs as bookmarks in a new folder -`F11` | Turn full-screen mode on or off -`Ctrl` `+` | Make everything on the page bigger -`Ctrl` `-` | Make everything on the page smaller -`Ctrl` `0` | Return everything on the page to default size -`Space` | Scroll down a webpage, a screen at a time -`Shift` `Space` | Scroll up a webpage, a screen at a time -`Home` | Go to the top of the page -`End` | Go to the bottom of the page -`Shift` `(scroll mouse)` | Scroll horizontally on the page -`Ctrl` `Left` | Move your cursor to the front of the previous word in a text field -`Ctrl` `Right` | Move your cursor to the back of the next word in a text field -`Ctrl` `Backspace` | Delete the previous word in a text field -`Alt` `Home` | Open the Home page in the current tab +| Shortcut | Action | +| ------------------------ | ------------------------------------------------------------------ | +| `Ctrl` `P` | Open options to print the current page | +| `Ctrl` `S` | Open options to save the current page | +| `Ctrl` `R` | Reload the current page | +| `Ctrl` `Shift` `R` | Reload the current page, ignoring cached content | +| `Esc` | Stop the page loading | +| `Tab` | Browse clickable items moving forward | +| `Shift` `Tab` | Browse clickable items moving backward | +| `Ctrl` `O` | Open a file from your computer in Chrome | +| `Ctrl` `U` | Display non-editable HTML source code for the current page | +| `Ctrl` `D` | Save your current webpage as a bookmark | +| `Ctrl` `Shift` `D` | Save all open tabs as bookmarks in a new folder | +| `F11` | Turn full-screen mode on or off | +| `Ctrl` `+` | Make everything on the page bigger | +| `Ctrl` `-` | Make everything on the page smaller | +| `Ctrl` `0` | Return everything on the page to default size | +| `Space` | Scroll down a webpage, a screen at a time | +| `Shift` `Space` | Scroll up a webpage, a screen at a time | +| `Home` | Go to the top of the page | +| `End` | Go to the bottom of the page | +| `Shift` `(scroll mouse)` | Scroll horizontally on the page | +| `Ctrl` `Left` | Move your cursor to the front of the previous word in a text field | +| `Ctrl` `Right` | Move your cursor to the back of the next word in a text field | +| `Ctrl` `Backspace` | Delete the previous word in a text field | +| `Alt` `Home` | Open the Home page in the current tab | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Google Chrome](https://support.google.com/chrome/answer/157179?hl=en) _(support.google.com)_ diff --git a/source/_posts/google-drive.md b/source/_posts/google-drive.md index 4a82c31..7221339 100644 --- a/source/_posts/google-drive.md +++ b/source/_posts/google-drive.md @@ -2,135 +2,128 @@ title: Google Drive date: 2022-11-23 16:23:31.701360 background: bg-[#479b61] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 54 keyboard shortcuts found in Google Drive on the web + A visual cheat-sheet for the 54 keyboard shortcuts found in Google Drive on the web --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Navigation and views -Shortcut | Action ----|--- -`G` `N` | Go to navigation panel (folders list) -`G` `L` | Go to items view -`V` | Switch between grid and list in items view -`G` `D` | Go to details pane -`G` `T` | Go to top of application (Google bar) -`G` `A` | Go to download status -`G` `U` | Go to upload status -`D` | Show or hide details pane -`I` | Show or hide activity pane -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------------------------ | +| `G` `N` | Go to navigation panel (folders list) | +| `G` `L` | Go to items view | +| `V` | Switch between grid and list in items view | +| `G` `D` | Go to details pane | +| `G` `T` | Go to top of application (Google bar) | +| `G` `A` | Go to download status | +| `G` `U` | Go to upload status | +| `D` | Show or hide details pane | +| `I` | Show or hide activity pane | +{.shortcuts} ### Select items -Shortcut | Action ----|--- -`X` | Select or deselect item -`J/Down` | Select next item down -`K/Up` | Select next item up -`H/Left` | Select next item to the left -`L/Right` | Select next item to the right -`Shift` `Down` | Extend selection down -`Shift` `Up` | Extend selection up -`Shift` `Left` | Extend selection left -`Shift` `Right` | Extend selection right -`Shift` `A` | Select all visible items -`Shift` `N` | Clear all selections -{.shortcuts} +| Shortcut | Action | +| --------------- | ----------------------------- | +| `X` | Select or deselect item | +| `J/Down` | Select next item down | +| `K/Up` | Select next item up | +| `H/Left` | Select next item to the left | +| `L/Right` | Select next item to the right | +| `Shift` `Down` | Extend selection down | +| `Shift` `Up` | Extend selection up | +| `Shift` `Left` | Extend selection left | +| `Shift` `Right` | Extend selection right | +| `Shift` `A` | Select all visible items | +| `Shift` `N` | Clear all selections | +{.shortcuts} ### Move between items -Shortcut | Action ----|--- -`Ctrl` `Down` | Move down without changing selection -`Ctrl` `Up` | Move up without changing selection -`Ctrl` `Left` | Move left without changing selection -`Ctrl` `Right` | Move right without changing selection -{.shortcuts} +| Shortcut | Action | +| -------------- | ------------------------------------- | +| `Ctrl` `Down` | Move down without changing selection | +| `Ctrl` `Up` | Move up without changing selection | +| `Ctrl` `Left` | Move left without changing selection | +| `Ctrl` `Right` | Move right without changing selection | +{.shortcuts} ### Take action on selected items -Shortcut | Action ----|--- -`Enter` | Open selected item -`N` | Rename selected item -`.` | Share selected items -`Z` | Move selected items to new folder -`S` | Star or unstar selected items -`Shift` `Z` | Add selected items to an additional folder -`Delete` | Remove selected items -`Ctrl` `Z` | Undo last action -`Ctrl` `Shift` `Z` | Redo last undone action -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------------------ | +| `Enter` | Open selected item | +| `N` | Rename selected item | +| `.` | Share selected items | +| `Z` | Move selected items to new folder | +| `S` | Star or unstar selected items | +| `Shift` `Z` | Add selected items to an additional folder | +| `Delete` | Remove selected items | +| `Ctrl` `Z` | Undo last action | +| `Ctrl` `Shift` `Z` | Redo last undone action | +{.shortcuts} ### Create new items -Shortcut | Action ----|--- -`Shift` `T` | Document -`Shift` `P` | Presentation -`Shift` `S` | Spreadsheet -`Shift` `D` | Drawing -`Shift` `F` | Folder -`Shift` `O` | Form -{.shortcuts} +| Shortcut | Action | +| ----------- | ------------ | +| `Shift` `T` | Document | +| `Shift` `P` | Presentation | +| `Shift` `S` | Spreadsheet | +| `Shift` `D` | Drawing | +| `Shift` `F` | Folder | +| `Shift` `O` | Form | +{.shortcuts} ### Open menus -Shortcut | Action ----|--- -`C` | Create menu -`A` | More actions menu -`F` | Current folder actions menu -`R` | Sort menu -`T` | Settings menu -{.shortcuts} +| Shortcut | Action | +| -------- | --------------------------- | +| `C` | Create menu | +| `A` | More actions menu | +| `F` | Current folder actions menu | +| `R` | Sort menu | +| `T` | Settings menu | +{.shortcuts} ### Application actions -Shortcut | Action ----|--- -`Shift` `/` | Display keyboard shortcuts list -`Q` `Q` | Choose next visual density -`Ctrl` `F` | Find/find next -`Ctrl` `P` | Print -`M` | Show last message -`/` | Search your drive -{.shortcuts} +| Shortcut | Action | +| ----------- | ------------------------------- | +| `Shift` `/` | Display keyboard shortcuts list | +| `Q` `Q` | Choose next visual density | +| `Ctrl` `F` | Find/find next | +| `Ctrl` `P` | Print | +| `M` | Show last message | +| `/` | Search your drive | +{.shortcuts} ### Preview mode actions -Shortcut | Action ----|--- -`Esc` | Close -`Space` | Play/pause -`+/=` | Zoom in -`-` | Zoom out +| Shortcut | Action | +| -------- | ---------- | +| `Esc` | Close | +| `Space` | Play/pause | +| `+/=` | Zoom in | +| `-` | Zoom out | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Google Drive](https://support.google.com/drive/answer/2563044?hl=en) _(support.google.com)_ diff --git a/source/_posts/google-search.md b/source/_posts/google-search.md index 3f0f9b1..d8171ad 100644 --- a/source/_posts/google-search.md +++ b/source/_posts/google-search.md @@ -5,17 +5,16 @@ background: bg-[#d3594a] tags: categories: - Other -intro: | - This quick reference cheat sheet lists of Google advanced search operators. +intro: | + This quick reference cheat sheet lists of Google advanced search operators. --- -Getting Started {.cols-2} ----- - +## Getting Started {.cols-2} ### Google Advanced Search Operators + | Operator | Description | Category | -|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------| +| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | | `""` | Allows searching for a specific phrase - exact match search. Individual word prevents synonyms | Basic,Mail | | `OR`/`AND` | Boolean search function for OR searches as Google defaults to AND between words - must be all caps | Basic,Mail | | `\` | Implements OR | Basic | @@ -31,30 +30,30 @@ Getting Started {.cols-2} | `AROUND(X)` | This is sandwiched between two words and the X declares how many words they must be mentioned between. I.e. if it’s (4) then the two keywords must be mentioned within 4 words of each other. | Advanced | | `_` | Acts as wildcard for autocomplete | Advanced | - ### Search with url + | Operator | Description | Category | -|-------------|--------------------------------------------------------------------------------------------------------------------------------------------|----------| +| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------ | -------- | | `inurl:` | Only returns results where the queried keyword(s) is present in the URL | Advanced | | `allinurl:` | As above but only containing all of the specified words in the URL | Advanced | | `blogurl:` | Find blog URLs under a specific domain. This was used in Google blog search, but I’ve found it does return some results in regular search. | Advanced | | `site:` | Limit results to those from one site | Advanced | | `related:` | Find similar domains to the queried domain | Advanced | - ### Search with dates + | Operator | Description | Category | -|--------------|------------------------------------------------------------------------------------------------------|------------| +| ------------ | ---------------------------------------------------------------------------------------------------- | ---------- | | `daterange:` | Return results in a specified range (requires julian dates) | Advanced | | `after:` | Allows you to search drive or mail for files modified or mail sent/received anytime after a set date | Drive,Mail | | `before:` | Allows you to search drive or mail for files modified or mail sent/received before a certain date | Drive,Mail | | `older:` | Search for messages older than a certain date | Mail | | `newer:` | Search for messages newer than a certain date | Mail | - ### Search files + | Operator | Description | Category | -|-----------------|------------------------------------------------------------------------------------------------------|------------| +| --------------- | ---------------------------------------------------------------------------------------------------- | ---------- | | `filename:` | Search for messages with a particular type of file attached, or the exact name of a file | Mail | | `type:` | Allows you to search drive by file type | Drive | | `owner:` | Allows you to search drive by owner of file or folder | Drive | @@ -67,10 +66,10 @@ Getting Started {.cols-2} | `before:` | Allows you to search drive or mail for files modified or mail sent/received before a certain date | Drive,Mail | | `is:trashed` | Searches for the item in the Drive bin | Drive | - ### Search with page content + | Operator | Description | Category | -|----------------|---------------------------------------------------------------------------------------------------------------------|----------| +| -------------- | ------------------------------------------------------------------------------------------------------------------- | -------- | | `link:` | Find pages that link to the target domain | Advanced | | `inanchor:` | Find pages linked to with the specified anchor text/ phrase. Data is heavily sampled. | Advanced | | `allinanchor:` | Find pages with all individual terms after "inanchor:" in the inbound anchor text. | Advanced | @@ -80,19 +79,19 @@ Getting Started {.cols-2} | `intext:` | Finds pages where the keyword(s) are mentioned within the page content. | Advanced | | `allintext:` | Similar to “intext,” but only results containing all of the specified words somewhere on the page will be returned. | Advanced | - ### Keywords + | Operator | Description | Category | -|-------------------|--------------------------------------------------------------------------------------------------|----------| +| ----------------- | ------------------------------------------------------------------------------------------------ | -------- | | `Business` | type E.g. cafe, restaurant, bar etc will return a selection of appropriate businesses in the are | Maps | | `Petrol/Charging` | Station EV near me or perol station near me returns | Maps | | `Search` | for a message with a google sheet attached | Mail | | `Search` | for a message with a google presentation attached | Mail | - ### Search on emails + | Operator | Description | Category | -|-------------------|-------------------------------------------------------------------------------------------------------|------------| +| ----------------- | ----------------------------------------------------------------------------------------------------- | ---------- | | `+` | Prefix - Force exact match on single phrase | Basic,Mail | | `()` | Allows grouping of operators and helps dictate order | Basic,Mail | | `-` | Excludes a word from results | Basic,Mail | @@ -135,25 +134,23 @@ Getting Started {.cols-2} | `has:userlabels` | Search for messages that have custom user labels | Mail | | ` ` | Search for messages that have no custom user labels | Mail | - ### Some other useful search operators -| Operator | Description | Category | -|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------| -| `define:` | Pulls a card response from Google displaying the dictionary definition of the word or phrase | Advanced | -| `cache:` | Returns the most up to date cache of an indexed web page | Advanced | -| `weather:` | Brings up the featured snipped for weather for that location | Advanced | -| `stocks:` | Returns stock information for the specified ticker | Advanced | -| `map:` | Force google map results for a particular query | Advanced | -| `movie:` | Find information for the specified movie (particularly useful when that movie has an ambiguous name). If the movie is still in theatres it’ll also return screen times | Advanced | -| `source:` | Use in google news, returns results from the specified source | Advanced | -| `loc:` | Returns results for a specific location | Advanced | -| `location:` | As above but with Google news | Advanced | -| `info:` | Returns information related to a domain (pages with domain text, similar on-site pages, cache etc) | Advanced | -| `near` | Part of the google maps lazy searches e.g. book shops near work | Maps | +| Operator | Description | Category | +| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | +| `define:` | Pulls a card response from Google displaying the dictionary definition of the word or phrase | Advanced | +| `cache:` | Returns the most up to date cache of an indexed web page | Advanced | +| `weather:` | Brings up the featured snipped for weather for that location | Advanced | +| `stocks:` | Returns stock information for the specified ticker | Advanced | +| `map:` | Force google map results for a particular query | Advanced | +| `movie:` | Find information for the specified movie (particularly useful when that movie has an ambiguous name). If the movie is still in theatres it’ll also return screen times | Advanced | +| `source:` | Use in google news, returns results from the specified source | Advanced | +| `loc:` | Returns results for a specific location | Advanced | +| `location:` | As above but with Google news | Advanced | +| `info:` | Returns information related to a domain (pages with domain text, similar on-site pages, cache etc) | Advanced | +| `near` | Part of the google maps lazy searches e.g. book shops near work | Maps | +## Also see -Also see --------- - -- [Google Search Operators Cheat Sheet](https://static.semrush.com/blog/uploads/files/39/12/39121580a18160d3587274faed6323e2.pdf) _(static.semrush.com)_ \ No newline at end of file +- [Google Search Operators Cheat Sheet](https://static.semrush.com/blog/uploads/files/39/12/39121580a18160d3587274faed6323e2.pdf) + _(static.semrush.com)_ diff --git a/source/_posts/graphql.md b/source/_posts/graphql.md index f3a949e..798b1a2 100644 --- a/source/_posts/graphql.md +++ b/source/_posts/graphql.md @@ -3,19 +3,17 @@ title: GraphQL date: 2021-07-15 20:51:44 background: bg-[#cc44a2] tags: - - query - - API + - query + - API categories: - - Programming + - Programming intro: | - This quick reference cheat sheet provides a brief overview of GraphQL. + This quick reference cheat sheet provides a brief overview of GraphQL. plugins: - - copyCode + - copyCode --- - -Getting Started --------- +## Getting Started ### Overview @@ -26,37 +24,31 @@ Getting Started - GraphQL syntax can express complex entity relations - Libraries to implement GraphQL in [different languages](https://graphql.org/code/) -[GraphQL](https://graphql.org/) -{.link-arrow} - +[GraphQL](https://graphql.org/) {.link-arrow} ### Schema | | | -|----------------|----------------------------------| +| -------------- | -------------------------------- | | `schema` | GraphQL schema definition | | `query` | Read and traverse data | | `mutation` | Modify data or trigger an action | | `subscription` | Run a query when an event occurs | - - ### Built-in Scalar Types | | | -|-----------|----------------------------------------------| +| --------- | -------------------------------------------- | | `Int` | Signed 32‐bit integer | | `Float` | Signed double-precision floating-point value | | `String` | UTF‐8 character sequence | | `Boolean` | true or false | | `ID` | A Unique identifier | - - ### Type Definitions | | | -|-------------|-------------------| +| ----------- | ----------------- | | `scalar` | Scalar Type | | `type` | Object Type | | `interface` | Interface Type | @@ -64,21 +56,20 @@ Getting Started | `enum` | Enum Type | | `input` | Input Object Type | - - ### Type Modifiers | | | -|--------------|-----------------------------------| +| ------------ | --------------------------------- | | `String` | Nullable String | | `String!` | Non-null String | | `[String]` | List of nullable Strings | | `[String]!` | Non-null list of nullable Strings | | `[String!]!` | Non-null list of non-null Strings | - ### Input Arguments {.row-span-2} + #### Basic Input + ```js type Query { users(limit: Int): [User] @@ -86,21 +77,21 @@ type Query { ``` #### Input with default value + ```js type Query { users(limit: Int = 10): [User] } ``` - #### Input with multiple arguments + ```js type Query { users(limit: Int, sort: String): [User] } ``` - #### Input with multiple arguments and default values ```js {.wrap} @@ -115,10 +106,8 @@ type Query { } ``` - ### Input Types - ```js input ListUsersInput { limit: Int @@ -134,7 +123,6 @@ type Mutation { ### Custom Scalars - ```js scalar Url type User { @@ -143,7 +131,6 @@ type User { } ``` - ### Interfaces ```js @@ -163,8 +150,8 @@ type Baz implements Foo, Goo { is_baz: Boolean } ``` -Object implementing one or more Interfaces +Object implementing one or more Interfaces ### Unions @@ -182,8 +169,8 @@ type Root { multiple: MultipleUnion } ``` -Union of one or more Objects +Union of one or more Objects ### Enums @@ -200,8 +187,6 @@ type Root { } ``` +## Also see - -Also see -------- -* [GraphQL Schema Language Cheat Sheet](https://github.com/sogko/graphql-schema-language-cheat-sheet) _(github.com)_ +- [GraphQL Schema Language Cheat Sheet](https://github.com/sogko/graphql-schema-language-cheat-sheet) _(github.com)_ diff --git a/source/_posts/grep.md b/source/_posts/grep.md index b27ead4..3cad8f7 100644 --- a/source/_posts/grep.md +++ b/source/_posts/grep.md @@ -2,65 +2,66 @@ title: Grep date: 2020-11-25 18:28:43 background: bg-emerald-400 -tags: - - egrep - - search - - pattern - - text +tags: + - egrep + - search + - pattern + - text categories: - - Linux Command -intro: This cheat sheet is intended to be a quick reminder for the main concepts involved in using the command line program grep and assumes you already understand its usage. + - Linux Command +intro: + This cheat sheet is intended to be a quick reminder for the main concepts involved in using the command line program + grep and assumes you already understand its usage. plugins: - - copyCode + - copyCode --- -Getting Started {.cols-5} ---------------- +## Getting Started {.cols-5} ### Usage {.col-span-2} + Search standard output (i.e. a stream of text) + ```shell script $ grep [options] search_string ``` Search for an exact string in file: + ```shell script $ grep [options] search_string path/to/file ``` Print lines in myfile.txt containing the string "mellon" + ```shell script $ grep 'mellon' myfile.txt ``` Wildcards are accepted in filename. - - - ### Option examples {.col-span-3} -| Option | Example | Operation | -|--------|---------------------------------------|------------------------------------------------------| -| `-i` | grep -i ^DA demo.txt | Forgets about case sensitivity | -| `-w` | grep -w "of" demo.txt | Search only for the full word | -| `-A` | grep -A 3 'Exception' error.log | Display 3 lines after matching string | -| `-B` | grep -B 4 'Exception' error.log | Display 4 lines before matching string | -| `-C` | grep -C 5 'Exception' error.log | Display 5 lines around matching string | +| Option | Example | Operation | +| ------ | ----------------------------------------- | ---------------------------------------------------- | +| `-i` | grep -i ^DA demo.txt | Forgets about case sensitivity | +| `-w` | grep -w "of" demo.txt | Search only for the full word | +| `-A` | grep -A 3 'Exception' error.log | Display 3 lines after matching string | +| `-B` | grep -B 4 'Exception' error.log | Display 4 lines before matching string | +| `-C` | grep -C 5 'Exception' error.log | Display 5 lines around matching string | | `-r` | grep -r 'cheatsheets.zip' /var/log/nginx/ | Recursive search _(within subdirs)_ | -| `-v` | grep -v 'warning' /var/log/syslog | Return all lines which don't match the pattern | -| `-e` | grep -e '^al' filename | Use regex _(lines starting with 'al')_ | -| `-E` | grep -E 'ja(s\|cks)on' filename | Extended regex _(lines containing jason or jackson)_ | -| `-c` | grep -c 'error' /var/log/syslog | Count the number of matches | -| `-l` | grep -l 'robot' /var/log/* | Print the name of the file(s) of matches | -| `-o` | grep -o search_string filename | Only show the matching part of the string | -| `-n` | grep -n "go" demo.txt | Show the line numbers of the matches | +| `-v` | grep -v 'warning' /var/log/syslog | Return all lines which don't match the pattern | +| `-e` | grep -e '^al' filename | Use regex _(lines starting with 'al')_ | +| `-E` | grep -E 'ja(s\|cks)on' filename | Extended regex _(lines containing jason or jackson)_ | +| `-c` | grep -c 'error' /var/log/syslog | Count the number of matches | +| `-l` | grep -l 'robot' /var/log/\* | Print the name of the file(s) of matches | +| `-o` | grep -o search_string filename | Only show the matching part of the string | +| `-n` | grep -n "go" demo.txt | Show the line numbers of the matches | - -Grep regular expressions ---------------- +## Grep regular expressions ### Refer + - [Regex syntax](/regex) _(cheatsheets.zip)_ - [Regex examples](/regex#regex-examples) _(cheatsheets.zip)_ @@ -69,7 +70,7 @@ Please refer to the full version of the regex cheat sheet for more complex requi ### Wildcards | - | - | -|-----------------|----------------------------------------| +| --------------- | -------------------------------------- | | . | Any character. | | `? ` | Optional and can only occur once. | | `* ` | Optional and can occur more than once. | @@ -78,15 +79,16 @@ Please refer to the full version of the regex cheat sheet for more complex requi ### Quantifiers | - | - | -|-----------------|----------------------------------------------| +| --------------- | -------------------------------------------- | | `{n} ` | Previous item appears exactly n times. | | `{n,} ` | Previous item appears n times or more. | | `{,m} ` | Previous item appears n times maximum. | | `{n,m} ` | Previous item appears between n and m times. | ### POSIX + | - | - | -|-----------------|-------------------------------------------| +| --------------- | ----------------------------------------- | | `[:alpha:] ` | Any lower and upper case letter. | | `[:digit:] ` | Any number. | | `[:alnum:] ` | Any lower and upper case letter or digit. | @@ -95,20 +97,17 @@ Please refer to the full version of the regex cheat sheet for more complex requi ### Character | - | - | -|-----------------|-------------------------------------------| +| --------------- | ----------------------------------------- | | `[A-Z­a-z] ` | Any lower and upper case letter. | | `[0-9] ` | Any number. | | `[0-9­A-Z­a-z]` | Any lower and upper case letter or digit. | - ### Position | | | -|------|--------------------| +| ---- | ------------------ | | `^ ` | Beginning of line. | | `$ ` | End of line. | | `^$` | Empty line. | | `\<` | Start of word. | | `\>` | End of word. | - - diff --git a/source/_posts/guitar-pro.md b/source/_posts/guitar-pro.md index 793a384..f461734 100644 --- a/source/_posts/guitar-pro.md +++ b/source/_posts/guitar-pro.md @@ -2,284 +2,273 @@ title: Guitar Pro date: 2022-11-23 16:23:31.693917 background: bg-[#659af0] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 129 keyboard shortcuts found in Guitar Pro + A visual cheat-sheet for the 129 keyboard shortcuts found in Guitar Pro --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Track -Shortcut | Action ----|--- -`Ctrl` `Shift` `Insert` | Add -`Ctrl` `Shift` `Delete` | Delete -`Ctrl` `Alt` `Up` | Move up -`Ctrl` `Alt` `Down` | Move down -`F6` | Properties -{.shortcuts} +| Shortcut | Action | +| ----------------------- | ---------- | +| `Ctrl` `Shift` `Insert` | Add | +| `Ctrl` `Shift` `Delete` | Delete | +| `Ctrl` `Alt` `Up` | Move up | +| `Ctrl` `Alt` `Down` | Move down | +| `F6` | Properties | +{.shortcuts} ### Bar - General {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `Insert` | Insert bar -`Ctrl` `Delete` | Delete bar -`K` | Clef -`Ctrl` `K` | Key signature -`Ctrl` `T` | Time signature -`Ctrl` `/` | Triplet feel -`|` | Free time -`[` | Repeat open -`]` | Repeat close -`D` | Directions -`Ctrl` `R` | Multi rest -`Ctrl` `Enter` | Force line break -`Shift` `7` | Prevent line break -{.shortcuts} +| Shortcut | Action | +| --------------- | ------------------ | --------- | +| `Ctrl` `Insert` | Insert bar | +| `Ctrl` `Delete` | Delete bar | +| `K` | Clef | +| `Ctrl` `K` | Key signature | +| `Ctrl` `T` | Time signature | +| `Ctrl` `/` | Triplet feel | +| ` | ` | Free time | +| `[` | Repeat open | +| `]` | Repeat close | +| `D` | Directions | +| `Ctrl` `R` | Multi rest | +| `Ctrl` `Enter` | Force line break | +| `Shift` `7` | Prevent line break | +{.shortcuts} ### Bar - Section -Shortcut | Action ----|--- -`Shift` `Insert` | Insert or remove -`Alt` `Left` | Previous section -`Alt` `Right` | Next section -{.shortcuts} +| Shortcut | Action | +| ---------------- | ---------------- | +| `Shift` `Insert` | Insert or remove | +| `Alt` `Left` | Previous section | +| `Alt` `Right` | Next section | +{.shortcuts} ### Bar - Simile Mark -Shortcut | Action ----|--- -`Shift` `5` | Repeat one bar -`Ctrl` `Shift` `5` | Repeat two bars -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------- | +| `Shift` `5` | Repeat one bar | +| `Ctrl` `Shift` `5` | Repeat two bars | +{.shortcuts} ### Note - Duration -Shortcut | Action ----|--- -`+/-` | Increase or decrease (whole note, half note, etc) -`Shift` `5` | Dotting -`Ctrl` `Shift` `5` | Double dotting -`/` | Triplet +| Shortcut | Action | +| ------------------ | ------------------------------------------------- | +| `+/-` | Increase or decrease (whole note, half note, etc) | +| `Shift` `5` | Dotting | +| `Ctrl` `Shift` `5` | Double dotting | +| `/` | Triplet | + {.shortcuts} +### Note - General {.row-span-6} +| Shortcut | Action | +| ------------------ | ------------------------- | +| `Insert` | Insert a beat | +| `Shift` `Delete` | Delete the beats | +| `C` | Copy the beats at the end | +| `L` | Tie note | +| `Shift` `L` | Tie the beat | +| `F` | Fermata | +| `R` | Rest | +| `Ctrl` `D` | Brush downstroke | +| `Ctrl` `U` | Brush upstroke | +| `Ctrl` `Shift` `D` | Arpeggio down | +| `Ctrl` `Shift` `U` | Arpeggio up | +| `Shift` `R` | Rasgueado | +| `Shift` `D` | PickStroke down | +| `Shift` `U` | PickStroke up | +| `Shift` `-` | One semi-town down | +| `Shift` `+` | One semi-tone up | +| `Alt` `Down` | Shift down | +| `Alt` `Up` | Shift up | +| `A` | Chord | +| `Shift` `I` | Barre | +| `Shift` `2` | Timer | +| `T` | Text | -### Note - General {.row-span-6} - -Shortcut | Action ----|--- -`Insert` | Insert a beat -`Shift` `Delete` | Delete the beats -`C` | Copy the beats at the end -`L` | Tie note -`Shift` `L` | Tie the beat -`F` | Fermata -`R` | Rest -`Ctrl` `D` | Brush downstroke -`Ctrl` `U` | Brush upstroke -`Ctrl` `Shift` `D` | Arpeggio down -`Ctrl` `Shift` `U` | Arpeggio up -`Shift` `R` | Rasgueado -`Shift` `D` | PickStroke down -`Shift` `U` | PickStroke up -`Shift` `-` | One semi-town down -`Shift` `+` | One semi-tone up -`Alt` `Down` | Shift down -`Alt` `Up` | Shift up -`A` | Chord -`Shift` `I` | Barre -`Shift` `2` | Timer -`T` | Text {.shortcuts} +### Effects - General {.row-span-6} +| Shortcut | Action | +| -------------------- | --------------------- | +| `X` | Dead note | +| `O` | Ghost note | +| `;` | Accented note | +| `Shift` `;` | Heavily accented note | +| `Shift` `1` | Staccato | +| `Shift` `-` | Tenuto | +| `Shift` `H` | Legato | +| `I` | Let ring | +| `[` | Palm mute note | +| `]` | Palm-mute on beat | +| `Y` | Natural harmonic | +| `Alt` `Y` | Artificial harmonic | +| `B` | Bend | +| `Shift` `W` | Tremolo bar | +| `H` | Hammer on or pull-off | +| `Shift` `9` | Left-hand tapping | +| `Shift` `0` | Tapping | +| `Shift` `4` | Slap | +| `Ctrl` `Shift` `4` | Pop | +| `N` | Trill | +| `Shift` `,` | Fade in | +| `Shift` `.` | Fade out | +| `Ctrl` `Shift` `./,` | Volume swell | +| `Alt` `O` | Wah open | +| `Alt` `C` | Wah close | -### Effects - General {.row-span-6} - -Shortcut | Action ----|--- -`X` | Dead note -`O` | Ghost note -`;` | Accented note -`Shift` `;` | Heavily accented note -`Shift` `1` | Staccato -`Shift` `-` | Tenuto -`Shift` `H` | Legato -`I` | Let ring -`[` | Palm mute note -`]` | Palm-mute on beat -`Y` | Natural harmonic -`Alt` `Y` | Artificial harmonic -`B` | Bend -`Shift` `W` | Tremolo bar -`H` | Hammer on or pull-off -`Shift` `9` | Left-hand tapping -`Shift` `0` | Tapping -`Shift` `4` | Slap -`Ctrl` `Shift` `4` | Pop -`N` | Trill -`Shift` `,` | Fade in -`Shift` `.` | Fade out -`Ctrl` `Shift` `./,` | Volume swell -`Alt` `O` | Wah open -`Alt` `C` | Wah close {.shortcuts} - - - ### Note - Accidentals -Shortcut | Action ----|--- -`Ctrl` `Alt` `7` | Double flat -`Ctrl` `7` | Flat -`Ctrl` `8` | Natural -`Ctrl` `9` | Sharp -`Ctrl` `Alt` `9` | Double sharp -`Ctrl` `Alt` `8` | Change the accidental -{.shortcuts} +| Shortcut | Action | +| ---------------- | --------------------- | +| `Ctrl` `Alt` `7` | Double flat | +| `Ctrl` `7` | Flat | +| `Ctrl` `8` | Natural | +| `Ctrl` `9` | Sharp | +| `Ctrl` `Alt` `9` | Double sharp | +| `Ctrl` `Alt` `8` | Change the accidental | +{.shortcuts} ### Effects - Grace Note -Shortcut | Action ----|--- -`G` | Before the beat -`Alt` `G` | On the beat -{.shortcuts} +| Shortcut | Action | +| --------- | --------------- | +| `G` | Before the beat | +| `Alt` `G` | On the beat | +{.shortcuts} ### Effects - Vibrato -Shortcut | Action ----|--- -`V` | Left-hand vibrato (slight) -`Alt` `V` | Left-hand vibrato (wide) -{.shortcuts} +| Shortcut | Action | +| --------- | -------------------------- | +| `V` | Left-hand vibrato (slight) | +| `Alt` `V` | Left-hand vibrato (wide) | +{.shortcuts} ### Effects - Vibrato with Trem. Bar -Shortcut | Action ----|--- -`W` | Vibrato with trem. bar (slight) -`Alt` `W` | Vibrato with trem. bar (wide) -{.shortcuts} +| Shortcut | Action | +| --------- | ------------------------------- | +| `W` | Vibrato with trem. bar (slight) | +| `Alt` `W` | Vibrato with trem. bar (wide) | +{.shortcuts} ### Effects - Slide -Shortcut | Action ----|--- -`S` | Legato slide -`Alt` `S` | Shift slide -{.shortcuts} +| Shortcut | Action | +| --------- | ------------ | +| `S` | Legato slide | +| `Alt` `S` | Shift slide | +{.shortcuts} ### Effects - Tremolo -Shortcut | Action ----|--- -`Shift` `'` | Thirty-second note -{.shortcuts} +| Shortcut | Action | +| ----------- | ------------------ | +| `Shift` `'` | Thirty-second note | +{.shortcuts} ### Tools -Shortcut | Action ----|--- -`F4` | Check the bars' duration -`Ctrl` `Shift` `M` | Move or swap voices -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------ | +| `F4` | Check the bars' duration | +| `Ctrl` `Shift` `M` | Move or swap voices | +{.shortcuts} ### Sound -Shortcut | Action ----|--- -`Space` | Play -`Ctrl` `Space` | Play from the beginning -`Ctrl` `Home` | First bar -`Ctrl` `Left` | Rewind -`Ctrl` `Right` | Fast forward -`Ctrl` `End` | Last bar -`F9` | Play in loops (speed trainer) -`F2` | RSI (Realistic Sound Engine) -{.shortcuts} +| Shortcut | Action | +| -------------- | ----------------------------- | +| `Space` | Play | +| `Ctrl` `Space` | Play from the beginning | +| `Ctrl` `Home` | First bar | +| `Ctrl` `Left` | Rewind | +| `Ctrl` `Right` | Fast forward | +| `Ctrl` `End` | Last bar | +| `F9` | Play in loops (speed trainer) | +| `F2` | RSI (Realistic Sound Engine) | +{.shortcuts} ### View -Shortcut | Action ----|--- -`Ctrl` `Alt` `D` | Design mode -`F3` | Multitrack -`Ctrl` `B` | Enable browser -`F6` | Fretboard -`F6` | Keyboard -`F6` | Drums -`F11` | Full screen -{.shortcuts} +| Shortcut | Action | +| ---------------- | -------------- | +| `Ctrl` `Alt` `D` | Design mode | +| `F3` | Multitrack | +| `Ctrl` `B` | Enable browser | +| `F6` | Fretboard | +| `F6` | Keyboard | +| `F6` | Drums | +| `F11` | Full screen | +{.shortcuts} ### Edit -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo -`Ctrl` `X` | Cut -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `Shift` `X` | Multitrack cut -`Ctrl` `Shift` `C` | Multitrack copy -`Ctrl` `Shift` `V` | Special paste -`Ctrl` `A` | Select all -`Ctrl` `G` | Go to -`F10` | Edit automations -`Ctrl` `1-4` | Voices -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------- | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo | +| `Ctrl` `X` | Cut | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `Shift` `X` | Multitrack cut | +| `Ctrl` `Shift` `C` | Multitrack copy | +| `Ctrl` `Shift` `V` | Special paste | +| `Ctrl` `A` | Select all | +| `Ctrl` `G` | Go to | +| `F10` | Edit automations | +| `Ctrl` `1-4` | Voices | +{.shortcuts} ### General -Shortcut | Action ----|--- -`Ctrl` `N` | New steel guitar -`Ctrl` `O` | Open -`Ctrl` `W` | Close -`Ctrl` `S` | Save -`Ctrl` `Shift` `S` | Save As -`F5` | Score information -`F7` | Stylesheet -`F8` | Print preview -`Ctrl` `P` | Print -`F12` | Preferences -`Ctrl` `Q` | Quit +| Shortcut | Action | +| ------------------ | ----------------- | +| `Ctrl` `N` | New steel guitar | +| `Ctrl` `O` | Open | +| `Ctrl` `W` | Close | +| `Ctrl` `S` | Save | +| `Ctrl` `Shift` `S` | Save As | +| `F5` | Score information | +| `F7` | Stylesheet | +| `F8` | Print preview | +| `Ctrl` `P` | Print | +| `F12` | Preferences | +| `Ctrl` `Q` | Quit | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Guitar Pro](https://shredaddict.com/guitar-pro-shortcuts/) _(shredaddict.com)_ diff --git a/source/_posts/html-char.md b/source/_posts/html-char.md index 59323c7..c745dca 100644 --- a/source/_posts/html-char.md +++ b/source/_posts/html-char.md @@ -2,423 +2,373 @@ title: HTML Characters Entities date: 2022-01-13 11:44:21 tags: - - html - - code - - characters + - html + - code + - characters categories: - Other intro: | This cheatsheet is a complete list of HTML entities with their numbers and names. Also included is a full list of ASCII characters that can be represented in HTML. --- - -HTML Character Entity References {.cols-1} ---------------- - - - +## HTML Character Entity References {.cols-1} ### HTML Special Characters -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|----------------|--------------|--------------|--------------------------|-----------------|-------------------|---------------------| -| `"` | " | `"` | quotation mark | u+0022 ISOnum | \\0022 | \42 | -| `#` | # | `#` | number sign | u+0023 ISOnum | \\0023 | \43 | -| `$` | $ | `$` | dollar sign | u+0024 ISOnum | \\0024 | \44 | -| `%` | % | `%` | percent sign | u+0025 ISOnum | \\0025 | \45 | -| `&` | & | `&` | ampersand | u+0026 ISOnum | \\0026 | \46 | -| `'` | ' | `'` | apostrophe | u+0027 ISOnum | \\0027 | \47 | -| `(` | ( | `(` | left parenthesis | u+0028 ISOnum | \\0028 | \50 | -| `)` | ) | `)` | right parenthesis | u+0029 ISOnum | \\0029 | \51 | -| `*` | * | `*` | asterisk | u+002A ISOnum | \\002a | \52 | -| `+` | + | `+` | plus sign | u+002B ISOnum | \\002b | \53 | -| `,` | , | `,` | comma | u+002C ISOnum | \\002c | \54 | -| `−` | - | `-` | hyphen-minus | u+002D ISOnum | \\002d | \55 | -| `.` | . | `.` | full stop; period | u+002E ISOnum | \\002e | \56 | -| `/` | / | `/` | solidus; slash | u+002F ISOnum | \\002f | \57 | -| `:` | : | `:` | colon | u+003A ISOnum | \\003a | \72 | -| `;` | ; | `;` | semicolon | u+003B ISOnum | \\003b | \73 | -| `<` | < | `<` | less-than | u+003C ISOnum | \\003c | \74 | -| `=` | = | `=` | equals | u+003D ISOnum | \\003d | \75 | -| `>` | > | `>` | greater-than sign | u+003E ISOnum | \\003e | \76 | -| `?` | ? | `?` | question mark | u+003F ISOnum | \\003f | \77 | -| `@` | @ | `@` | at sign; commercial at | u+0040 ISOnum | \\0040 | \100 | -| `[` | [ | `[` | left square bracket | u+005B ISOnum | \\005b | \133 | -| `\` | \ | `\` | backslash | u+005C ISOnum | \\005c | \134 | -| `]` | ] | `]` | right square bracket | u+005D ISOnum | \\005d | \135 | -| `^` | ^ | `^` | circumflex accent | u+005E ISOnum | \\005e | \136 | -| `_` | _ | `_` | low line | u+005F ISOnum | \\005f | \137 | -| ``` | ` | ``` | grave accent | u+0060 ISOnum | \\0060 | \u0060 | -| `{` | { | `{` | left curly bracket | u+007b ISOnum | \\007b | \173 | -| `|` | \| | `|` | vertical bar | u+007c ISOnum | \\007c | \174 | -| `}` | } | `}` | right curly bracket | u+007d ISOnum | \\007d | \175 | -| | ~ | `~` | tilde | u+007e ISOnum | \\007e | \176 | +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| ---------- | ------ | -------- | ---------------------- | ------------- | --------- | --------------------------------------------------------- | +| `"` | " | `"` | quotation mark | u+0022 ISOnum | \\0022 | \42 | +| `#` | # | `#` | number sign | u+0023 ISOnum | \\0023 | \43 | +| `$` | $ | `$` | dollar sign | u+0024 ISOnum | \\0024 | \44 | +| `%` | % | `%` | percent sign | u+0025 ISOnum | \\0025 | \45 | +| `&` | & | `&` | ampersand | u+0026 ISOnum | \\0026 | \46 | +| `'` | ' | `'` | apostrophe | u+0027 ISOnum | \\0027 | \47 | +| `(` | ( | `(` | left parenthesis | u+0028 ISOnum | \\0028 | \50 | +| `)` | ) | `)` | right parenthesis | u+0029 ISOnum | \\0029 | \51 | +| `*` | \* | `*` | asterisk | u+002A ISOnum | \\002a | \52 | +| `+` | + | `+` | plus sign | u+002B ISOnum | \\002b | \53 | +| `,` | , | `,` | comma | u+002C ISOnum | \\002c | \54 | +| `−` | - | `-` | hyphen-minus | u+002D ISOnum | \\002d | \55 | +| `.` | . | `.` | full stop; period | u+002E ISOnum | \\002e | \56 | +| `/` | / | `/` | solidus; slash | u+002F ISOnum | \\002f | \57 | +| `:` | : | `:` | colon | u+003A ISOnum | \\003a | \72 | +| `;` | ; | `;` | semicolon | u+003B ISOnum | \\003b | \73 | +| `<` | < | `<` | less-than | u+003C ISOnum | \\003c | \74 | +| `=` | = | `=` | equals | u+003D ISOnum | \\003d | \75 | +| `>` | > | `>` | greater-than sign | u+003E ISOnum | \\003e | \76 | +| `?` | ? | `?` | question mark | u+003F ISOnum | \\003f | \77 | +| `@` | @ | `@` | at sign; commercial at | u+0040 ISOnum | \\0040 | \100 | +| `[` | [ | `[` | left square bracket | u+005B ISOnum | \\005b | \133 | +| `\` | \ | `\` | backslash | u+005C ISOnum | \\005c | \134 | +| `]` | ] | `]` | right square bracket | u+005D ISOnum | \\005d | \135 | +| `^` | ^ | `^` | circumflex accent | u+005E ISOnum | \\005e | \136 | +| `_` | \_ | `_` | low line | u+005F ISOnum | \\005f | \137 | +| ``` | ` | ``` | grave accent | u+0060 ISOnum | \\0060 | \u0060 | +| `{` | { | `{` | left curly bracket | u+007b ISOnum | \\007b | \173 | +| `|` | \| | `|` | vertical bar | u+007c ISOnum | \\007c | \174 | +| `}` | } | `}` | right curly bracket | u+007d ISOnum | \\007d | \175 | +| | ~ | `~` | tilde | u+007e ISOnum | \\007e | \176 | + {.show-header} - - - - ### HTML Latin +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| ---------- | ------ | ---------- | ----------------------------------- | ------ | --------- | --------------------------------------------------------- | +| ` ` |   | ` ` | no-break space | %A0 | \\00a0 | \240 | +| `¡` | ¡ | `¡` | inverted exclamation mark | %A1 | \\00a1 | \241 | +| `¢` | ¢ | `¢` | cent sign | %A2 | \\00a2 | \242 | +| `£` | £ | `£` | pound sterling sign | %A3 | \\00a3 | \243 | +| `¤` | ¤ | `¤` | general currency sign | %A4 | \\00a4 | \244 | +| `¥` | ¥ | `¥` | yen sign | %A5 | \\00a5 | \245 | +| `₹` | ₹ | `₹` | Indian Rupee (INR) sign | U+20B9 | \\20B9 | \u20B9 | +| `¦` | ¦ | `¦` | broken (vertical) bar | %A6 | \\00a6 | \246 | +| `§` | § | `§` | section sign | %A7 | \\00a7 | \247 | +| `¨` | ¨ | `¨` | umlaut (dieresis) | %A8 | \\00a8 | \250 | +| `©` | © | `©` | copyright sign | %A9 | \\00a9 | \251 | +| `ª` | ª | `ª` | ordinal indicator, feminine | %AA | \\00aa | \252 | +| `«` | « | `«` | angle quotation mark, left | %AB | \\00ab | \253 | +| `¬` | ¬ | `¬` | not sign | %AC | \\00ac | \254 | +| `­` | ­ | `­` | soft hyphen | %AD | \\00ad | \255 | +| `®` | ® | `®` | registered sign | %AE | \\00ae | \256 | +| `¯` | ¯ | `¯` | macron | %AF | \\00af | \257 | +| `°` | ° | `°` | degree sign | %B0 | \\00b0 | \260 | +| `±` | ± | `±` | plus-or-minus sign | %B1 | \\00b1 | \261 | +| `²` | ² | `²` | superscript two | %B2 | \\00b2 | \262 | +| `³` | ³ | `³` | superscript three | %B3 | \\00b3 | \263 | +| `´` | ´ | `´` | acute accent | %B4 | \\00b4 | \264 | +| `µ` | µ | `µ` | micro sign | %B5 | \\00b5 | \265 | +| `¶` | ¶ | `¶` | pilcrow (paragraph sign) | %B6 | \\00b6 | \266 | +| `·` | · | `·` | middle dot | %B7 | \\00b7 | \267 | +| `¸` | ¸ | `¸` | cedilla | %B8 | \\00b8 | \270 | +| `¹` | ¹ | `¹` | superscript one | %B9 | \\00b9 | \271 | +| `º` | º | `º` | ordinal indicator, masculine | %BA | \\00ba | \272 | +| `»` | » | `»` | angle quotation mark, right | %BB | \\00bb | \273 | +| `¼` | ¼ | `¼` | fraction one-quarter | %BC | \\00bc | \274 | +| `½` | ½ | `½` | fraction one-half | %BD | \\00bd | \275 | +| `¾` | ¾ | `¾` | fraction three-quarters | %BE | \\00be | \276 | +| `¿` | ¿ | `¿` | inverted question mark | %BF | \\00bf | \277 | +| `À` | À | `À` | capital A, grave accent | %C0 | \\00c0 | \300 | +| `Á` | Á | `Á` | capital A, acute accent | %C1 | \\00c1 | \301 | +| `Â` |  | ` ;` | capital A, circumflex accent | %C2 | \\00c2 | \302 | +| `Ã` | à | `Ã` | capital A, tilde | %C3 | \\00c3 | \303 | +| `Ä` | Ä | `Ä` | capital A, dieresis or umlaut mark | %C4 | \\00c4 | \304 | +| `Å` | Å | `Å` | capital A, ring | %C5 | \\00c5 | \305 | +| `Æ` | Æ | `Æ` | capital AE diphthong (ligature) | %C6 | \\00c6 | \306 | +| `Ç` | Ç | `Ç` | capital C, cedilla | %C7 | \\00c7 | \307 | +| `È` | È | `È` | capital E, grave accent | %C8 | \\00c8 | \310 | +| `É` | É | `É` | capital E, acute accent | %C9 | \\00c9 | \311 | +| `Ê` | Ê | `Ê` | capital E, circumflex accent | %CA | \\00ca | \312 | +| `Ë` | Ë | `Ë` | capital E, dieresis or umlaut mark | %CB | \\00cb | \313 | +| `Ì` | Ì | `Ì` | capital I, grave accent | %CC | \\00cc | \314 | +| `Í` | Í | `Í` | capital I, acute accent | %CD | \\00cd | \315 | +| `Î` | Î | `Î` | capital I, circumflex accent | %CE | \\00ce | \316 | +| `Ï` | Ï | `Ï` | capital I, dieresis or umlaut mark | %CF | \\00cf | \317 | +| `Ð` | Ð | `Ð` | capital Eth, Icelandic | %D0 | \\00d0 | \320 | +| `Ñ` | Ñ | `Ñ` | capital N, tilde | %D1 | \\00d1 | \321 | +| `Ò` | Ò | `Ò` | capital O, grave accent | %D2 | \\00d2 | \322 | +| `Ó` | Ó | `Ó` | capital O, acute accent | %D3 | \\00d3 | \323 | +| `Ô` | Ô | `Ô` | capital O, circumflex accent | %D4 | \\00d4 | \324 | +| `Õ` | Õ | `Õ` | capital O, tilde | %D5 | \\00d5 | \325 | +| `Ö` | Ö | `Ö` | capital O, dieresis or umlaut mark | %D6 | \\00d6 | \326 | +| `×` | × | `×` | multiply sign | %D7 | \\00d7 | \327 | +| `Ø` | Ø | `Ø` | capital O, slash | %D8 | \\00d8 | \330 | +| `Ù` | Ù | `Ù` | capital U, grave accent | %D9 | \\00d9 | \331 | +| `Ú` | Ú | `Ú` | capital U, acute accent | %DA | \\00da | \332 | +| `Û` | Û | `Û` | capital U, circumflex accent | %DB | \\00db | \333 | +| `Ü` | Ü | `Ü` | capital U, dieresis or umlaut mark | %DC | \\00dc | \334 | +| `Ý` | Ý | `Ý` | capital Y, acute accent | %DD | \\00dd | \335 | +| `Þ` | Þ | `Þ` | capital THORN, Icelandic | %DE | \\00de | \336 | +| `ß` | ß | `ß` | small sharp s, German (sz ligature) | %DF | \\00df | \337 | +| `à` | à | `à` | small a, grave accent | %E0 | \\00e0 | \340 | +| `á` | á | `á` | small a, acute accent | %E1 | \\00e1 | \341 | +| `â` | â | `â` | small a, circumflex accent | %E2 | \\00e2 | \342 | +| `ã` | ã | `ã` | small a, tilde | %E3 | \\00e3 | \343 | +| `ä` | ä | `ä` | small a, dieresis or umlaut mark | %E4 | \\00e4 | \344 | +| `å` | å | `å` | small a, ring | %E5 | \\00e5 | \345 | +| `æ` | æ | `æ` | small ae diphthong (ligature) | %E6 | \\00e6 | \346 | +| `ç` | ç | `ç` | small c, cedilla | %E7 | \\00e7 | \347 | +| `è` | è | `è` | small e, grave accent | %E8 | \\00e8 | \350 | +| `é` | é | `é` | small e, acute accent | %E9 | \\00e9 | \351 | +| `ê` | ê | `ê` | small e, circumflex accent | %EA | \\00ea | \352 | +| `ë` | ë | `ë` | small e, dieresis or umlaut mark | %EB | \\00eb | \353 | +| `ì` | ì | `ì` | small i, grave accent | %EC | \\00ec | \354 | +| `í` | í | `í` | small i, acute accent | %ED | \\00ed | \355 | +| `î` | î | `î` | small i, circumflex accent | %EE | \\00ee | \356 | +| `ï` | ï | `ï` | small i, dieresis or umlaut mark | %EF | \\00ef | \357 | +| `ð` | ð | `ð` | small eth, Icelandic | %F0 | \\00f0 | \360 | +| `ñ` | ñ | `ñ` | small n, tilde | %F1 | \\00f1 | \361 | +| `ò` | ò | `ò` | small o, grave accent | %F2 | \\00f2 | \362 | +| `ó` | ó | `ó` | small o, acute accent | %F3 | \\00f3 | \363 | +| `ô` | ô | `ô` | small o, circumflex accent | %F4 | \\00f4 | \364 | +| `õ` | õ | `õ` | small o, tilde | %F5 | \\00f5 | \365 | +| `ö` | ö | `ö` | small o, dieresis or umlaut mark | %F6 | \\00f6 | \366 | +| `÷` | ÷ | `÷` | divide sign | %F7 | \\00f7 | \367 | +| `ø` | ø | `ø` | small o, slash | %F8 | \\00f8 | \370 | +| `ù` | ù | `ù` | small u, grave accent | %F9 | \\00f9 | \371 | +| `ú` | ú | `ú` | small u, acute accent | %FA | \\00fa | \372 | +| `û` | û | `û` | small u, circumflex accent | %FB | \\00fb | \373 | +| `ü` | ü | `ü` | small u, dieresis or umlaut mark | %FC | \\00fc | \374 | +| `ý` | ý | `ý` | small y, acute accent | %FD | \\00fd | \375 | +| `þ` | þ | `þ` | small thorn, Icelandic | %FE | \\00fe | \376 | +| `ÿ` | ÿ | `ÿ` | small y, dieresis or umlaut mark | %FF | \\00ff | \377 | -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|----------------|----------|----------------|---------------------------------------|----------|-----------|---------------------| -| ` ` |   | ` ` | no-break space | %A0 | \\00a0 | \240 | -| `¡` | ¡ | `¡` | inverted exclamation mark | %A1 | \\00a1 | \241 | -| `¢` | ¢ | `¢` | cent sign | %A2 | \\00a2 | \242 | -| `£` | £ | `£` | pound sterling sign | %A3 | \\00a3 | \243 | -| `¤` | ¤ | `¤` | general currency sign | %A4 | \\00a4 | \244 | -| `¥` | ¥ | `¥` | yen sign | %A5 | \\00a5 | \245 | -| `₹` | ₹ | `₹` | Indian Rupee (INR) sign | U+20B9 | \\20B9 | \u20B9 | -| `¦` | ¦ | `¦` | broken (vertical) bar | %A6 | \\00a6 | \246 | -| `§` | § | `§` | section sign | %A7 | \\00a7 | \247 | -| `¨` | ¨ | `¨` | umlaut (dieresis) | %A8 | \\00a8 | \250 | -| `©` | © | `©` | copyright sign | %A9 | \\00a9 | \251 | -| `ª` | ª | `ª` | ordinal indicator, feminine | %AA | \\00aa | \252 | -| `«` | « | `«` | angle quotation mark, left | %AB | \\00ab | \253 | -| `¬` | ¬ | `¬` | not sign | %AC | \\00ac | \254 | -| `­` | ­ | `­` | soft hyphen | %AD | \\00ad | \255 | -| `®` | ® | `®` | registered sign | %AE | \\00ae | \256 | -| `¯` | ¯ | `¯` | macron | %AF | \\00af | \257 | -| `°` | ° | `°` | degree sign | %B0 | \\00b0 | \260 | -| `±` | ± | `±` | plus-or-minus sign | %B1 | \\00b1 | \261 | -| `²` | ² | `²` | superscript two | %B2 | \\00b2 | \262 | -| `³` | ³ | `³` | superscript three | %B3 | \\00b3 | \263 | -| `´` | ´ | `´` | acute accent | %B4 | \\00b4 | \264 | -| `µ` | µ | `µ` | micro sign | %B5 | \\00b5 | \265 | -| `¶` | ¶ | `¶` | pilcrow (paragraph sign) | %B6 | \\00b6 | \266 | -| `·` | · | `·` | middle dot | %B7 | \\00b7 | \267 | -| `¸` | ¸ | `¸` | cedilla | %B8 | \\00b8 | \270 | -| `¹` | ¹ | `¹` | superscript one | %B9 | \\00b9 | \271 | -| `º` | º | `º` | ordinal indicator, masculine | %BA | \\00ba | \272 | -| `»` | » | `»` | angle quotation mark, right | %BB | \\00bb | \273 | -| `¼` | ¼ | `¼` | fraction one-quarter | %BC | \\00bc | \274 | -| `½` | ½ | `½` | fraction one-half | %BD | \\00bd | \275 | -| `¾` | ¾ | `¾` | fraction three-quarters | %BE | \\00be | \276 | -| `¿` | ¿ | `¿` | inverted question mark | %BF | \\00bf | \277 | -| `À` | À | `À` | capital A, grave accent | %C0 | \\00c0 | \300 | -| `Á` | Á | `Á` | capital A, acute accent | %C1 | \\00c1 | \301 | -| `Â` |  | ` ;` | capital A, circumflex accent | %C2 | \\00c2 | \302 | -| `Ã` | à | `Ã` | capital A, tilde | %C3 | \\00c3 | \303 | -| `Ä` | Ä | `Ä` | capital A, dieresis or umlaut mark | %C4 | \\00c4 | \304 | -| `Å` | Å | `Å` | capital A, ring | %C5 | \\00c5 | \305 | -| `Æ` | Æ | `Æ` | capital AE diphthong (ligature) | %C6 | \\00c6 | \306 | -| `Ç` | Ç | `Ç` | capital C, cedilla | %C7 | \\00c7 | \307 | -| `È` | È | `È` | capital E, grave accent | %C8 | \\00c8 | \310 | -| `É` | É | `É` | capital E, acute accent | %C9 | \\00c9 | \311 | -| `Ê` | Ê | `Ê` | capital E, circumflex accent | %CA | \\00ca | \312 | -| `Ë` | Ë | `Ë` | capital E, dieresis or umlaut mark | %CB | \\00cb | \313 | -| `Ì` | Ì | `Ì` | capital I, grave accent | %CC | \\00cc | \314 | -| `Í` | Í | `Í` | capital I, acute accent | %CD | \\00cd | \315 | -| `Î` | Î | `Î` | capital I, circumflex accent | %CE | \\00ce | \316 | -| `Ï` | Ï | `Ï` | capital I, dieresis or umlaut mark | %CF | \\00cf | \317 | -| `Ð` | Ð | `Ð` | capital Eth, Icelandic | %D0 | \\00d0 | \320 | -| `Ñ` | Ñ | `Ñ` | capital N, tilde | %D1 | \\00d1 | \321 | -| `Ò` | Ò | `Ò` | capital O, grave accent | %D2 | \\00d2 | \322 | -| `Ó` | Ó | `Ó` | capital O, acute accent | %D3 | \\00d3 | \323 | -| `Ô` | Ô | `Ô` | capital O, circumflex accent | %D4 | \\00d4 | \324 | -| `Õ` | Õ | `Õ` | capital O, tilde | %D5 | \\00d5 | \325 | -| `Ö` | Ö | `Ö` | capital O, dieresis or umlaut mark | %D6 | \\00d6 | \326 | -| `×` | × | `×` | multiply sign | %D7 | \\00d7 | \327 | -| `Ø` | Ø | `Ø` | capital O, slash | %D8 | \\00d8 | \330 | -| `Ù` | Ù | `Ù` | capital U, grave accent | %D9 | \\00d9 | \331 | -| `Ú` | Ú | `Ú` | capital U, acute accent | %DA | \\00da | \332 | -| `Û` | Û | `Û` | capital U, circumflex accent | %DB | \\00db | \333 | -| `Ü` | Ü | `Ü` | capital U, dieresis or umlaut mark | %DC | \\00dc | \334 | -| `Ý` | Ý | `Ý` | capital Y, acute accent | %DD | \\00dd | \335 | -| `Þ` | Þ | `Þ` | capital THORN, Icelandic | %DE | \\00de | \336 | -| `ß` | ß | `ß` | small sharp s, German (sz ligature) | %DF | \\00df | \337 | -| `à` | à | `à` | small a, grave accent | %E0 | \\00e0 | \340 | -| `á` | á | `á` | small a, acute accent | %E1 | \\00e1 | \341 | -| `â` | â | `â` | small a, circumflex accent | %E2 | \\00e2 | \342 | -| `ã` | ã | `ã` | small a, tilde | %E3 | \\00e3 | \343 | -| `ä` | ä | `ä` | small a, dieresis or umlaut mark | %E4 | \\00e4 | \344 | -| `å` | å | `å` | small a, ring | %E5 | \\00e5 | \345 | -| `æ` | æ | `æ` | small ae diphthong (ligature) | %E6 | \\00e6 | \346 | -| `ç` | ç | `ç` | small c, cedilla | %E7 | \\00e7 | \347 | -| `è` | è | `è` | small e, grave accent | %E8 | \\00e8 | \350 | -| `é` | é | `é` | small e, acute accent | %E9 | \\00e9 | \351 | -| `ê` | ê | `ê` | small e, circumflex accent | %EA | \\00ea | \352 | -| `ë` | ë | `ë` | small e, dieresis or umlaut mark | %EB | \\00eb | \353 | -| `ì` | ì | `ì` | small i, grave accent | %EC | \\00ec | \354 | -| `í` | í | `í` | small i, acute accent | %ED | \\00ed | \355 | -| `î` | î | `î` | small i, circumflex accent | %EE | \\00ee | \356 | -| `ï` | ï | `ï` | small i, dieresis or umlaut mark | %EF | \\00ef | \357 | -| `ð` | ð | `ð` | small eth, Icelandic | %F0 | \\00f0 | \360 | -| `ñ` | ñ | `ñ` | small n, tilde | %F1 | \\00f1 | \361 | -| `ò` | ò | `ò` | small o, grave accent | %F2 | \\00f2 | \362 | -| `ó` | ó | `ó` | small o, acute accent | %F3 | \\00f3 | \363 | -| `ô` | ô | `ô` | small o, circumflex accent | %F4 | \\00f4 | \364 | -| `õ` | õ | `õ` | small o, tilde | %F5 | \\00f5 | \365 | -| `ö` | ö | `ö` | small o, dieresis or umlaut mark | %F6 | \\00f6 | \366 | -| `÷` | ÷ | `÷` | divide sign | %F7 | \\00f7 | \367 | -| `ø` | ø | `ø` | small o, slash | %F8 | \\00f8 | \370 | -| `ù` | ù | `ù` | small u, grave accent | %F9 | \\00f9 | \371 | -| `ú` | ú | `ú` | small u, acute accent | %FA | \\00fa | \372 | -| `û` | û | `û` | small u, circumflex accent | %FB | \\00fb | \373 | -| `ü` | ü | `ü` | small u, dieresis or umlaut mark | %FC | \\00fc | \374 | -| `ý` | ý | `ý` | small y, acute accent | %FD | \\00fd | \375 | -| `þ` | þ | `þ` | small thorn, Icelandic | %FE | \\00fe | \376 | -| `ÿ` | ÿ | `ÿ` | small y, dieresis or umlaut mark | %FF | \\00ff | \377 | {.show-header} - - - ### HTML Latin Extended +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| ---------- | ------ | -------- | ------------------------------------- | -------------- | --------- | --------------------------------------------------------- | +| `Œ` | Œ | `Œ` | latin capital ligature oe | u+0152 ISOlat2 | \\0152 | \u0152 | +| `œ` | œ | `œ` | latin small ligature oe | u+0153 ISOlat2 | \\0153 | \u0153 | +| `Š` | Š | `Š` | latin capital letter s with caron | u+0160 ISOlat2 | \\0160 | \u0160 | +| `š` | š | `š` | latin small letter s with caron | u+0161 ISOlat2 | \\0161 | \u0161 | +| `Ÿ` | Ÿ | `Ÿ` | latin capital letter y with diaeresis | u+0178 ISOlat2 | \\0178 | \u0178 | +| `ƒ` | ƒ | `ƒ` | latin small f with hook | u+0192 ISOtech | \\0192 | \u0192 | - -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|----------------|--------|--------------|-----------------------------------------|------------------|-----------|---------------------| -| `Œ` | Œ | `Œ` | latin capital ligature oe | u+0152 ISOlat2 | \\0152 | \u0152 | -| `œ` | œ | `œ` | latin small ligature oe | u+0153 ISOlat2 | \\0153 | \u0153 | -| `Š` | Š | `Š` | latin capital letter s with caron | u+0160 ISOlat2 | \\0160 | \u0160 | -| `š` | š | `š` | latin small letter s with caron | u+0161 ISOlat2 | \\0161 | \u0161 | -| `Ÿ` | Ÿ | `Ÿ` | latin capital letter y with diaeresis | u+0178 ISOlat2 | \\0178 | \u0178 | -| `ƒ` | ƒ | `ƒ` | latin small f with hook | u+0192 ISOtech | \\0192 | \u0192 | {.show-header} - - - ### HTML Spacing Modifier Letters +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| --------- | ------ | ------- | --------------------------------- | ------------- | --------- | --------------------------------------------------------- | +| `ˆ` | ˆ | | modifier letter circumflex accent | u+02C6 ISOpub | \\02c6 | \u02c6 | +| `˜` | ˜ | | small tilde | u+02DC ISOdia | \\02dc | \u02dc | - -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|---------------|--------|-------------------------------------|-----------------|---------|---------------------|------------| -| `ˆ` | ˆ | | modifier letter circumflex accent | u+02C6 ISOpub | \\02c6 | \u02c6 | -| `˜` | ˜ | | small tilde | u+02DC ISOdia | \\02dc | \u02dc | {.show-header} - - - ### HTML Greek +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| ------------ | ------ | -------- | ------------------------------- | -------------- | --------- | --------------------------------------------------------- | +| `Α` | Α | `Α` | greek capital letter alpha | u+0391 | \\0391 | \u0391 | +| `Β` | Β | `Β` | greek capital letter beta | u+0392 | \\0392 | \u0392 | +| `Γ` | Γ | `Γ` | greek capital letter gamma | u+0393 ISOgrk3 | \\0393 | \u0395 | +| `Δ` | Δ | `Δ` | greek capital letter delta | u+0394 ISOgrk3 | \\0394 | \u0394 | +| `Ε` | Ε | `Ε` | greek capital letter epsilon | u+0395 | \\0395 | \u0395 | +| `Ζ` | Ζ | `Ζ` | greek capital letter zeta | u+0396 | \\0396 | \u0396 | +| `Η` | Η | `Η` | greek capital letter eta | u+0397 | \\0397 | \u0397 | +| `Θ` | Θ | `Θ` | greek capital letter theta | u+0398 ISOgrk3 | \\0398 | \u0398 | +| `Ι` | Ι | `Ι` | greek capital letter iota | u+0399 | \\0399 | \u0399 | +| `Κ` | Κ | `Κ` | greek capital letter kappa | u+039A | \\039a | \u039a | +| `Λ` | Λ | `Λ` | greek capital letter lambda | u+039B ISOgrk3 | \\039b | \u039b | +| `Μ` | Μ | `Μ` | greek capital letter mu | u+039C | \\039c | \u039c | +| `Ν` | Ν | `Ν` | greek capital letter nu | u+039D | \\039d | \u039D | +| `Ξ` | Ξ | `Ξ` | greek capital letter xi | u+039E ISOgrk3 | \\039e | \u039e | +| `Ο` | Ο | `Ο` | greek capital letter omicron | u+039F | \\039f | \u039f | +| `Π` | Π | `Π` | greek capital letter pi | u+03A0 ISOgrk3 | \\03a0 | \u03a0 | +| `Ρ` | Ρ | `Ρ` | greek capital letter rho | u+03A1 | \\03a1 | \u03a1 | +| `Σ` | Σ | `Σ` | greek capital letter sigma | u+03A3 ISOgrk3 | \\03a3 | \u03A3 | +| `Τ` | Τ | `Τ` | greek capital letter tau | u+03A4 | \\03a4 | \u03A4 | +| `Υ` | Υ | `Υ` | greek capital letter upsilon | u+03A5 ISOgrk3 | \\03a5 | \u03A5 | +| `Φ` | Φ | `Φ` | greek capital letter phi | u+03A6 ISOgrk3 | \\03a6 | \u03A6 | +| `Χ` | Χ | `Χ` | greek capital letter chi | u+03A7 | \\03a7 | \u03A7 | +| `Ψ` | Ψ | `Ψ` | greek capital letter psi | u+03A8 ISOgrk3 | \\03a8 | \u03A8 | +| `Ω` | Ω | `Ω` | greek capital letter omega | u+03A9 ISOgrk3 | \\03a9 | \u03A9 | +| `α` | α | `α` | greek small letter alpha | u+03B1 ISOgrk3 | \\03b1 | \u03b1 | +| `β` | β | `β` | greek small letter beta | u+03B2 ISOgrk3 | \\03b2 | \u03b2 | +| `γ` | γ | `γ` | greek small letter gamma | u+03B3 ISOgrk3 | \\03b3 | \u03b3 | +| `δ` | δ | `δ` | greek small letter delta | u+03B4 ISOgrk3 | \\03b4 | \u03b4 | +| `ε` | ε | `ε` | greek small letter epsilon | u+03B5 ISOgrk3 | \\03b5 | \u03b5 | +| `ζ` | ζ | `ζ` | greek small letter zeta | u+03B6 ISOgrk3 | \\03b6 | \u03b6 | +| `η` | η | `η` | greek small letter eta | u+03B7 ISOgrk3 | \\03b7 | \u03b7 | +| `θ` | θ | `θ` | greek small letter theta | u+03B8 ISOgrk3 | \\03b8 | \u03b8 | +| `ι` | ι | `ι` | greek small letter iota | u+03B9 ISOgrk3 | \\03b9 | \u03b9 | +| `κ` | κ | `κ` | greek small letter kappa | u+03BA ISOgrk3 | \\03ba | \u03ba | +| `λ` | λ | `λ` | greek small letter lambda | u+03BB ISOgrk3 | \\03bb | \u03bb | +| `μ` | μ | `μ` | greek small letter mu | u+03BC ISOgrk3 | \\03bc | \u03bc | +| `ν` | ν | `ν` | greek small letter nu | u+03BD ISOgrk3 | \\03bd | \u03bd | +| `ξ` | ξ | `ξ` | greek small letter xi | u+03BE ISOgrk3 | \\03be | \u03be | +| `ο` | ο | `ο` | greek small letter omicron | u+03BF NEW | \\03bf | \u03bf | +| `π` | π | `π` | greek small letter pi | u+03C0 ISOgrk3 | \\03c0 | \u03c0 | +| `ρ` | ρ | `ρ` | greek small letter rho | u+03C1 ISOgrk3 | \\03c1 | \u03c1 | +| `ς` | ς | `ς` | greek small letter final sigma | u+03C2 ISOgrk3 | \\03C2 | \u03c2 | +| `σ` | σ | `σ` | greek small letter sigma | u+03C3 ISOgrk3 | \\03C3 | \u03c3 | +| `τ` | τ | `τ` | greek small letter tau | u+03C4 ISOgrk3 | \\03C4 | \u03c4 | +| `υ` | υ | `υ` | greek small letter upsilon | u+03C5 ISOgrk3 | \\03C5 | \u03c5 | +| `φ` | φ | `φ` | greek small letter phi | u+03C6 ISOgrk3 | \\03C6 | \03c6 | +| `χ` | χ | `χ` | greek small letter chi | u+03C7 ISOgrk3 | \\03C7 | \u03c7 | +| `ψ` | ψ | `ψ` | greek small letter psi | u+03C8 ISOgrk3 | \\03C8 | \u03c8 | +| `ω` | ω | `ω` | greek small letter omega | u+03C9 ISOgrk3 | \\03C9 | \u03c9 | +| `ϑ` | ϑ | `ϑ` | greek small letter theta symbol | u+03D1 NEW | \\03D1 | \u03D1 | +| `ϒ` | ϒ | `ϒ` | greek upsilon with hook symbol | u+03D2 NEW | \\03D2 | \u03D2 | +| `ϖ` | ϖ | `ϖ` | greek pi symbol | u+03D6 ISOgrk3 | \\03D6 | \u03D6 | - -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|------------------|--------|--------------|-----------------------------------|------------------|-----------|---------------------| -| `Α` | Α | `Α` | greek capital letter alpha | u+0391 | \\0391 | \u0391 | -| `Β` | Β | `Β` | greek capital letter beta | u+0392 | \\0392 | \u0392 | -| `Γ` | Γ | `Γ` | greek capital letter gamma | u+0393 ISOgrk3 | \\0393 | \u0395 | -| `Δ` | Δ | `Δ` | greek capital letter delta | u+0394 ISOgrk3 | \\0394 | \u0394 | -| `Ε` | Ε | `Ε` | greek capital letter epsilon | u+0395 | \\0395 | \u0395 | -| `Ζ` | Ζ | `Ζ` | greek capital letter zeta | u+0396 | \\0396 | \u0396 | -| `Η` | Η | `Η` | greek capital letter eta | u+0397 | \\0397 | \u0397 | -| `Θ` | Θ | `Θ` | greek capital letter theta | u+0398 ISOgrk3 | \\0398 | \u0398 | -| `Ι` | Ι | `Ι` | greek capital letter iota | u+0399 | \\0399 | \u0399 | -| `Κ` | Κ | `Κ` | greek capital letter kappa | u+039A | \\039a | \u039a | -| `Λ` | Λ | `Λ` | greek capital letter lambda | u+039B ISOgrk3 | \\039b | \u039b | -| `Μ` | Μ | `Μ` | greek capital letter mu | u+039C | \\039c | \u039c | -| `Ν` | Ν | `Ν` | greek capital letter nu | u+039D | \\039d | \u039D | -| `Ξ` | Ξ | `Ξ` | greek capital letter xi | u+039E ISOgrk3 | \\039e | \u039e | -| `Ο` | Ο | `Ο` | greek capital letter omicron | u+039F | \\039f | \u039f | -| `Π` | Π | `Π` | greek capital letter pi | u+03A0 ISOgrk3 | \\03a0 | \u03a0 | -| `Ρ` | Ρ | `Ρ` | greek capital letter rho | u+03A1 | \\03a1 | \u03a1 | -| `Σ` | Σ | `Σ` | greek capital letter sigma | u+03A3 ISOgrk3 | \\03a3 | \u03A3 | -| `Τ` | Τ | `Τ` | greek capital letter tau | u+03A4 | \\03a4 | \u03A4 | -| `Υ` | Υ | `Υ` | greek capital letter upsilon | u+03A5 ISOgrk3 | \\03a5 | \u03A5 | -| `Φ` | Φ | `Φ` | greek capital letter phi | u+03A6 ISOgrk3 | \\03a6 | \u03A6 | -| `Χ` | Χ | `Χ` | greek capital letter chi | u+03A7 | \\03a7 | \u03A7 | -| `Ψ` | Ψ | `Ψ` | greek capital letter psi | u+03A8 ISOgrk3 | \\03a8 | \u03A8 | -| `Ω` | Ω | `Ω` | greek capital letter omega | u+03A9 ISOgrk3 | \\03a9 | \u03A9 | -| `α` | α | `α` | greek small letter alpha | u+03B1 ISOgrk3 | \\03b1 | \u03b1 | -| `β` | β | `β` | greek small letter beta | u+03B2 ISOgrk3 | \\03b2 | \u03b2 | -| `γ` | γ | `γ` | greek small letter gamma | u+03B3 ISOgrk3 | \\03b3 | \u03b3 | -| `δ` | δ | `δ` | greek small letter delta | u+03B4 ISOgrk3 | \\03b4 | \u03b4 | -| `ε` | ε | `ε` | greek small letter epsilon | u+03B5 ISOgrk3 | \\03b5 | \u03b5 | -| `ζ` | ζ | `ζ` | greek small letter zeta | u+03B6 ISOgrk3 | \\03b6 | \u03b6 | -| `η` | η | `η` | greek small letter eta | u+03B7 ISOgrk3 | \\03b7 | \u03b7 | -| `θ` | θ | `θ` | greek small letter theta | u+03B8 ISOgrk3 | \\03b8 | \u03b8 | -| `ι` | ι | `ι` | greek small letter iota | u+03B9 ISOgrk3 | \\03b9 | \u03b9 | -| `κ` | κ | `κ` | greek small letter kappa | u+03BA ISOgrk3 | \\03ba | \u03ba | -| `λ` | λ | `λ` | greek small letter lambda | u+03BB ISOgrk3 | \\03bb | \u03bb | -| `μ` | μ | `μ` | greek small letter mu | u+03BC ISOgrk3 | \\03bc | \u03bc | -| `ν` | ν | `ν` | greek small letter nu | u+03BD ISOgrk3 | \\03bd | \u03bd | -| `ξ` | ξ | `ξ` | greek small letter xi | u+03BE ISOgrk3 | \\03be | \u03be | -| `ο` | ο | `ο` | greek small letter omicron | u+03BF NEW | \\03bf | \u03bf | -| `π` | π | `π` | greek small letter pi | u+03C0 ISOgrk3 | \\03c0 | \u03c0 | -| `ρ` | ρ | `ρ` | greek small letter rho | u+03C1 ISOgrk3 | \\03c1 | \u03c1 | -| `ς` | ς | `ς` | greek small letter final sigma | u+03C2 ISOgrk3 | \\03C2 | \u03c2 | -| `σ` | σ | `σ` | greek small letter sigma | u+03C3 ISOgrk3 | \\03C3 | \u03c3 | -| `τ` | τ | `τ` | greek small letter tau | u+03C4 ISOgrk3 | \\03C4 | \u03c4 | -| `υ` | υ | `υ` | greek small letter upsilon | u+03C5 ISOgrk3 | \\03C5 | \u03c5 | -| `φ` | φ | `φ` | greek small letter phi | u+03C6 ISOgrk3 | \\03C6 | \03c6 | -| `χ` | χ | `χ` | greek small letter chi | u+03C7 ISOgrk3 | \\03C7 | \u03c7 | -| `ψ` | ψ | `ψ` | greek small letter psi | u+03C8 ISOgrk3 | \\03C8 | \u03c8 | -| `ω` | ω | `ω` | greek small letter omega | u+03C9 ISOgrk3 | \\03C9 | \u03c9 | -| `ϑ` | ϑ | `ϑ` | greek small letter theta symbol | u+03D1 NEW | \\03D1 | \u03D1 | -| `ϒ` | ϒ | `ϒ` | greek upsilon with hook symbol | u+03D2 NEW | \\03D2 | \u03D2 | -| `ϖ` | ϖ | `ϖ` | greek pi symbol | u+03D6 ISOgrk3 | \\03D6 | \u03D6 | {.show-header} - - - ### HTML Punctuation +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| ---------- | ------ | --------- | ------------------------------------------ | ------------------- | --------- | --------------------------------------------------------- | +| ` ` |   | ` ` | en space | u+2002 ISOpub | \\2002 | \u2002 | +| ` ` |   | ` ` | em space | u+2003 ISOpub | \\2003 | \u2003 | +| ` ` |   | ` ` | thin space | u+2009 ISOpub | \\2009 | \u2009 | +| `‌` | ‌ | `‌` | zero width non-joiner | u+200C NEW RFC 2070 | \\200C | \u200C | +| `‍` | ‍ | `‍` | zero width joiner | u+200D NEW RFC 2070 | \\200D | \u200d | +| `‎` | ‎ | `‎` | left-to-right mark | u+200E NEW RFC 2070 | \\200E | \u200e | +| `‏` | ‏ | `‏` | right-to-left mark | u+200F NEW RFC 2070 | \\200F | \u200f | +| `–` | – | `–` | en dash | u+2013 ISOpub | \\2013 | \u2013 | +| `—` | — | `—` | em dash | u+2014 ISOpub | \\2014 | \u2014 | +| `‘` | ‘ | `‘` | left single quotation mark | u+2018 ISOnum | \\2018 | \u2018 | +| `’` | ’ | `’` | right single quotation mark | u+2019 ISOnum | \\2019 | \u2019 | +| `‚` | ‚ | `‚` | single low-9 quotation mark | u+201A NEW | \\201A | \u201a | +| `“` | “ | `“` | left double quotation mark | u+201C ISOnum | \\201C | \u201c | +| `”` | ” | `”` | right double quotation mark | u+201D ISOnum | \\201D | \u201d | +| `„` | „ | `„` | double low-9 quotation mark | u+201E NEW | \\201E | \u201e | +| `†` | † | `†` | dagger | u+2020 ISOpub | \\2020 | \u2020 | +| `‡` | ‡ | `‡` | double dagger | u+2021 ISOpub | \\2021 | \u2021 | +| `‰` | ‰ | `‰` | per mille sign | u+2030 ISOtech | \\2030 | \u2030 | +| `‹` | ‹ | `‹` | single left-pointing angle quotation mark | u+2039 ISO proposed | \\2039 | \u2039 | +| `›` | › | `›` | single right-pointing angle quotation mark | u+203A ISO proposed | \\203A | \u203a | +| `•` | • | `•` | bullet, aka. black small circle | u+2022 ISOpub | \\2022 | \u2219 | +| `…` | … | `…` | horizontal ellipsis, aka three dot leader | u+2026 ISOpub | \\2026 | \u2026 | +| `′` | ′ | `′` | prime, aka minutes, aka feet | u+2032 ISOtech | \\2032 | \u2032 | +| `″` | ″ | `″` | double prime, aka seconds, aka inches | u+2033 ISOtech | \\2033 | \u2033 | +| `‾` | ‾ | `‾` | overline, aka spacing overscore | u+203E NEW | \\203E | \u203e | +| `⁄` | ⁄ | `⁄` | fraction slash | u+2044 NEW | \\2044 | \u8260 | - -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|----------------|--------|---------------|-------------------------------------------------------------------------------------|-----------------------|-----------|---------------------| -| ` ` |   | ` ` | en space | u+2002 ISOpub | \\2002 | \u2002 | -| ` ` |   | ` ` | em space | u+2003 ISOpub | \\2003 | \u2003 | -| ` ` |   | ` ` | thin space | u+2009 ISOpub | \\2009 | \u2009 | -| `‌` | ‌ | `‌` | zero width non-joiner | u+200C NEW RFC 2070 | \\200C | \u200C | -| `‍` | ‍ | `‍` | zero width joiner | u+200D NEW RFC 2070 | \\200D | \u200d | -| `‎` | ‎ | `‎` | left-to-right mark | u+200E NEW RFC 2070 | \\200E | \u200e | -| `‏` | ‏ | `‏` | right-to-left mark | u+200F NEW RFC 2070 | \\200F | \u200f | -| `–` | – | `–` | en dash | u+2013 ISOpub | \\2013 | \u2013 | -| `—` | — | `—` | em dash | u+2014 ISOpub | \\2014 | \u2014 | -| `‘` | ‘ | `‘` | left single quotation mark | u+2018 ISOnum | \\2018 | \u2018 | -| `’` | ’ | `’` | right single quotation mark | u+2019 ISOnum | \\2019 | \u2019 | -| `‚` | ‚ | `‚` | single low-9 quotation mark | u+201A NEW | \\201A | \u201a | -| `“` | “ | `“` | left double quotation mark | u+201C ISOnum | \\201C | \u201c | -| `”` | ” | `”` | right double quotation mark | u+201D ISOnum | \\201D | \u201d | -| `„` | „ | `„` | double low-9 quotation mark | u+201E NEW | \\201E | \u201e | -| `†` | † | `†` | dagger | u+2020 ISOpub | \\2020 | \u2020 | -| `‡` | ‡ | `‡` | double dagger | u+2021 ISOpub | \\2021 | \u2021 | -| `‰` | ‰ | `‰` | per mille sign | u+2030 ISOtech | \\2030 | \u2030 | -| `‹` | ‹ | `‹` | single left-pointing angle quotation mark | u+2039 ISO proposed | \\2039 | \u2039 | -| `›` | › | `›` | single right-pointing angle quotation mark | u+203A ISO proposed | \\203A | \u203a | -| `•` | • | `•` | bullet, aka. black small circle | u+2022 ISOpub | \\2022 | \u2219 | -| `…` | … | `…` | horizontal ellipsis, aka three dot leader | u+2026 ISOpub | \\2026 | \u2026 | -| `′` | ′ | `′` | prime, aka minutes, aka feet | u+2032 ISOtech | \\2032 | \u2032 | -| `″` | ″ | `″` | double prime, aka seconds, aka inches | u+2033 ISOtech | \\2033 | \u2033 | -| `‾` | ‾ | `‾` | overline, aka spacing overscore | u+203E NEW | \\203E | \u203e | -| `⁄` | ⁄ | `⁄` | fraction slash | u+2044 NEW | \\2044 | \u8260 | {.show-header} - - - ### HTML Letter-like Symbols +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| ----------- | ------ | --------- | -------------------------------------------------- | -------------- | --------- | --------------------------------------------------------- | +| `℘` | ℘ | `℘` | script capital P, aka power set, aka Weierstrass p | u+2118 ISOamso | \\2118 | \u2118 | +| `ℑ` | ℑ | `ℑ` | blackletter capital I, aka imaginary part | u+2111 ISOamso | \\2111 | \u2111 | +| `ℜ` | ℜ | `ℜ` | blackletter capital R, aka real part symbol | u+211C ISOamso | \\211C | \u211c | +| `™` | ™ | `™` | trade mark sign | u+2122 ISOnum | \\2122 | \u2122 | +| `ℵ` | ℵ | `ℵ` | alef symbol | u+2135 NEW | \\2135 | \u | - -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|-----------------|--------|---------------|------------------------------------------------------------|------------------|-----------|---------------------| -| `℘` | ℘ | `℘` | script capital P, aka power set, aka Weierstrass p | u+2118 ISOamso | \\2118 | \u2118 | -| `ℑ` | ℑ | `ℑ` | blackletter capital I, aka imaginary part | u+2111 ISOamso | \\2111 | \u2111 | -| `ℜ` | ℜ | `ℜ` | blackletter capital R, aka real part symbol | u+211C ISOamso | \\211C | \u211c | -| `™` | ™ | `™` | trade mark sign | u+2122 ISOnum | \\2122 | \u2122 | -| `ℵ` | ℵ | `ℵ` | alef symbol | u+2135 NEW | \\2135 | \u | {.show-header} - - - ### HTML Arrows +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| --------- | ------ | --------- | ---------------------------------------------------------- | -------------- | --------- | --------------------------------------------------------- | +| `←` | ← | `←` | leftwards arrow | u+2190 ISOnum | \\2190 | \u2190 | +| `↑` | ↑ | `↑` | upwards arrow | u+2191 ISOnum | \\2191 | \u2191 | +| `→` | → | `→` | rightwards arrow | u+2192 ISOnum | \\2192 | \u2192 | +| `↓` | ↓ | `↓` | downwards arrow | u+2193 ISOnum | \\2193 | \u2193 | +| `↔` | ↔ | `↔` | left right arrow | u+2194 ISOamsa | \\2194 | \u2194 | +| `↵` | ↵ | `↵` | downwards arrow with corner leftwards, aka carriage return | u+21B5 NEW | \\21B5 | \u21b5 | +| `⇐` | ⇐ | `⇐` | leftwards double arrow can be used for ‘is implied by’ | u+21D0 ISOtech | \\21D0 | \u21d0 | +| `⇑` | ⇑ | `⇑` | upwards double arrow | u+21D1 ISOamsa | \\21D1 | \u21d1 | +| `⇒` | ⇒ | `⇒` | rightwards double arrow | u+21D2 ISOtech | \\21D2 | \u21d2 | +| `⇓` | ⇓ | `⇓` | downwards double arrow | u+21D3 ISOamsa | \\21D3 | \ud1d3 | +| `⇔` | ⇔ | `⇔` | left right double arrow | u+21D4 ISOamsa | \\21D4 | \u21d4 | +| | ◄ | `◄` | black left pointing triangle | U+25C0 | \\25C0 | \u25c0 | +| | ► | `►` | black right pointing triangle | u+25B6 | \\25b6 | \u25b6 | +| | ▲ | `▲` | black up pointing triangle | u+25B2 | \\25b2 | \25b2 | +| | ▼ | `▼` | black down pointing triangle | u+25BC | \\25bc | \25bc | - -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|---------------|---------------|---------------------------------|-----------------------------------------------------------------|------------------|---------------------|---------------------| -| `←` | ← | `←` | leftwards arrow | u+2190 ISOnum | \\2190 | \u2190 | -| `↑` | ↑ | `↑` | upwards arrow | u+2191 ISOnum | \\2191 | \u2191 | -| `→` | → | `→` | rightwards arrow | u+2192 ISOnum | \\2192 | \u2192 | -| `↓` | ↓ | `↓` | downwards arrow | u+2193 ISOnum | \\2193 | \u2193 | -| `↔` | ↔ | `↔` | left right arrow | u+2194 ISOamsa | \\2194 | \u2194 | -| `↵` | ↵ | `↵` | downwards arrow with corner leftwards, aka carriage return | u+21B5 NEW | \\21B5 | \u21b5 | -| `⇐` | ⇐ | `⇐` | leftwards double arrow can be used for ‘is implied by’ | u+21D0 ISOtech | \\21D0 | \u21d0 | -| `⇑` | ⇑ | `⇑` | upwards double arrow | u+21D1 ISOamsa | \\21D1 | \u21d1 | -| `⇒` | ⇒ | `⇒` | rightwards double arrow | u+21D2 ISOtech | \\21D2 | \u21d2 | -| `⇓` | ⇓ | `⇓` | downwards double arrow | u+21D3 ISOamsa | \\21D3 | \ud1d3 | -| `⇔` | ⇔ | `⇔` | left right double arrow | u+21D4 ISOamsa | \\21D4 | \u21d4 | -| | ◄ | `◄` | black left pointing triangle | U+25C0 | \\25C0 | \u25c0 | -| | ► | `►` | black right pointing triangle | u+25B6 | \\25b6 | \u25b6 | -| | ▲ | `▲` | black up pointing triangle | u+25B2 | \\25b2 | \25b2 | -| | ▼ | `▼` | black down pointing triangle | u+25BC | \\25bc | \25bc | {.show-header} - - - ### HTML Mathematical Operators +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| ---------- | ------ | --------- | ------------------------------------- | -------------- | --------- | --------------------------------------------------------- | +| `∀` | ∀ | `∀` | for all | u+2200 ISOtech | \\2200 | \u2200 | +| `∂` | ∂ | `∂` | partial differential | u+2202 ISOtech | \\2202 | \u2202 | +| `∃` | ∃ | `∃` | there exists | u+2203 ISOtech | \\2203 | \u2203 | +| `∅` | ∅ | `∅` | empty set, aka null set, aka diameter | u+2205 ISOamso | \\2205 | \u2205 | +| `∇` | ∇ | `∇` | nabla, aka bakad difference | u+2207 ISOtech | \\2207 | \u2207 | +| `∈` | ∈ | `∈` | element of | u+2208 ISOtech | \\2208 | \u2208 | +| `∉` | ∉ | `∉` | not an element of | u+2209 ISOtech | \\2209 | \u2209 | +| `∋` | ∋ | `∋` | contains as member | u+220B ISOtech | \\220B | \u220b | +| `∏` | ∏ | `∏` | n-ary product, aka product sign | u+220F ISOamsb | \\220F | \u03a0 | +| `∑` | ∑ | `∑` | n-ary sumation | u+2211 ISOamsb | \\2211 | \u03a3 | +| `−` | − | `−` | minus sign | u+2212 ISOtech | \\2212 | \u2212 | +| `∗` | ∗ | `∗` | asterisk operator | u+2217 ISOtech | \\2217 | \u2217 | +| `√` | √ | `√` | square root, aka radical sign | u+221A ISOtech | \\221A | \u221a | +| `∝` | ∝ | `∝` | proportional to | u+221D ISOtech | \\221D | \u221d | +| `∞` | ∞ | `∞` | infinity | u+221E ISOtech | \\221E | \u221e | +| `∠` | ∠ | `∠` | angle | u+2220 ISOamso | \\2220 | \u2220 | +| `∧` | ⊥ | `⊥` | logical and, aka wedge | u+2227 ISOtech | \\2227 | \u2227 | +| `∨` | ⊦ | `⊦` | logical or, aka vee | u+2228 ISOtech | \\2228 | \u2228 | +| `∩` | ∩ | `∩` | intersection, aka cap | u+2229 ISOtech | \\2229 | \u2229 | +| `∪` | ∪ | `∪` | union, aka cup | u+222A ISOtech | \\222A | \u222a | +| `∫` | ∫ | `∫` | integral | u+222B ISOtech | \\222B | \u222b | +| `∴` | ∴ | `∴` | therefore | u+2234 ISOtech | \\2234 | \u2234 | +| `∼` | ∼ | `∼` | tilde | u+223C ISOtech | \\223C | \u223c | +| `≅` | ≅ | `≅` | approximately equal to | u+2245 ISOtech | \\2245 | \u2245 | +| `≈` | ≈ | `≈` | almost equal to, aka asymptotic to | u+2248 ISOamsr | \\2248 | \u2248 | +| `≠` | ≠ | `≠` | not equal to | u+2260 ISOtech | \\2260 | \u2260 | +| `≡` | ≡ | `≡` | identical to | u+2261 ISOtech | \\2261 | \u2261 | +| `≤` | ≤ | `≤` | less-than or equal to | u+2264 ISOtech | \\2264 | \u2264 | +| `≥` | ≥ | `≥` | greater-than or equal to | u+2265 ISOtech | \\2265 | \u2265 | +| `⊂` | ⊂ | `⊂` | subset of | u+2282 ISOtech | \\2282 | \u2282 | +| `⊃` | ⊃ | `⊃` | superset of | u+2283 ISOtech | \\2283 | \u2283 | +| `⊄` | ⊄ | `⊄` | not a subset of | u+2284 ISOamsn | \\2284 | \u2284 | +| `⊆` | ⊆ | `⊆` | subset of or equal to | u+2286 ISOtech | \\2286 | \u2286 | +| `⊇` | ⊇ | `⊇` | superset of or equal to | u+2287 ISOtech | \\2287 | \u2287 | +| `⊕` | ⊕ | `⊕` | circled plus, aka direct sum | u+2295 ISOamsb | \\2295 | \u2295 | +| `⊗` | ⊗ | `⊗` | circled times, aka vector product | u+2297 ISOamsb | \\2297 | \u2297 | +| `⊥` | ⊥ | `⊥` | up tack | u+22A5 ISOtech | \\22A5 | \u22a5 | +| `⋅` | ⋅ | `⋅` | dot operator | u+22C5 ISOamsb | \\22C5 | \u22c5 | - -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|----------------|--------|---------------|-----------------------------------------------|------------------|-----------|---------------------| -| `∀` | ∀ | `∀` | for all | u+2200 ISOtech | \\2200 | \u2200 | -| `∂` | ∂ | `∂` | partial differential | u+2202 ISOtech | \\2202 | \u2202 | -| `∃` | ∃ | `∃` | there exists | u+2203 ISOtech | \\2203 | \u2203 | -| `∅` | ∅ | `∅` | empty set, aka null set, aka diameter | u+2205 ISOamso | \\2205 | \u2205 | -| `∇` | ∇ | `∇` | nabla, aka bakad difference | u+2207 ISOtech | \\2207 | \u2207 | -| `∈` | ∈ | `∈` | element of | u+2208 ISOtech | \\2208 | \u2208 | -| `∉` | ∉ | `∉` | not an element of | u+2209 ISOtech | \\2209 | \u2209 | -| `∋` | ∋ | `∋` | contains as member | u+220B ISOtech | \\220B | \u220b | -| `∏` | ∏ | `∏` | n-ary product, aka product sign | u+220F ISOamsb | \\220F | \u03a0 | -| `∑` | ∑ | `∑` | n-ary sumation | u+2211 ISOamsb | \\2211 | \u03a3 | -| `−` | − | `−` | minus sign | u+2212 ISOtech | \\2212 | \u2212 | -| `∗` | ∗ | `∗` | asterisk operator | u+2217 ISOtech | \\2217 | \u2217 | -| `√` | √ | `√` | square root, aka radical sign | u+221A ISOtech | \\221A | \u221a | -| `∝` | ∝ | `∝` | proportional to | u+221D ISOtech | \\221D | \u221d | -| `∞` | ∞ | `∞` | infinity | u+221E ISOtech | \\221E | \u221e | -| `∠` | ∠ | `∠` | angle | u+2220 ISOamso | \\2220 | \u2220 | -| `∧` | ⊥ | `⊥` | logical and, aka wedge | u+2227 ISOtech | \\2227 | \u2227 | -| `∨` | ⊦ | `⊦` | logical or, aka vee | u+2228 ISOtech | \\2228 | \u2228 | -| `∩` | ∩ | `∩` | intersection, aka cap | u+2229 ISOtech | \\2229 | \u2229 | -| `∪` | ∪ | `∪` | union, aka cup | u+222A ISOtech | \\222A | \u222a | -| `∫` | ∫ | `∫` | integral | u+222B ISOtech | \\222B | \u222b | -| `∴` | ∴ | `∴` | therefore | u+2234 ISOtech | \\2234 | \u2234 | -| `∼` | ∼ | `∼` | tilde | u+223C ISOtech | \\223C | \u223c | -| `≅` | ≅ | `≅` | approximately equal to | u+2245 ISOtech | \\2245 | \u2245 | -| `≈` | ≈ | `≈` | almost equal to, aka asymptotic to | u+2248 ISOamsr | \\2248 | \u2248 | -| `≠` | ≠ | `≠` | not equal to | u+2260 ISOtech | \\2260 | \u2260 | -| `≡` | ≡ | `≡` | identical to | u+2261 ISOtech | \\2261 | \u2261 | -| `≤` | ≤ | `≤` | less-than or equal to | u+2264 ISOtech | \\2264 | \u2264 | -| `≥` | ≥ | `≥` | greater-than or equal to | u+2265 ISOtech | \\2265 | \u2265 | -| `⊂` | ⊂ | `⊂` | subset of | u+2282 ISOtech | \\2282 | \u2282 | -| `⊃` | ⊃ | `⊃` | superset of | u+2283 ISOtech | \\2283 | \u2283 | -| `⊄` | ⊄ | `⊄` | not a subset of | u+2284 ISOamsn | \\2284 | \u2284 | -| `⊆` | ⊆ | `⊆` | subset of or equal to | u+2286 ISOtech | \\2286 | \u2286 | -| `⊇` | ⊇ | `⊇` | superset of or equal to | u+2287 ISOtech | \\2287 | \u2287 | -| `⊕` | ⊕ | `⊕` | circled plus, aka direct sum | u+2295 ISOamsb | \\2295 | \u2295 | -| `⊗` | ⊗ | `⊗` | circled times, aka vector product | u+2297 ISOamsb | \\2297 | \u2297 | -| `⊥` | ⊥ | `⊥` | up tack | u+22A5 ISOtech | \\22A5 | \u22a5 | -| `⋅` | ⋅ | `⋅` | dot operator | u+22C5 ISOamsb | \\22C5 | \u22c5 | {.show-header} - - - ### HTML Technical +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| ---------- | ------ | --------- | ----------------------------- | -------------- | --------- | --------------------------------------------------------- | +| `⌈` | ⌈ | `⌈` | left ceiling, aka apl upstile | u+2308 ISOamsc | \\2308 | \u2308 | +| `⌉` | ⌉ | `⌉` | right ceiling | u+2309 ISOamsc | \\2309 | \u2309 | +| `⌊` | ⌊ | `⌊` | left floor, aka apl downstile | u+230A ISOamsc | \\230A | \u230a | +| `⌋` | ⌋ | `⌋` | right floor | u+230B ISOamsc | \\230B | \u230b | +| `⟨` | 〈 | `〈` | left-pointing angle bracket | u+2329 ISOtech | \\2329 | \u2329 | +| `⟩` | 〉 | `〉` | right-pointing angle bracket | u+232A ISOtech | \\232A | \u232a | - -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|----------------|--------|---------------|------------------------------------|------------------|-----------|---------------------| -| `⌈` | ⌈ | `⌈` | left ceiling, aka apl upstile | u+2308 ISOamsc | \\2308 | \u2308 | -| `⌉` | ⌉ | `⌉` | right ceiling | u+2309 ISOamsc | \\2309 | \u2309 | -| `⌊` | ⌊ | `⌊` | left floor, aka apl downstile | u+230A ISOamsc | \\230A | \u230a | -| `⌋` | ⌋ | `⌋` | right floor | u+230B ISOamsc | \\230B | \u230b | -| `⟨` | 〈 | `〈` | left-pointing angle bracket | u+2329 ISOtech | \\2329 | \u2329 | -| `⟩` | 〉 | `〉` | right-pointing angle bracket | u+232A ISOtech | \\232A | \u232a | {.show-header} - - - ### HTML Miscellaneous +| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | +| ---------- | ------ | --------- | ------------------------------- | ------------- | --------- | --------------------------------------------------------- | +| `◊` | ◊ | `◊` | lozenge | u+25CA ISOpub | \\25CA | \u25ca | +| `♠` | ♠ | `♠` | black spade suit | u+2660 ISOpub | \\2660 | \u2660 | +| `♣` | ♣ | `♣` | black club suit, aka shamrock | u+2663 ISOpub | \\2663 | \u2663 | +| `♥` | ♥ | `♥` | black heart suit, aka valentine | u+2665 ISOpub | \\2665 | \u2665 | +| `♦` | ♦ | `♦` | black diamond suit | u+2666 ISOpub | \\2666 | \u2666 | -| HTML | Symbol | Numeric | Description | Hex | CSS (ISO) | JS (Octal) | -|----------------|--------|---------------|--------------------------------------|-----------------|-----------|---------------------| -| `◊` | ◊ | `◊` | lozenge | u+25CA ISOpub | \\25CA | \u25ca | -| `♠` | ♠ | `♠` | black spade suit | u+2660 ISOpub | \\2660 | \u2660 | -| `♣` | ♣ | `♣` | black club suit, aka shamrock | u+2663 ISOpub | \\2663 | \u2663 | -| `♥` | ♥ | `♥` | black heart suit, aka valentine | u+2665 ISOpub | \\2665 | \u2665 | -| `♦` | ♦ | `♦` | black diamond suit | u+2666 ISOpub | \\2666 | \u2666 | {.show-header} - - - - - - - diff --git a/source/_posts/jira.md b/source/_posts/jira.md index 88db236..d130f72 100644 --- a/source/_posts/jira.md +++ b/source/_posts/jira.md @@ -2,90 +2,84 @@ title: Jira date: 2022-11-23 16:23:31.697708 background: bg-[#417eef] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 44 keyboard shortcuts found in Jira + A visual cheat-sheet for the 44 keyboard shortcuts found in Jira --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Global Shortcuts -Shortcut | Action ----|--- -`G` `D` | Go to Dashboard -`G` `P` | Browse to a Project -`G` `A` | Go to Agile -`G` `I` | Go to Issue Navigator -`G` `G` | Administration Search Dialog Box -`/` | Quick Search -`C` | Create an Issue -`?` | Open shortcut help -`Ctrl` `Alt` `D` | Dashboards drop-down menu -`Ctrl` `Alt` `P` | Projects drop-down menu -`Ctrl` `Alt` `I` | Issues drop-down menu -`Ctrl` `Alt` `G` | Agile drop-down menu -`Ctrl` `Alt` `S` | Form Submit -`Ctrl` `Alt` \` | Cancel Form -{.shortcuts} +| Shortcut | Action | +| ---------------------------- | -------------------------------- | +| `G` `D` | Go to Dashboard | +| `G` `P` | Browse to a Project | +| `G` `A` | Go to Agile | +| `G` `I` | Go to Issue Navigator | +| `G` `G` | Administration Search Dialog Box | +| `/` | Quick Search | +| `C` | Create an Issue | +| `?` | Open shortcut help | +| `Ctrl` `Alt` `D` | Dashboards drop-down menu | +| `Ctrl` `Alt` `P` | Projects drop-down menu | +| `Ctrl` `Alt` `I` | Issues drop-down menu | +| `Ctrl` `Alt` `G` | Agile drop-down menu | +| `Ctrl` `Alt` `S` | Form Submit | +| `Ctrl` `Alt` \` | Cancel Form | +{.shortcuts} ### Agile Shortcuts -Shortcut | Action ----|--- -`J` | Next Issue -`K` | Previous Issue -`N` | Next Column -`P` | Previous Column -`-` | Expand/Collapse All Swimlanes -`T` | Hide/Show Detail View -`O` | View Issue -`Enter` | Add a New Line -`Enter` | Submit changes -`Esc` | Cancel changes -`I` | Assign to Me -`S` `T` | Send to Top -`S` `B` | Send to Bottom -`E` | Edit Issue -`Z` | Projector Mode -{.shortcuts} +| Shortcut | Action | +| -------- | ----------------------------- | +| `J` | Next Issue | +| `K` | Previous Issue | +| `N` | Next Column | +| `P` | Previous Column | +| `-` | Expand/Collapse All Swimlanes | +| `T` | Hide/Show Detail View | +| `O` | View Issue | +| `Enter` | Add a New Line | +| `Enter` | Submit changes | +| `Esc` | Cancel changes | +| `I` | Assign to Me | +| `S` `T` | Send to Top | +| `S` `B` | Send to Bottom | +| `E` | Edit Issue | +| `Z` | Projector Mode | +{.shortcuts} ### Issue Actions and Navigator Shortcuts -Shortcut | Action ----|--- -`O` | View selected issue -`J` | Next Issue -`K` | Previous Issue -`U` | Back to the Navigator -`[` | Hide/Show Left Section -`N` | Next Activity -`P` | Previous Activity -`F` | Focus search field -`Esc` | Escape field -`E` | Edit Issue -`A` | Assign Issue -`M` | Comment on Issue -`L` | Edit Issue Labels -`S` | Share Issue -`.` | Operations dialog box +| Shortcut | Action | +| -------- | ---------------------- | +| `O` | View selected issue | +| `J` | Next Issue | +| `K` | Previous Issue | +| `U` | Back to the Navigator | +| `[` | Hide/Show Left Section | +| `N` | Next Activity | +| `P` | Previous Activity | +| `F` | Focus search field | +| `Esc` | Escape field | +| `E` | Edit Issue | +| `A` | Assign Issue | +| `M` | Comment on Issue | +| `L` | Edit Issue Labels | +| `S` | Share Issue | +| `.` | Operations dialog box | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Atlassian's Jira](https://confluence.atlassian.com/agile066/jira-agile-user-s-guide/using-keyboard-shortcuts) _(confluence.atlassian.com)_ +- [Keyboard shortcuts for Atlassian's Jira](https://confluence.atlassian.com/agile066/jira-agile-user-s-guide/using-keyboard-shortcuts) + _(confluence.atlassian.com)_ diff --git a/source/_posts/lsof.md b/source/_posts/lsof.md index c7c4d6c..8e99c9b 100644 --- a/source/_posts/lsof.md +++ b/source/_posts/lsof.md @@ -3,21 +3,21 @@ title: Lsof date: 2021-02-05 16:12:47 background: bg-blue-400 tags: - - port - - processes - - utility + - port + - processes + - utility categories: - - Linux Command + - Linux Command intro: | - This quick reference cheat sheet provides various for using lsof command. + This quick reference cheat sheet provides various for using lsof command. plugins: - - copyCode + - copyCode --- -Getting Started --------------- +## Getting Started ### Introduction + **lsof** meaning `L`i`S`t `O`pen `F`iles is used to find out which files are open by which process ```shell script @@ -36,9 +36,8 @@ $ lsof -i UDP $ lsof -i @192.168.1.5 ``` - - ### Process-specific + ```shell script $ lsof -c mysql $ lsof -c java @@ -47,7 +46,6 @@ $ lsof -c nginx $ lsof -c ssh -c httpd ``` - ### User-specific ```shell script @@ -56,38 +54,36 @@ $ lsof -u www-data -u ubuntu $ lsof -i -u ^root # Except certain user ``` - ### Network-specific + ```shell script $ lsof -i 4 # IPv4 only $ lsof -i 6 # IPv6 only ``` ### PID-specific + ```shell script $ lsof -p 1753 $ lsof -p ^3 # Except certain pids ``` ### Filename-specific + ```shell script $ lsof /var/log/messages $ lsof /etc/passwd ``` - ### Directory-specific + ```shell script $ lsof +D /var/log # Within a directory ``` - ### Kill + ```shell script $ kill -9 `lsof -t -u apache` $ kill -9 $(lsof -t -i :8080) ``` - - - - diff --git a/source/_posts/microsoft-teams.md b/source/_posts/microsoft-teams.md index b9d74f0..5f8a8ac 100644 --- a/source/_posts/microsoft-teams.md +++ b/source/_posts/microsoft-teams.md @@ -2,91 +2,85 @@ title: Microsoft Teams date: 2022-11-23 16:23:31.706764 background: bg-[#4aa4ea] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 38 keyboard shortcuts found in Microsoft Teams + A visual cheat-sheet for the 38 keyboard shortcuts found in Microsoft Teams --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General -Shortcut | Action ----|--- -`Ctrl` `.` | Show keyboard shortcuts -`Ctrl` `E` | Go to search -`Ctrl` `/` | Show commands -`Ctrl` `G` | Goto -`Ctrl` `N` | Start new chat -`Ctrl` `,` | Open settings -`F1` | Open help -`Esc` | Close -`Ctrl` `=` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Return to default zoom -{.shortcuts} +| Shortcut | Action | +| ---------- | ----------------------- | +| `Ctrl` `.` | Show keyboard shortcuts | +| `Ctrl` `E` | Go to search | +| `Ctrl` `/` | Show commands | +| `Ctrl` `G` | Goto | +| `Ctrl` `N` | Start new chat | +| `Ctrl` `,` | Open settings | +| `F1` | Open help | +| `Esc` | Close | +| `Ctrl` `=` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Return to default zoom | +{.shortcuts} ### Navigation -Shortcut | Action ----|--- -`Ctrl` `1` | Open activity -`Ctrl` `2` | Open chat -`Ctrl` `3` | Open teams -`Ctrl` `4` | Open calendar -`Ctrl` `5` | Open calls -`Ctrl` `6` | Open files -`Alt` `Up` | Go to previous list item -`Alt` `Down` | Go to next list item -`Ctrl` `Shift` `Up` | Move selected team up -`Ctrl` `Shift` `Down` | Move selected team down -`Ctrl` `Shift` `F6` | Go to the previous section -`Ctrl` `F6` | Go to the next section -{.shortcuts} +| Shortcut | Action | +| --------------------- | -------------------------- | +| `Ctrl` `1` | Open activity | +| `Ctrl` `2` | Open chat | +| `Ctrl` `3` | Open teams | +| `Ctrl` `4` | Open calendar | +| `Ctrl` `5` | Open calls | +| `Ctrl` `6` | Open files | +| `Alt` `Up` | Go to previous list item | +| `Alt` `Down` | Go to next list item | +| `Ctrl` `Shift` `Up` | Move selected team up | +| `Ctrl` `Shift` `Down` | Move selected team down | +| `Ctrl` `Shift` `F6` | Go to the previous section | +| `Ctrl` `F6` | Go to the next section | +{.shortcuts} ### Messaging -Shortcut | Action ----|--- -`Alt` `Shift` `C` | Go to compose box -`Ctrl` `Shift` `X` | Expand compose box -`Ctrl` `Enter` | Send, in the expanded compose box -`Ctrl` `O` | Attach a file -`Shift` `Enter` | Start a new line -`Alt` `Shift` `R` | Reply to thread -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------------------------- | +| `Alt` `Shift` `C` | Go to compose box | +| `Ctrl` `Shift` `X` | Expand compose box | +| `Ctrl` `Enter` | Send, in the expanded compose box | +| `Ctrl` `O` | Attach a file | +| `Shift` `Enter` | Start a new line | +| `Alt` `Shift` `R` | Reply to thread | +{.shortcuts} ### Meetings and Calls -Shortcut | Action ----|--- -`Ctrl` `Shift` `A` | Accept video call -`Ctrl` `Shift` `S` | Accept audio call -`Ctrl` `Shift` `D` | Decline call -`Ctrl` `Shift` `C` | Start audio call -`Ctrl` `Shift` `U` | Start video call -`Ctrl` `Shift` `M` | Toggle mute -`Ctrl` `Shift` `O` | Toggle video -`Ctrl` `Shift` `F` | Toggle fullscreen -`Ctrl` `Shift` `Space` | Go to sharing toolbar +| Shortcut | Action | +| ---------------------- | --------------------- | +| `Ctrl` `Shift` `A` | Accept video call | +| `Ctrl` `Shift` `S` | Accept audio call | +| `Ctrl` `Shift` `D` | Decline call | +| `Ctrl` `Shift` `C` | Start audio call | +| `Ctrl` `Shift` `U` | Start video call | +| `Ctrl` `Shift` `M` | Toggle mute | +| `Ctrl` `Shift` `O` | Toggle video | +| `Ctrl` `Shift` `F` | Toggle fullscreen | +| `Ctrl` `Shift` `Space` | Go to sharing toolbar | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Microsoft Teams](https://support.microsoft.com/en-us/office/keyboard-shortcuts-for-microsoft-teams-2e8e2a70-e8d8-4a19-949b-4c36dd5292d2) _(support.microsoft.com)_ +- [Keyboard shortcuts for Microsoft Teams](https://support.microsoft.com/en-us/office/keyboard-shortcuts-for-microsoft-teams-2e8e2a70-e8d8-4a19-949b-4c36dd5292d2) + _(support.microsoft.com)_ diff --git a/source/_posts/missive.md b/source/_posts/missive.md index a9da18f..0f5b2af 100644 --- a/source/_posts/missive.md +++ b/source/_posts/missive.md @@ -2,165 +2,157 @@ title: Missive date: 2022-11-23 16:23:31.695283 background: bg-[#3665e5] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 83 keyboard shortcuts found in Missive + A visual cheat-sheet for the 83 keyboard shortcuts found in Missive --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Navigation -Shortcut | Action ----|--- -`Down` | Next item -`Up` | Previous item -`Alt` `Up` | First item -`Alt` `Down` | Last item -`Right` | Open item -`Left` | Collapse item -`Tab` | Next scope -`Shift` `Tab` | Previous scope -`PgUp` | Scroll up -`PgDn` | Scroll down -{.shortcuts} +| Shortcut | Action | +| ------------- | -------------- | +| `Down` | Next item | +| `Up` | Previous item | +| `Alt` `Up` | First item | +| `Alt` `Down` | Last item | +| `Right` | Open item | +| `Left` | Collapse item | +| `Tab` | Next scope | +| `Shift` `Tab` | Previous scope | +| `PgUp` | Scroll up | +| `PgDn` | Scroll down | +{.shortcuts} ### Selection -Shortcut | Action ----|--- -`Shift` `Up` | Select next conversation -`Shift` `Down` | Select previous conversation -`Alt` `Shift` `Up` | Select until first conversation -`Alt` `Shift` `Down` | Select until last conversation -`Ctrl` `A` | Select all conversations -{.shortcuts} +| Shortcut | Action | +| -------------------- | ------------------------------- | +| `Shift` `Up` | Select next conversation | +| `Shift` `Down` | Select previous conversation | +| `Alt` `Shift` `Up` | Select until first conversation | +| `Alt` `Shift` `Down` | Select until last conversation | +| `Ctrl` `A` | Select all conversations | +{.shortcuts} ### Application -Shortcut | Action ----|--- -`Ctrl` `N` | Compose new email -`Ctrl` `Shift` `N` | Create new conversation -`Ctrl` `F` | Search -`Ctrl` `Shift` `C` | Focus comment box -`Ctrl` `Shift` `X` | Focus task box -`Space` | Preview item -`Ctrl` `Up` | Edit previous comment -`Ctrl` `Shift` `Y` | Set a status -`Ctrl` `.` | Open conversation contextual menu -`Ctrl` `G` | Open more menu -`Ctrl` `L` | Open location -`Ctrl` `,` | Open preferences -`Ctrl` `Shift` `,` | Open contacts -`Ctrl` `Alt` `S` | Toggle right sidebar -`Ctrl` `Alt` `N` | Main right sidebar action -`Ctrl` `Alt` `R` | Reload -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------------------------- | +| `Ctrl` `N` | Compose new email | +| `Ctrl` `Shift` `N` | Create new conversation | +| `Ctrl` `F` | Search | +| `Ctrl` `Shift` `C` | Focus comment box | +| `Ctrl` `Shift` `X` | Focus task box | +| `Space` | Preview item | +| `Ctrl` `Up` | Edit previous comment | +| `Ctrl` `Shift` `Y` | Set a status | +| `Ctrl` `.` | Open conversation contextual menu | +| `Ctrl` `G` | Open more menu | +| `Ctrl` `L` | Open location | +| `Ctrl` `,` | Open preferences | +| `Ctrl` `Shift` `,` | Open contacts | +| `Ctrl` `Alt` `S` | Toggle right sidebar | +| `Ctrl` `Alt` `N` | Main right sidebar action | +| `Ctrl` `Alt` `R` | Reload | +{.shortcuts} ### Actions {.row-span-2} -Shortcut | Action ----|--- -`Back` | Archive or remove label -`Alt` `Back` | Close -`Cmd` `Back` | Trash -`Ctrl` `Shift` `L` | Label as... -`Ctrl` `Alt` `L` | Move to... -`Ctrl` `Shift` `K` | Assign -`Ctrl` `Shift` `J` | Snooze -`Ctrl` `Shift` `S` | Toggle star -`Ctrl` `Shift` `M` | Toggle watch -`Ctrl` `R` | Reply all -`Ctrl` `Shift` `R` | Reply -`Ctrl` `Shift` `F` | Forward -`Ctrl` `Shift` `D` | Open or focus draft -`Ctrl` `P` | Print -`Ctrl` `O` | Open in new window -`Ctrl` `Z` | Undo last action -`Ctrl` `Shift` `Z` | Redo last action -`Ctrl` `Shift` `I` | Mark as read -`Ctrl` `Shift` `U` | Mark as unread -`Ctrl` `Shift` `=` | Mark as important -`Ctrl` `-` | Mark as not important -`Ctrl` `Shift` `Right` | Expand entire conversation -`Ctrl` `Shift` `Left` | Collapse entire conversation -`Ctrl` `Shift` `'` | Toggle message quote -`Ctrl` `Shift` `P` | Pin to sidebar -`Ctrl` `Shift` `G` | Merge... -{.shortcuts} +| Shortcut | Action | +| ---------------------- | ---------------------------- | +| `Back` | Archive or remove label | +| `Alt` `Back` | Close | +| `Cmd` `Back` | Trash | +| `Ctrl` `Shift` `L` | Label as... | +| `Ctrl` `Alt` `L` | Move to... | +| `Ctrl` `Shift` `K` | Assign | +| `Ctrl` `Shift` `J` | Snooze | +| `Ctrl` `Shift` `S` | Toggle star | +| `Ctrl` `Shift` `M` | Toggle watch | +| `Ctrl` `R` | Reply all | +| `Ctrl` `Shift` `R` | Reply | +| `Ctrl` `Shift` `F` | Forward | +| `Ctrl` `Shift` `D` | Open or focus draft | +| `Ctrl` `P` | Print | +| `Ctrl` `O` | Open in new window | +| `Ctrl` `Z` | Undo last action | +| `Ctrl` `Shift` `Z` | Redo last action | +| `Ctrl` `Shift` `I` | Mark as read | +| `Ctrl` `Shift` `U` | Mark as unread | +| `Ctrl` `Shift` `=` | Mark as important | +| `Ctrl` `-` | Mark as not important | +| `Ctrl` `Shift` `Right` | Expand entire conversation | +| `Ctrl` `Shift` `Left` | Collapse entire conversation | +| `Ctrl` `Shift` `'` | Toggle message quote | +| `Ctrl` `Shift` `P` | Pin to sidebar | +| `Ctrl` `Shift` `G` | Merge... | +{.shortcuts} ### Composer -Shortcut | Action ----|--- -`Ctrl` `Enter` | Send -`Ctrl` `Shift` `Enter` | Send and archive -`Ctrl` `D` | Discard draft -`Ctrl` `Shift` `C` | Add CC recipients -`Ctrl` `Shift` `B` | Add BCC recipients -`Ctrl` `K` | Insert a link -`Ctrl` `Shift` `O` | Open responses -{.shortcuts} +| Shortcut | Action | +| ---------------------- | ------------------ | +| `Ctrl` `Enter` | Send | +| `Ctrl` `Shift` `Enter` | Send and archive | +| `Ctrl` `D` | Discard draft | +| `Ctrl` `Shift` `C` | Add CC recipients | +| `Ctrl` `Shift` `B` | Add BCC recipients | +| `Ctrl` `K` | Insert a link | +| `Ctrl` `Shift` `O` | Open responses | +{.shortcuts} ### Formatting -Shortcut | Action ----|--- -`Ctrl` `Shift` `-` | Decrease text size -`Ctrl` `Shift` `=` | Increase text size -`Ctrl` `B` | Bold -`Ctrl` `I` | Italic -`Ctrl` `U` | Underline -`Ctrl` `Shift` `7` | Numbered list -`Ctrl` `Shift` `8` | Bulleted list -`Ctrl` `[` | Decrease indent -`Ctrl` `]` | Increase indent -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------ | +| `Ctrl` `Shift` `-` | Decrease text size | +| `Ctrl` `Shift` `=` | Increase text size | +| `Ctrl` `B` | Bold | +| `Ctrl` `I` | Italic | +| `Ctrl` `U` | Underline | +| `Ctrl` `Shift` `7` | Numbered list | +| `Ctrl` `Shift` `8` | Bulleted list | +| `Ctrl` `[` | Decrease indent | +| `Ctrl` `]` | Increase indent | +{.shortcuts} ### Calendar -Shortcut | Action ----|--- -`Ctrl` `N` | Create event -`Ctrl` `R` | Refresh -`Enter` | View day -`T` | Today -`Ctrl` `L` | Go to date -`D` | Day view -`W` | Week view -`M` | Month view -`A` | Agenda view +| Shortcut | Action | +| ---------- | ------------ | +| `Ctrl` `N` | Create event | +| `Ctrl` `R` | Refresh | +| `Enter` | View day | +| `T` | Today | +| `Ctrl` `L` | Go to date | +| `D` | Day view | +| `W` | Week view | +| `M` | Month view | +| `A` | Agenda view | + {.shortcuts} - - ### Jumping -Shortcut | Action ----|--- -`Ctrl` `1-9` | Go to Mailbox 1-9 +| Shortcut | Action | +| ------------ | ----------------- | +| `Ctrl` `1-9` | Go to Mailbox 1-9 | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Missive Team Inbox](https://missiveapp.com/help/keyboard-shortcuts) _(missiveapp.com)_ diff --git a/source/_posts/monday.md b/source/_posts/monday.md index e204add..178ba2e 100644 --- a/source/_posts/monday.md +++ b/source/_posts/monday.md @@ -2,72 +2,64 @@ title: Monday.com date: 2022-11-23 16:23:31.694181 background: bg-[#f7ce46] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 24 keyboard shortcuts found on Monday.com + A visual cheat-sheet for the 24 keyboard shortcuts found on Monday.com --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### System -Shortcut | Action ----|--- -`Ctrl` `B` | Bolt Switch (quick switch between boards) -`Esc` | Close Item Page -`Esc` | Close Dialogs -`Esc` | Close Search -{.shortcuts} +| Shortcut | Action | +| ---------- | ----------------------------------------- | +| `Ctrl` `B` | Bolt Switch (quick switch between boards) | +| `Esc` | Close Item Page | +| `Esc` | Close Dialogs | +| `Esc` | Close Search | +{.shortcuts} ### Board I -Shortcut | Action ----|--- -`Down` | Navigate Down -`Up` | Navigate Up -`Left` | Navigate Left -`Right` | Navigate Right -`Tab` | Navigate to Next Cell -`Shift` `Tab` | Navigate to Previous Tab -`Enter` | Edit Cell Content -`Backspace` | Clear Cell Content -`Space` | Open Column View +| Shortcut | Action | +| ------------- | ------------------------ | +| `Down` | Navigate Down | +| `Up` | Navigate Up | +| `Left` | Navigate Left | +| `Right` | Navigate Right | +| `Tab` | Navigate to Next Cell | +| `Shift` `Tab` | Navigate to Previous Tab | +| `Enter` | Edit Cell Content | +| `Backspace` | Clear Cell Content | +| `Space` | Open Column View | + {.shortcuts} - - ### Board II -Shortcut | Action ----|--- -`Ctrl` `F` | Search Board -`Ctrl` `C` | Copy Cell Content -`Ctrl` `V` | Paste Cell Content -`Ctrl` `X` | Cut Cell Content -`Ctrl` `Enter` | Select Item -`Shift` `Enter` | Select Range of Items -`Ctrl` `Shift` `G` | Create New Group -`Ctrl` `Shift` `C` | Create New Column -`Ctrl` `L` | Open Activity Log -`Ctrl` `(click)` | Sort Another Column -`Ctrl` `G` | Collapse/Expand All Groups +| Shortcut | Action | +| ------------------ | -------------------------- | +| `Ctrl` `F` | Search Board | +| `Ctrl` `C` | Copy Cell Content | +| `Ctrl` `V` | Paste Cell Content | +| `Ctrl` `X` | Cut Cell Content | +| `Ctrl` `Enter` | Select Item | +| `Shift` `Enter` | Select Range of Items | +| `Ctrl` `Shift` `G` | Create New Group | +| `Ctrl` `Shift` `C` | Create New Column | +| `Ctrl` `L` | Open Activity Log | +| `Ctrl` `(click)` | Sort Another Column | +| `Ctrl` `G` | Collapse/Expand All Groups | + {.shortcuts} +## Also see - - - -Also see --------- -- [Keyboard shortcuts for Monday.com](https://support.monday.com/hc/en-us/articles/115005339905-The-Spreadsheet-capabilities-shortcuts-) _(support.monday.com)_ +- [Keyboard shortcuts for Monday.com](https://support.monday.com/hc/en-us/articles/115005339905-The-Spreadsheet-capabilities-shortcuts-) + _(support.monday.com)_ diff --git a/source/_posts/nc.md b/source/_posts/nc.md index fcabc8e..3b226c2 100644 --- a/source/_posts/nc.md +++ b/source/_posts/nc.md @@ -2,21 +2,20 @@ title: Netcat date: 2020-11-25 18:28:43 background: bg-blue-600 -tags: - - ncat - - nc - - utility - - network - - traffic +tags: + - ncat + - nc + - utility + - network + - traffic categories: - - Linux Command -intro: This cheat sheet provides various for using Netcat on both Linux and Unix. + - Linux Command +intro: This cheat sheet provides various for using Netcat on both Linux and Unix. plugins: - - copyCode + - copyCode --- -Getting Started {.cols-5} ---------------- +## Getting Started {.cols-5} ### Usage {.col-span-2} @@ -27,16 +26,15 @@ $ nc [options] [host] [port] ``` Listen for incoming connections -```shell script + +```shell script $ nc -lp port [host] [port] ``` - - ### Option examples {.col-span-3 .row-span-2} | Option | Description | Example | -|--------|----------------------------|------------------------------------------| +| ------ | -------------------------- | ---------------------------------------- | | `-h` | nc -h | Help | | `-z` | nc -z 192.168.1.9 1-100 | Port scan for a host or IP address | | `-v` | nc -zv 192.168.1.9 1-100 | Provide verbose output | @@ -49,30 +47,32 @@ $ nc -lp port [host] [port] | `-4` | nc -4 -l 8000 | IPv4 only | | `-6` | nc -6 -l 8000 | IPv6 only | - ### Chat client-server {.col-span-2} + Server (192.168.1.9) + ```shell script $ nc -lv 8000 ``` Client + ```shell script $ nc 192.168.1.9 8000 ``` - - -Netcat Examples --------- +## Netcat Examples ### Banner grabbing + ```shell script $ nc website.com 80 GET index.html HTTP/1.1 HEAD / HTTP/1.1 ``` + or + ```shell script echo "" | nc -zv -wl 192.168.1.1 801-805 ``` @@ -80,150 +80,156 @@ echo "" | nc -zv -wl 192.168.1.1 801-805 ### Port scanning Scan ports between 21 to 25 + ```shell script $ nc -zvn 192.168.1.1 21-25 ``` Scan ports 22, 3306 and 8080 + ```shell script $ nc -zvn 192.168.1.1 22 3306 8080 ``` - ### Proxy and port forwarding + ```shell script $ nc -lp 8001 -c "nc 127.0.0.1 8000" ``` + or + ```shell script $ nc -l 8001 | nc 127.0.0.1 8000 ``` + Create a tunnel from one local port to another - - ### Download file Server (192.168.1.9) + ```shell script $ nc -lv 8000 < file.txt ``` Client + ```shell script $ nc -nv 192.168.1.9 8000 > file.txt ``` Suppose you want to transfer a file “file.txt” from server A to client B. - ### Upload file Server (192.168.1.9) + ```shell script $ nc -lv 8000 > file.txt ``` Client + ```shell script $ nc 192.168.1.9 8000 < file.txt ``` Suppose you want to transfer a file “file.txt” from client B to server A: - ### Directory transfer Server (192.168.1.9) + ```shell script $ tar -cvf – dir_name | nc -l 8000 ``` Client + ```shell script $ nc -n 192.168.1.9 8000 | tar -xvf - ``` Suppose you want to transfer a directory over the network from A to B. - ### Encrypt transfer {.col-span-2} - Server (192.168.1.9) + ```shell script $ openssl enc -des3 -in file.txt -pass pass:password | nc -l 8000 ``` Client + ```shell script $ nc 192.168.1.9 8000 | openssl enc -des3 -d -pass pass:password -out file.txt ``` Encrypt data before transfering over the network - - ### Clones Server (192.168.1.9) + ```shell script $ dd if=/dev/sda | nc -l 8000 ``` Client + ```shell script $ nc -n 192.168.1.9 8000 | dd of=/dev/sda ``` Cloning a linux PC is very simple. Suppose your system disk is /dev/sda - - ### Video streaming Server (192.168.1.9) + ```shell script $ cat video.avi | nc -l 8000 ``` Client + ```shell script {.wrap} $ nc 192.168.1.9 8000 | mplayer -vo x11 -cache 3000 - ``` Streaming video with netcat - - - ### Remote shell Server (192.168.1.9) + ```shell script $ nc -lv 8000 -e /bin/bash ``` Client + ```shell script $ nc 192.168.1.9 8000 ``` -We have used remote Shell using the telnet and ssh but what if they are not installed and we do not have the permission to install them, then we can create remote shell using netcat also. - - +We have used remote Shell using the telnet and ssh but what if they are not installed and we do not have the permission +to install them, then we can create remote shell using netcat also. ### Reverse shell Server (192.168.1.9) + ```shell script $ nc -lv 8000 ``` Client + ```shell script $ nc 192.168.1.9 8000 -v -e /bin/bash ``` Reverse shells are often used to bypass the firewall restrictions like blocked inbound connections - diff --git a/source/_posts/neo4j.md b/source/_posts/neo4j.md index f5cc1ff..f9d7d8c 100644 --- a/source/_posts/neo4j.md +++ b/source/_posts/neo4j.md @@ -3,22 +3,22 @@ title: Neo4j date: 2021-08-23 12:34:56 background: bg-[#3b85ef] tags: - - DB - - GraphDB + - DB + - GraphDB categories: - Database intro: | - A Neo4j cheat sheet with getting started resources and information on how to query the database with Cypher. + A Neo4j cheat sheet with getting started resources and information on how to query the database with Cypher. plugins: - - copyCode + - copyCode --- -Getting Started {.cols-2} ---------------- +## Getting Started {.cols-2} ### Getting Started with Neo4j -Neo4j is a Graph Database consisting of nodes connected together by relationships. You might consider using a Graph database if you have a highly connected dataset or have queries with many joins. +Neo4j is a Graph Database consisting of nodes connected together by relationships. You might consider using a Graph +database if you have a highly connected dataset or have queries with many joins. - [Download Neo4j Desktop](https://neo4j.com/download) _download Neo4j desktop or server editions_ - [Neo4j Sandbox](https://sandbox.neo4j.com) _pick a data set - no installation required_ @@ -28,17 +28,15 @@ Neo4j is a Graph Database consisting of nodes connected together by relationship ### Graph Database Concepts -| | | -|-----------|-------------------------------------------------------------------------------------------------------------------| -| **Nodes** | Nodes are commonly used to represent _entities_ or _things_ in your data. For example, a **Person** or **Movie** | -| **Relationships** | Relationships are used to connect two nodes together and organise the data into structure. For example, a Person **acted in** a movie. A relationship has a _type_ and _direction_, although the direction can be ignored at query time. -| **Labels** | Labels are used to group nodes into categories. For example, a person may have `Person` and `Actor` labels. -| **Relationship Type** | Each relationship has a type. Relationships allow you to explore smaller sections of a graph. | -| **Properties** | Both nodes and relationships can have properties set against them. Properties are [name-value pairs](https://neo4j.com/docs/cypher-manual/4.3/syntax/values/#cypher-values). | +| | | +| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| **Nodes** | Nodes are commonly used to represent _entities_ or _things_ in your data. For example, a **Person** or **Movie** | +| **Relationships** | Relationships are used to connect two nodes together and organise the data into structure. For example, a Person **acted in** a movie. A relationship has a _type_ and _direction_, although the direction can be ignored at query time. | +| **Labels** | Labels are used to group nodes into categories. For example, a person may have `Person` and `Actor` labels. | +| **Relationship Type** | Each relationship has a type. Relationships allow you to explore smaller sections of a graph. | +| **Properties** | Both nodes and relationships can have properties set against them. Properties are [name-value pairs](https://neo4j.com/docs/cypher-manual/4.3/syntax/values/#cypher-values). | - -Neo4j Syntax ------- +## Neo4j Syntax ### Read query structure @@ -59,7 +57,6 @@ RETURN [ORDER BY] [SKIP] [LIMIT] [RETURN [ORDER BY] [SKIP] [LIMIT]] ``` - ### Read-write query structure ``` @@ -72,9 +69,7 @@ RETURN [ORDER BY] [SKIP] [LIMIT] [RETURN [ORDER BY] [SKIP] [LIMIT]] ``` - -Neo4j Reading Data ------------- +## Neo4j Reading Data ### MATCH @@ -82,121 +77,106 @@ Neo4j Reading Data MATCH (n:Person)-[:KNOWS]->(m:Person) WHERE n.name = 'Alice' ``` + Node patterns can contain labels and properties. - - ``` MATCH (n)-->(m) ``` + Any pattern can be used in MATCH. - - ``` MATCH (n {name: 'Alice'})-->(m) ``` + Patterns with node properties. - - ``` MATCH p = (n)-->(m) ``` + Assign a path to p. - - ``` OPTIONAL MATCH (n)-[r]->(m) ``` + Optional pattern: nulls will be used for missing parts. - - ### WHERE ``` WHERE n.property <> $value ``` -Use a predicate to filter. Note that WHERE is always part of a MATCH, OPTIONAL MATCH or WITH clause. Putting it after a different clause in a query will alter what it does. - +Use a predicate to filter. Note that WHERE is always part of a MATCH, OPTIONAL MATCH or WITH clause. Putting it after a +different clause in a query will alter what it does. ``` WHERE EXISTS { MATCH (n)-->(m) WHERE n.age = m.age } ``` + Use an existential subquery to filter. - - ### RETURN ``` RETURN * ``` + Return the value of all variables. - - ``` RETURN n AS columnName ``` + Use alias for result column name. - - ``` RETURN DISTINCT n ``` + Return unique rows. - - ``` ORDER BY n.property ``` + Sort the result. - - ``` ORDER BY n.property DESC ``` + Sort the result in descending order. - - ``` SKIP $skipNumber ``` + Skip a number of results. - - ``` LIMIT $limitNumber ``` + Limit the number of results. - - ``` SKIP $skipNumber LIMIT $limitNumber ``` + Skip results at the top and limit the number of results. - - ``` RETURN count(*) ``` + The number of matching rows. See Aggregating functions for more. - - ### WITH ``` @@ -206,9 +186,9 @@ WITH user, count(friend) AS friends WHERE friends > 10 RETURN user ``` -The WITH syntax is similar to RETURN. It separates query parts explicitly, allowing you to declare which variables to carry over to the next part. - +The WITH syntax is similar to RETURN. It separates query parts explicitly, allowing you to declare which variables to +carry over to the next part. ``` MATCH (user)-[:FRIEND]-(friend) @@ -218,10 +198,9 @@ ORDER BY friends DESC LIMIT 3 RETURN user ``` + ORDER BY, SKIP, and LIMIT can also be used with WITH. - - ### UNION ``` @@ -231,10 +210,9 @@ UNION MATCH (a)-[:LOVES]->(b) RETURN b.name ``` + Returns the distinct union of all query results. Result column types and names have to match. - - ``` MATCH (a)-[:KNOWS]->(b) RETURN b.name @@ -242,83 +220,71 @@ UNION ALL MATCH (a)-[:LOVES]->(b) RETURN b.name ``` + Returns the union of all query results, including duplicated rows. - - -Neo4j Writing Data -------------- - +## Neo4j Writing Data ### CREATE ``` CREATE (n {name: $value}) ``` + Create a node with the given properties. - - ``` CREATE (n $map) ``` + Create a node with the given properties. - - ``` UNWIND $listOfMaps AS properties CREATE (n) SET n = properties ``` + Create nodes with the given properties. - - ``` CREATE (n)-[r:KNOWS]->(m) ``` + Create a relationship with the given type and direction; bind a variable to it. - - ``` CREATE (n)-[:LOVES {since: $value}]->(m) ``` + Create a relationship with the given type, direction, and properties. - - ### SET ``` SET n.property1 = $value1, n.property2 = $value2 ``` + Update or create a property. - - ``` SET n = $map ``` + Set all properties. This will remove any existing properties. - - ``` SET n += $map ``` + Add and update properties, while keeping existing ones. - - ``` SET n:Person ``` + Adds a label Person to a node. - - ### MERGE ``` @@ -328,86 +294,76 @@ MERGE (n:Person {name: $value}) n.counter = coalesce(n.counter, 0) + 1, n.accessTime = timestamp() ``` + Match a pattern or create it if it does not exist. Use ON CREATE and ON MATCH for conditional updates. - - ``` MATCH (a:Person {name: $value1}), (b:Person {name: $value2}) MERGE (a)-[r:LOVES]->(b) ``` + MERGE finds or creates a relationship between the nodes. - - ``` MATCH (a:Person {name: $value1}) MERGE (a)-[r:KNOWS]->(b:Person {name: $value3}) ``` + MERGE finds or creates paths attached to the node. - - ### DELETE ``` DELETE n, r ``` + Delete a node and a relationship. - - ``` DETACH DELETE n ``` + Delete a node and all relationships connected to it. - - ``` MATCH (n) DETACH DELETE n ``` + Delete all nodes and relationships from the database. - - ### REMOVE ``` REMOVE n:Person ``` + Remove a label from n. - - ``` REMOVE n.property ``` + Remove a property. - - ### FOREACH ``` FOREACH (r IN relationships(path) | SET r.marked = true) ``` + Execute a mutating operation for each relationship in a path. - - ``` FOREACH (value IN coll | CREATE (:Person {name: value})) ``` + Execute a mutating operation for each element in a list. - - ### CALL subquery ``` @@ -417,40 +373,38 @@ CALL { MATCH (p:Child)-[:CHILD_OF]->(other:Parent) RETURN p, other } ``` + This calls a subquery with two union parts. The result of the subquery can afterwards be post-processed. - - ### CALL procedure ``` CALL db.labels() YIELD label ``` -This shows a standalone call to the built-in procedure db.labels to list all labels used in the database. Note that required procedure arguments are given explicitly in brackets after the procedure name. - +This shows a standalone call to the built-in procedure db.labels to list all labels used in the database. Note that +required procedure arguments are given explicitly in brackets after the procedure name. ``` CALL db.labels() YIELD * ``` -Standalone calls may use YIELD * to return all columns. - +Standalone calls may use YIELD \* to return all columns. ``` CALL java.stored.procedureWithArgs ``` -Standalone calls may omit YIELD and also provide arguments implicitly via statement parameters, e.g. a standalone call requiring one argument input may be run by passing the parameter map {input: 'foo'}. - +Standalone calls may omit YIELD and also provide arguments implicitly via statement parameters, e.g. a standalone call +requiring one argument input may be run by passing the parameter map {input: 'foo'}. ``` CALL db.labels() YIELD label RETURN count(label) AS count ``` -Calls the built-in procedure db.labels inside a larger query to count all labels used in the database. Calls inside a larger query always requires passing arguments and naming results explicitly with YIELD. - +Calls the built-in procedure db.labels inside a larger query to count all labels used in the database. Calls inside a +larger query always requires passing arguments and naming results explicitly with YIELD. ### Import @@ -459,63 +413,57 @@ LOAD CSV FROM 'https://neo4j.com/docs/cypher-refcard/4.3/csv/artists.csv' AS line CREATE (:Artist {name: line[1], year: toInteger(line[2])}) ``` + Load data from a CSV file and create nodes. - - ``` LOAD CSV WITH HEADERS FROM 'https://neo4j.com/docs/cypher-refcard/4.3/csv/artists-with-headers.csv' AS line CREATE (:Artist {name: line.Name, year: toInteger(line.Year)}) ``` + Load CSV data which has headers. - - ``` USING PERIODIC COMMIT 500 LOAD CSV WITH HEADERS FROM 'https://neo4j.com/docs/cypher-refcard/4.3/csv/artists-with-headers.csv' AS line CREATE (:Artist {name: line.Name, year: toInteger(line.Year)}) ``` + Commit the current transaction after every 500 rows when importing large amounts of data. - - ``` LOAD CSV FROM 'https://neo4j.com/docs/cypher-refcard/4.3/csv/artists-fieldterminator.csv' AS line FIELDTERMINATOR ';' CREATE (:Artist {name: line[1], year: toInteger(line[2])}) ``` + Use a different field terminator, not the default which is a comma (with no whitespace around it). - - ``` LOAD CSV FROM 'https://neo4j.com/docs/cypher-refcard/4.3/csv/artists.csv' AS line RETURN DISTINCT file() ``` + Returns the absolute path of the file that LOAD CSV is processing, returns null if called outside of LOAD CSV context. - - ``` LOAD CSV FROM 'https://neo4j.com/docs/cypher-refcard/4.3/csv/artists.csv' AS line RETURN linenumber() ``` + Returns the line number that LOAD CSV is currently processing, returns null if called outside of LOAD CSV context. - - ### Operators | | | -|------------------------|-------------------------------------------| +| ---------------------- | ----------------------------------------- | | **General** | DISTINCT, ., [] | -| **Mathematical** | +, -, *, /, %, ^ | +| **Mathematical** | +, -, \*, /, %, ^ | | **Comparison** | =, <>, <, >, <=, >=, IS NULL, IS NOT NULL | | **Boolean** | AND, OR, XOR, NOT | | **String** | + | @@ -523,469 +471,412 @@ Returns the line number that LOAD CSV is currently processing, returns null if c | **Regular Expression** | =~ | | **String matching** | STARTS WITH, ENDS WITH, CONTAINS | - ### null -* `null` is used to represent missing/undefined values. - -* `null` is not equal to `null`. Not knowing two values does not imply that they are the same value. So the expression `null = null` yields `null` and not `true`. To check if an expression is `null`, use `IS NULL`. -* Arithmetic expressions, comparisons and function calls (except `coalesce`) will return `null` if any argument is `null`. -* An attempt to access a missing element in a list or a property that doesn’t exist yields `null`. -* In `OPTIONAL MATCH` clauses, `nulls` will be used for missing parts of the pattern. +- `null` is used to represent missing/undefined values. +- `null` is not equal to `null`. Not knowing two values does not imply that they are the same value. So the expression + `null = null` yields `null` and not `true`. To check if an expression is `null`, use `IS NULL`. +- Arithmetic expressions, comparisons and function calls (except `coalesce`) will return `null` if any argument is + `null`. +- An attempt to access a missing element in a list or a property that doesn’t exist yields `null`. +- In `OPTIONAL MATCH` clauses, `nulls` will be used for missing parts of the pattern. ### Patterns ``` (n:Person) ``` + Node with Person label. - - ``` (n:Person:Swedish) ``` + Node with both Person and Swedish labels. - - ``` (n:Person {name: $value}) ``` + Node with the declared properties. - - ``` ()-[r {name: $value}]-() ``` + Matches relationships with the declared properties. - - ``` (n)-->(m) ``` + Relationship from n to m. - - ``` (n)--(m) ``` + Relationship in any direction between n and m. - - ``` (n:Person)-->(m) ``` + Node n labeled Person with relationship to m. - - ``` (m)<-[:KNOWS]-(n) ``` + Relationship of type KNOWS from n to m. - - ``` (n)-[:KNOWS|:LOVES]->(m) ``` + Relationship of type KNOWS or of type LOVES from n to m. - - ``` (n)-[r]->(m) ``` + Bind the relationship to variable r. - - ``` (n)-[*1..5]->(m) ``` + Variable length path of between 1 and 5 relationships from n to m. - - ``` (n)-[*]->(m) ``` + Variable length path of any number of relationships from n to m. (See Performance section.) - - ``` (n)-[:KNOWS]->(m {property: $value}) ``` + A relationship of type KNOWS from a node n to a node m with the declared property. - - ``` shortestPath((n1:Person)-[*..6]-(n2:Person)) ``` + Find a single shortest path. - - ``` allShortestPaths((n1:Person)-[*..6]->(n2:Person)) ``` + Find all shortest paths. - - ``` size((n)-->()-->()) ``` + Count the paths matching the pattern. - - ### USE ``` USE myDatabase ``` + Select myDatabase to execute query, or query part, against. - - ``` USE neo4j MATCH (n:Person)-[:KNOWS]->(m:Person) WHERE n.name = 'Alice' ``` + MATCH query executed against neo4j database. - - ### SHOW FUNCTIONS and PROCEDURES ``` SHOW FUNCTIONS ``` + Listing all available functions. - - ``` SHOW PROCEDURES EXECUTABLE YIELD name ``` + List all procedures that can be executed by the current user and return only the name of the procedures. - - ### Labels ``` CREATE (n:Person {name: $value}) ``` + Create a node with label and property. - - ``` MERGE (n:Person {name: $value}) ``` + Matches or creates unique node(s) with the label and property. - - ``` SET n:Spouse:Parent:Employee ``` + Add label(s) to a node. - - ``` MATCH (n:Person) ``` + Matches nodes labeled Person. - - ``` MATCH (n:Person) WHERE n.name = $value ``` + Matches nodes labeled Person with the given name. - - ``` WHERE (n:Person) ``` + Checks the existence of the label on the node. - - ``` labels(n) ``` + Labels of the node. - - ``` REMOVE n:Person ``` + Remove the label from the node. - - ### Lists ``` ['a', 'b', 'c'] AS list ``` + Literal lists are declared in square brackets. - - ``` size($list) AS len, $list[0] AS value ``` + Lists can be passed in as parameters. - - ``` range($firstNum, $lastNum, $step) AS list ``` -range() creates a list of numbers (step is optional), other functions returning lists are: labels(), nodes(), relationships(). - +range() creates a list of numbers (step is optional), other functions returning lists are: labels(), nodes(), +relationships(). ``` MATCH p = (a)-[:KNOWS*]->() RETURN relationships(p) AS r ``` + The list of relationships comprising a variable length path can be returned using named paths and relationships(). - - ``` RETURN matchedNode.list[0] AS value, size(matchedNode.list) AS len ``` + Properties can be lists of strings, numbers or booleans. - - ``` list[$idx] AS value, list[$startIdx..$endIdx] AS slice ``` -List elements can be accessed with idx subscripts in square brackets. Invalid indexes return null. Slices can be retrieved with intervals from start_idx to end_idx, each of which can be omitted or negative. Out of range elements are ignored. - +List elements can be accessed with idx subscripts in square brackets. Invalid indexes return null. Slices can be +retrieved with intervals from start_idx to end_idx, each of which can be omitted or negative. Out of range elements are +ignored. ``` UNWIND $names AS name MATCH (n {name: name}) RETURN avg(n.age) ``` + With UNWIND, any list can be transformed back into individual rows. The example matches all names from a list of names. - - ``` MATCH (a) RETURN [(a)-->(b) WHERE b.name = 'Bob' | b.age] ``` + Pattern comprehensions may be used to do a custom projection from a match directly into a list. - - ``` MATCH (person) RETURN person { .name, .age} ``` + Map projections may be easily constructed from nodes, relationships and other map values. - - ### Maps ``` {name: 'Alice', age: 38, address: {city: 'London', residential: true}} ``` + Literal maps are declared in curly braces much like property maps. Lists are supported. - - ``` WITH {person: {name: 'Anne', age: 25}} AS p RETURN p.person.name ``` + Access the property of a nested map. - - ``` MERGE (p:Person {name: $map.name}) ON CREATE SET p = $map ``` + Maps can be passed in as parameters and used either as a map or by accessing keys. - - ``` MATCH (matchedNode:Person) RETURN matchedNode ``` + Nodes and relationships are returned as maps of their data. - - ``` map.name, map.age, map.children[0] ``` + Map entries can be accessed by their keys. Invalid keys result in an error. - - ### Predicates ``` n.property <> $value ``` + Use comparison operators. - - ``` toString(n.property) = $value ``` + Use functions. - - ``` n.number >= 1 AND n.number <= 10 ``` + Use boolean operators to combine predicates. - - ``` 1 <= n.number <= 10 ``` + Use chained operators to combine predicates. - - ``` n:Person ``` + Check for node labels. - - ``` variable IS NOT NULL ``` + Check if something is not null, e.g. that a property exists. - - ``` n.property IS NULL OR n.property = $value ``` + Either the property does not exist or the predicate is true. - - ``` n.property = $value ``` + Non-existing property returns null, which is not equal to anything. - - ``` n["property"] = $value ``` + Properties may also be accessed using a dynamically computed property name. - - ``` n.property STARTS WITH 'Tim' OR n.property ENDS WITH 'n' OR n.property CONTAINS 'goodie' ``` + String matching. - - ``` n.property =~ 'Tim.*' ``` + String regular expression matching. - - ``` (n)-[:KNOWS]->(m) ``` + Ensure the pattern has at least one match. - - ``` NOT (n)-[:KNOWS]->(m) ``` + Exclude matches to (n)-[:KNOWS]->(m) from the result. - - ``` n.property IN [$value1, $value2] ``` + Check if an element exists in a list. - - ### List predicates ``` all(x IN coll WHERE x.property IS NOT NULL) ``` + Returns true if the predicate is true for all elements in the list. - - ``` any(x IN coll WHERE x.property IS NOT NULL) ``` + Returns true if the predicate is true for at least one element in the list. - - ``` none(x IN coll WHERE x.property IS NOT NULL) ``` + Returns true if the predicate is false for all elements in the list. - - ``` single(x IN coll WHERE x.property IS NOT NULL) ``` + Returns true if the predicate is true for exactly one element in the list. - - ### CASE ``` @@ -995,10 +886,9 @@ CASE n.eyes ELSE 3 END ``` + Return THEN value from the matching WHEN value. The ELSE value is optional, and substituted for null if missing. - - ``` CASE WHEN n.eyes = 'blue' THEN 1 @@ -1006,1428 +896,1278 @@ CASE ELSE 3 END ``` + Return THEN value from the first WHEN predicate evaluating to true. Predicates are evaluated in order. - - ### List expressions ``` size($list) ``` + Number of elements in the list. - - ``` reverse($list) ``` + Reverse the order of the elements in the list. - - ``` head($list), last($list), tail($list) ``` -head() returns the first, last() the last element of the list. tail() returns all but the first element. All return null for an empty list. - +head() returns the first, last() the last element of the list. tail() returns all but the first element. All return null +for an empty list. ``` [x IN list | x.prop] ``` + A list of the value of the expression for each element in the original list. - - ``` [x IN list WHERE x.prop <> $value] ``` + A filtered list of the elements where the predicate is true. - - ``` [x IN list WHERE x.prop <> $value | x.prop] ``` + A list comprehension that filters a list and extracts the value of the expression for each element in that list. - - ``` reduce(s = "", x IN list | s + x.prop) ``` + Evaluate expression for each element in the list, accumulate the results. - - ### Functions ``` coalesce(n.property, $defaultValue) ``` + The first non-null expression. - - ``` timestamp() ``` + Milliseconds since midnight, January 1, 1970 UTC. - - ``` id(nodeOrRelationship) ``` + The internal id of the relationship or node. - - ``` toInteger($expr) ``` + Converts the given input into an integer if possible; otherwise it returns null. - - ``` toFloat($expr) ``` + Converts the given input into a floating point number if possible; otherwise it returns null. - - ``` toBoolean($expr) ``` + Converts the given input into a boolean if possible; otherwise it returns null. - - ``` keys($expr) ``` + Returns a list of string representations for the property names of a node, relationship, or map. - - ``` properties($expr) ``` + Returns a map containing all the properties of a node or relationship. - - ### Path functions ``` length(path) ``` + The number of relationships in the path. - - ``` nodes(path) ``` + The nodes in the path as a list. - - ``` relationships(path) ``` + The relationships in the path as a list. - - ``` [x IN nodes(path) | x.prop] ``` + Extract properties from the nodes in a path. - - ### Spatial functions ``` point({x: $x, y: $y}) ``` + Returns a point in a 2D cartesian coordinate system. - - ``` point({latitude: $y, longitude: $x}) ``` + Returns a point in a 2D geographic coordinate system, with coordinates specified in decimal degrees. - - ``` point({x: $x, y: $y, z: $z}) ``` + Returns a point in a 3D cartesian coordinate system. - - ``` point({latitude: $y, longitude: $x, height: $z}) ``` -Returns a point in a 3D geographic coordinate system, with latitude and longitude in decimal degrees, and height in meters. - +Returns a point in a 3D geographic coordinate system, with latitude and longitude in decimal degrees, and height in +meters. ``` distance(point({x: $x1, y: $y1}), point({x: $x2, y: $y2})) ``` -Returns a floating point number representing the linear distance between two points. The returned units will be the same as those of the point coordinates, and it will work for both 2D and 3D cartesian points. - +Returns a floating point number representing the linear distance between two points. The returned units will be the same +as those of the point coordinates, and it will work for both 2D and 3D cartesian points. ``` distance(point({latitude: $y1, longitude: $x1}), point({latitude: $y2, longitude: $x2})) ``` + Returns the geodesic distance between two points in meters. It can be used for 3D geographic points as well. +## Neo4j Functions - -Neo4j Functions ---------- ### Temporal functions ``` date("2018-04-05") ``` + Returns a date parsed from a string. - - ``` localtime("12:45:30.25") ``` + Returns a time with no time zone. - - ``` time("12:45:30.25+01:00") ``` + Returns a time in a specified time zone. - - ``` localdatetime("2018-04-05T12:34:00") ``` + Returns a datetime with no time zone. - - ``` datetime("2018-04-05T12:34:00[Europe/Berlin]") ``` + Returns a datetime in the specified time zone. - - ``` datetime({epochMillis: 3360000}) ``` + Transforms 3360000 as a UNIX Epoch time into a normal datetime. - - ``` date({year: $year, month: $month, day: $day}) ``` -All of the temporal functions can also be called with a map of named components. This example returns a date from year, month and day components. Each function supports a different set of possible components. - +All of the temporal functions can also be called with a map of named components. This example returns a date from year, +month and day components. Each function supports a different set of possible components. ``` datetime({date: $date, time: $time}) ``` + Temporal types can be created by combining other types. This example creates a datetime from a date and a time. - - ``` date({date: $datetime, day: 5}) ``` -Temporal types can be created by selecting from more complex types, as well as overriding individual components. This example creates a date by selecting from a datetime, as well as overriding the day component. - +Temporal types can be created by selecting from more complex types, as well as overriding individual components. This +example creates a date by selecting from a datetime, as well as overriding the day component. ``` WITH date("2018-04-05") AS d RETURN d.year, d.month, d.day, d.week, d.dayOfWeek ``` + Accessors allow extracting components of temporal types. - - ### Duration functions ``` duration("P1Y2M10DT12H45M30.25S") ``` + Returns a duration of 1 year, 2 months, 10 days, 12 hours, 45 minutes and 30.25 seconds. - - ``` duration.between($date1,$date2) ``` + Returns a duration between two temporal instances. - - ``` WITH duration("P1Y2M10DT12H45M") AS d RETURN d.years, d.months, d.days, d.hours, d.minutes ``` + Returns 1 year, 14 months, 10 days, 12 hours and 765 minutes. - - ``` WITH duration("P1Y2M10DT12H45M") AS d RETURN d.years, d.monthsOfYear, d.days, d.hours, d.minutesOfHour ``` + Returns 1 year, 2 months, 10 days, 12 hours and 45 minutes. - - ``` date("2015-01-01") + duration("P1Y1M1D") ``` + Returns a date of 2016-02-02. It is also possible to subtract durations from temporal instances. - - ``` duration("PT30S") * 10 ``` + Returns a duration of 5 minutes. It is also possible to divide a duration by a number. - - ### Mathematical functions ``` abs($expr) ``` + The absolute value. - - ``` rand() ``` -Returns a random number in the range from 0 (inclusive) to 1 (exclusive), [0,1). Returns a new value for each call. Also useful for selecting a subset or random ordering. - +Returns a random number in the range from 0 (inclusive) to 1 (exclusive), [0,1). Returns a new value for each call. Also +useful for selecting a subset or random ordering. ``` round($expr) ``` + Round to the nearest integer; ceil() and floor() find the next integer up or down. - - ``` sqrt($expr) ``` + The square root. - - ``` sign($expr) ``` + 0 if zero, -1 if negative, 1 if positive. - - ``` sin($expr) ``` -Trigonometric functions also include cos(), tan(), cot(), asin(), acos(), atan(), atan2(), and haversin(). All arguments for the trigonometric functions should be in radians, if not otherwise specified. - +Trigonometric functions also include cos(), tan(), cot(), asin(), acos(), atan(), atan2(), and haversin(). All arguments +for the trigonometric functions should be in radians, if not otherwise specified. ``` degrees($expr), radians($expr), pi() ``` + Converts radians into degrees; use radians() for the reverse, and pi() for π. - - ``` log10($expr), log($expr), exp($expr), e() ``` + Logarithm base 10, natural logarithm, e to the power of the parameter, and the value of e. - - ### String functions ``` toString($expression) ``` + String representation of the expression. - - ``` replace($original, $search, $replacement) ``` + Replace all occurrences of search with replacement. All arguments must be expressions. - - ``` substring($original, $begin, $subLength) ``` + Get part of a string. The subLength argument is optional. - - ``` left($original, $subLength), right($original, $subLength) ``` + The first part of a string. The last part of the string. - - ``` trim($original), lTrim($original), rTrim($original) ``` + Trim all whitespace, or on the left or right side. - - ``` toUpper($original), toLower($original) ``` + UPPERCASE and lowercase. - - ``` split($original, $delimiter) ``` + Split a string into a list of strings. - - ``` reverse($original) ``` + Reverse a string. - - ``` size($string) ``` + Calculate the number of characters in the string. - - ### Relationship functions ``` type(a_relationship) ``` + String representation of the relationship type. - - ``` startNode(a_relationship) ``` + Start node of the relationship. - - ``` endNode(a_relationship) ``` + End node of the relationship. - - ``` id(a_relationship) ``` + The internal id of the relationship. - - ### Aggregating functions ``` count(*) ``` + The number of matching rows. - - ``` count(variable) ``` + The number of non-null values. - - ``` count(DISTINCT variable) ``` + All aggregating functions also take the DISTINCT operator, which removes duplicates from the values. - - ``` collect(n.property) ``` + List from the values, ignores null. - - ``` sum(n.property) ``` + Sum numerical values. Similar functions are avg(), min(), max(). - - ``` percentileDisc(n.property, $percentile) ``` + Discrete percentile. Continuous percentile is percentileCont(). The percentile argument is from 0.0 to 1.0. - - ``` stDev(n.property) ``` + Standard deviation for a sample of a population. For an entire population use stDevP(). - - -Neo4j Schema Operations ------- +## Neo4j Schema Operations ### INDEX ``` CREATE INDEX FOR (p:Person) ON (p.name) ``` + Create an index on nodes with label Person and property name. - - ``` CREATE INDEX index_name FOR ()-[k:KNOWS]-() ON (k.since) ``` + Create an index on relationships with type KNOWS and property since with the name index_name. - - ``` CREATE INDEX FOR (p:Person) ON (p.surname) OPTIONS {indexProvider: 'native-btree-1.0', indexConfig: {`spatial.cartesian.min`: [-100.0, -100.0], `spatial.cartesian.max`: [100.0, 100.0]}} ``` -Create an index on nodes with label Person and property surname with the index provider native-btree-1.0 and given spatial.cartesian settings. The other index settings will have their default values. - +Create an index on nodes with label Person and property surname with the index provider native-btree-1.0 and given +spatial.cartesian settings. The other index settings will have their default values. ``` CREATE INDEX FOR (p:Person) ON (p.name, p.age) ``` -Create a composite index on nodes with label Person and the properties name and age, throws an error if the index already exist. - +Create a composite index on nodes with label Person and the properties name and age, throws an error if the index +already exist. ``` CREATE INDEX IF NOT EXISTS FOR (p:Person) ON (p.name, p.age) ``` -Create a composite index on nodes with label Person and the properties name and age if it does not already exist, does nothing if it did exist. - +Create a composite index on nodes with label Person and the properties name and age if it does not already exist, does +nothing if it did exist. ``` CREATE LOOKUP INDEX lookup_index_name FOR (n) ON EACH labels(n) ``` + Create a token lookup index with the name lookup_index_name on nodes with any label . - - ``` CREATE LOOKUP INDEX FOR ()-[r]-() ON EACH type(r) ``` + Create a token lookup index on relationships with any relationship type. - - ``` CREATE FULLTEXT INDEX node_fulltext_index_name FOR (n:Friend) ON EACH [n.name] OPTIONS {indexConfig: {`fulltext.analyzer`: 'swedish'}} ``` -Create a fulltext index on nodes with the name node_fulltext_index_name and analyzer swedish. Fulltext indexes on nodes can only be used by from the procedure db.index.fulltext.queryNodes. The other index settings will have their default values. - +Create a fulltext index on nodes with the name node_fulltext_index_name and analyzer swedish. Fulltext indexes on nodes +can only be used by from the procedure db.index.fulltext.queryNodes. The other index settings will have their default +values. ``` CREATE FULLTEXT INDEX rel_fulltext_index_name FOR ()-[r:HAS_PET|BROUGHT_PET]-() ON EACH [r.since, r.price] ``` -Create a fulltext index on relationships with the name rel_fulltext_index_name. Fulltext indexes on relationships can only be used by from the procedure db.index.fulltext.queryRelationships. - +Create a fulltext index on relationships with the name rel_fulltext_index_name. Fulltext indexes on relationships can +only be used by from the procedure db.index.fulltext.queryRelationships. ``` SHOW INDEXES ``` + List all indexes. - - ``` MATCH (n:Person) WHERE n.name = $value ``` -An index can be automatically used for the equality comparison. Note that for example toLower(n.name) = $value will not use an index. - +An index can be automatically used for the equality comparison. Note that for example toLower(n.name) = $value will not +use an index. ``` MATCH (n:Person) WHERE n.name IN [$value] ``` + An index can automatically be used for the IN list checks. - - ``` MATCH (n:Person) WHERE n.name = $value and n.age = $value2 ``` -A composite index can be automatically used for equality comparison of both properties. Note that there needs to be predicates on all properties of the composite index for it to be used. - +A composite index can be automatically used for equality comparison of both properties. Note that there needs to be +predicates on all properties of the composite index for it to be used. ``` MATCH (n:Person) USING INDEX n:Person(name) WHERE n.name = $value ``` + Index usage can be enforced when Cypher uses a suboptimal index, or more than one index should be used. - - ``` DROP INDEX index_name ``` + Drop the index named index_name, throws an error if the index does not exist. - - ``` DROP INDEX index_name IF EXISTS ``` + Drop the index named index_name if it exists, does nothing if it does not exist. - - ### CONSTRAINT ``` CREATE CONSTRAINT ON (p:Person) ASSERT p.name IS UNIQUE ``` -Create a unique property constraint on the label Person and property name. If any other node with that label is updated or created with a name that already exists, the write operation will fail. This constraint will create an accompanying index. - +Create a unique property constraint on the label Person and property name. If any other node with that label is updated +or created with a name that already exists, the write operation will fail. This constraint will create an accompanying +index. ``` CREATE CONSTRAINT uniqueness ON (p:Person) ASSERT p.age IS UNIQUE ``` -Create a unique property constraint on the label Person and property age with the name uniqueness. If any other node with that label is updated or created with a age that already exists, the write operation will fail. This constraint will create an accompanying index. - +Create a unique property constraint on the label Person and property age with the name uniqueness. If any other node +with that label is updated or created with a age that already exists, the write operation will fail. This constraint +will create an accompanying index. ``` CREATE CONSTRAINT ON (p:Person) ASSERT p.surname IS UNIQUE OPTIONS {indexProvider: 'native-btree-1.0'} ``` -Create a unique property constraint on the label Person and property surname with the index provider native-btree-1.0 for the accompanying index. - +Create a unique property constraint on the label Person and property surname with the index provider native-btree-1.0 +for the accompanying index. ``` CREATE CONSTRAINT ON (p:Person) ASSERT p.name IS NOT NULL ``` -(★) Create a node property existence constraint on the label Person and property name, throws an error if the constraint already exists. If a node with that label is created without a name, or if the name property is removed from an existing node with the Person label, the write operation will fail. - +(★) Create a node property existence constraint on the label Person and property name, throws an error if the constraint +already exists. If a node with that label is created without a name, or if the name property is removed from an existing +node with the Person label, the write operation will fail. ``` CREATE CONSTRAINT node_exists IF NOT EXISTS ON (p:Person) ASSERT p.name IS NOT NULL ``` -(★) If a node property existence constraint on the label Person and property name or any constraint with the name node_exists already exist then nothing happens. If no such constraint exists, then it will be created. - +(★) If a node property existence constraint on the label Person and property name or any constraint with the name +node_exists already exist then nothing happens. If no such constraint exists, then it will be created. ``` CREATE CONSTRAINT ON ()-[l:LIKED]-() ASSERT l.when IS NOT NULL ``` -(★) Create a relationship property existence constraint on the type LIKED and property when. If a relationship with that type is created without a when, or if the when property is removed from an existing relationship with the LIKED type, the write operation will fail. - +(★) Create a relationship property existence constraint on the type LIKED and property when. If a relationship with that +type is created without a when, or if the when property is removed from an existing relationship with the LIKED type, +the write operation will fail. ``` CREATE CONSTRAINT relationship_exists ON ()-[l:LIKED]-() ASSERT l.since IS NOT NULL ``` -(★) Create a relationship property existence constraint on the type LIKED and property since with the name relationship_exists. If a relationship with that type is created without a since, or if the since property is removed from an existing relationship with the LIKED type, the write operation will fail. - +(★) Create a relationship property existence constraint on the type LIKED and property since with the name +relationship_exists. If a relationship with that type is created without a since, or if the since property is removed +from an existing relationship with the LIKED type, the write operation will fail. ``` SHOW UNIQUE CONSTRAINTS YIELD * ``` + List all unique constraints. - - ``` CREATE CONSTRAINT ON (p:Person) ASSERT (p.firstname, p.surname) IS NODE KEY ``` -(★) Create a node key constraint on the label Person and properties firstname and surname. If a node with that label is created without both firstname and surname or if the combination of the two is not unique, or if the firstname and/or surname labels on an existing node with the Person label is modified to violate these constraints, the write operation will fail. - +(★) Create a node key constraint on the label Person and properties firstname and surname. If a node with that label is +created without both firstname and surname or if the combination of the two is not unique, or if the firstname and/or +surname labels on an existing node with the Person label is modified to violate these constraints, the write operation +will fail. ``` CREATE CONSTRAINT node_key ON (p:Person) ASSERT (p.name, p.surname) IS NODE KEY ``` -(★) Create a node key constraint on the label Person and properties name and surname with the name node_key. If a node with that label is created without both name and surname or if the combination of the two is not unique, or if the name and/or surname labels on an existing node with the Person label is modified to violate these constraints, the write operation will fail. - +(★) Create a node key constraint on the label Person and properties name and surname with the name node_key. If a node +with that label is created without both name and surname or if the combination of the two is not unique, or if the name +and/or surname labels on an existing node with the Person label is modified to violate these constraints, the write +operation will fail. ``` CREATE CONSTRAINT node_key_with_config ON (p:Person) ASSERT (p.name, p.age) IS NODE KEY OPTIONS {indexConfig: {`spatial.wgs-84.min`: [-100.0, -100.0], `spatial.wgs-84.max`: [100.0, 100.0]}} ``` -(★) Create a node key constraint on the label Person and properties name and age with the name node_key_with_config and given spatial.wgs-84 settings for the accompanying index. The other index settings will have their default values. - +(★) Create a node key constraint on the label Person and properties name and age with the name node_key_with_config and +given spatial.wgs-84 settings for the accompanying index. The other index settings will have their default values. ``` DROP CONSTRAINT uniqueness ``` + Drop the constraint with the name uniqueness, throws an error if the constraint does not exist. - - ``` DROP CONSTRAINT uniqueness IF EXISTS ``` + Drop the constraint with the name uniqueness if it exists, does nothing if it does not exist. - - ### Performance -* Use parameters instead of literals when possible. This allows Cypher to re-use your queries instead of having to parse and build new execution plans. -* Always set an upper limit for your variable length patterns. It’s possible to have a query go wild and touch all nodes in a graph by mistake. -* Return only the data you need. Avoid returning whole nodes and relationships — instead, pick the data you need and return only that. -* Use `PROFILE` / `EXPLAIN` to analyze the performance of your queries. See [Query Tuning](https://neo4j.com/docs/cypher-manual/4.3/query-tuning) for more information on these and other topics, such as planner hints. +- Use parameters instead of literals when possible. This allows Cypher to re-use your queries instead of having to parse + and build new execution plans. +- Always set an upper limit for your variable length patterns. It’s possible to have a query go wild and touch all nodes + in a graph by mistake. +- Return only the data you need. Avoid returning whole nodes and relationships — instead, pick the data you need and + return only that. +- Use `PROFILE` / `EXPLAIN` to analyze the performance of your queries. See + [Query Tuning](https://neo4j.com/docs/cypher-manual/4.3/query-tuning) for more information on these and other topics, + such as planner hints. - -Neo4j Multidatabase -------------- +## Neo4j Multidatabase ### Database management ``` CREATE OR REPLACE DATABASE myDatabase ``` -(★) Create a database named myDatabase. If a database with that name exists, then the existing database is deleted and a new one created. - +(★) Create a database named myDatabase. If a database with that name exists, then the existing database is deleted and a +new one created. ``` STOP DATABASE myDatabase ``` + (★) Stop the database myDatabase. - - ``` START DATABASE myDatabase ``` + (★) Start the database myDatabase. - - ``` SHOW DATABASES ``` + List all databases in the system and information about them. - - ``` SHOW DATABASES YIELD name, currentStatus WHERE name CONTAINS 'my' AND currentStatus = 'online' ``` + List information about databases, filtered by name and online status and further refined by conditions on these. - - ``` SHOW DATABASE myDatabase ``` + List information about the database myDatabase. - - ``` SHOW DEFAULT DATABASE ``` + List information about the default database. - - ``` SHOW HOME DATABASE ``` + List information about the current users home database. - - ``` DROP DATABASE myDatabase IF EXISTS ``` + (★) Delete the database myDatabase, if it exists. - - -Neo4j Security --------- +## Neo4j Security ### User management ``` CREATE USER alice SET PASSWORD $password ``` + Create a new user and a password. This password must be changed on the first login. - - ``` ALTER USER alice SET PASSWORD $password CHANGE NOT REQUIRED ``` + Set a new password for a user. This user will not be required to change this password on the next login. - - ``` ALTER USER alice IF EXISTS SET PASSWORD CHANGE REQUIRED ``` + If the specified user exists, force this user to change their password on the next login. - - ``` ALTER USER alice SET STATUS SUSPENDED ``` + (★) Change the user status to suspended. Use SET STATUS ACTIVE to reactivate the user. - - ``` ALTER USER alice SET HOME DATABASE otherDb ``` -(★) Change the home database of user to otherDb. Use REMOVE HOME DATABASE to unset the home database for the user and fallback to the default database. - +(★) Change the home database of user to otherDb. Use REMOVE HOME DATABASE to unset the home database for the user and +fallback to the default database. ``` ALTER CURRENT USER SET PASSWORD FROM $old TO $new ``` + Change the password of the logged-in user. The user will not be required to change this password on the next login. - - ``` SHOW CURRENT USER ``` -List the currently logged-in user, their status, roles and whether they need to change their password. -(★) Status and roles are Enterprise Edition only. - +List the currently logged-in user, their status, roles and whether they need to change their password. (★) Status and +roles are Enterprise Edition only. ``` SHOW USERS ``` -List all users in the system, their status, roles and if they need to change their password. -(★) Status and roles are Enterprise Edition only. - +List all users in the system, their status, roles and if they need to change their password. (★) Status and roles are +Enterprise Edition only. ``` SHOW USERS YIELD user, suspended WHERE suspended = true ``` -List users in the system, filtered by their name and status and further refined by whether they are suspended. -(★) Status is Enterprise Edition only. - +List users in the system, filtered by their name and status and further refined by whether they are suspended. (★) +Status is Enterprise Edition only. ``` RENAME USER alice TO alice_delete ``` + Rename the user alice to alice_delete. - - ``` DROP USER alice_delete ``` + Delete the user. - - ### (★) Role management ``` CREATE ROLE my_role ``` + Create a role. - - ``` CREATE ROLE my_second_role IF NOT EXISTS AS COPY OF my_role ``` + Create a role named my_second_role, unless it already exists, as a copy of the existing my_role. - - ``` RENAME ROLE my_second_role TO my_other_role ``` + Rename a role named my_second_role to my_other_role. - - ``` GRANT ROLE my_role, my_other_role TO alice ``` + Assign roles to a user. - - ``` REVOKE ROLE my_other_role FROM alice ``` + Remove a specified role from a user. - - ``` SHOW ROLES ``` + List all roles in the system. - - ``` SHOW ROLES YIELD role WHERE role CONTAINS 'my' ``` + List roles, filtered by the name of the role and further refined by whether the name contains 'my'. - - ``` SHOW POPULATED ROLES WITH USERS ``` + List all roles that are assigned to at least one user in the system, and the users assigned to those roles. - - ``` DROP ROLE my_role ``` + Delete a role. - - ### (★) Graph read privileges ``` GRANT TRAVERSE ON GRAPH * NODES * TO my_role ``` + Grant traverse privilege on all nodes and all graphs to a role. - - ``` DENY READ {prop} ON GRAPH foo RELATIONSHIP Type TO my_role ``` + Deny read privilege on a specified property, on all relationships with a specified type in a specified graph, to a role. - - ``` GRANT MATCH {*} ON HOME GRAPH ELEMENTS Label TO my_role ``` -Grant read privilege on all properties and traverse privilege in the home graph, to a role. Here, both privileges apply to all nodes and relationships with a specified label/type in the graph. - +Grant read privilege on all properties and traverse privilege in the home graph, to a role. Here, both privileges apply +to all nodes and relationships with a specified label/type in the graph. ### (★) Graph write privileges ``` GRANT CREATE ON GRAPH * NODES Label TO my_role ``` + Grant create privilege on all nodes with a specified label in all graphs to a role. - - ``` DENY DELETE ON GRAPH neo4j TO my_role ``` + Deny delete privilege on all nodes and relationships in a specified graph to a role. - - ``` REVOKE SET LABEL Label ON GRAPH * FROM my_role ``` + Revoke set label privilege for the specified label on all graphs to a role. - - ``` GRANT REMOVE LABEL * ON GRAPH foo TO my_role ``` + Grant remove label privilege for all labels on a specified graph to a role. - - ``` DENY SET PROPERTY {prop} ON GRAPH foo RELATIONSHIPS Type TO my_role ``` -Deny set property privilege on a specified property, on all relationships with a specified type in a specified graph, to a role. - +Deny set property privilege on a specified property, on all relationships with a specified type in a specified graph, to +a role. ``` GRANT MERGE {*} ON GRAPH * NODES Label TO my_role ``` + Grant merge privilege on all properties, on all nodes with a specified label in all graphs, to a role. - - ``` REVOKE WRITE ON GRAPH * FROM my_role ``` + Revoke write privilege on all graphs from a role. - - ``` DENY ALL GRAPH PRIVILEGES ON GRAPH foo TO my_role ``` + Deny all graph privileges privilege on a specified graph to a role. - - ### (★) SHOW PRIVILEGES ``` SHOW PRIVILEGES AS COMMANDS ``` + List all privileges in the system as Cypher commands. - - ``` SHOW PRIVILEGES ``` + List all privileges in the system, and the roles that they are assigned to. - - ``` SHOW PRIVILEGES YIELD role, action, access WHERE role = 'my_role' ``` + List information about privileges, filtered by role, action and access and further refined by the name of the role. - - ``` SHOW ROLE my_role PRIVILEGES AS COMMANDS ``` + List all privileges assigned to a role as Cypher commands. - - ``` SHOW ROLE my_role, my_second_role PRIVILEGES AS COMMANDS ``` + List all privileges assigned to each of the multiple roles as Cypher commands. - - ``` SHOW USER alice PRIVILEGES AS COMMANDS ``` + List all privileges of a user, and the role that they are assigned to as Cypher commands. - - ``` SHOW USER PRIVILEGES AS COMMANDS ``` + List all privileges of the currently logged in user, and the role that they are assigned to as Cypher commands. - - ### (★) Database privileges ``` GRANT ACCESS ON DATABASE * TO my_role ``` + Grant privilege to access and run queries against all databases to a role. - - ``` GRANT START ON DATABASE * TO my_role ``` + Grant privilege to start all databases to a role. - - ``` GRANT STOP ON DATABASE * TO my_role ``` + Grant privilege to stop all databases to a role. - - ``` GRANT CREATE INDEX ON DATABASE foo TO my_role ``` + Grant privilege to create indexes on a specified database to a role. - - ``` GRANT DROP INDEX ON DATABASE foo TO my_role ``` + Grant privilege to drop indexes on a specified database to a role. - - ``` GRANT SHOW INDEX ON DATABASE * TO my_role ``` + Grant privilege to show indexes on all databases to a role. - - ``` DENY INDEX MANAGEMENT ON DATABASE bar TO my_role ``` + Deny privilege to create and drop indexes on a specified database to a role. - - ``` GRANT CREATE CONSTRAINT ON DATABASE * TO my_role ``` + Grant privilege to create constraints on all databases to a role. - - ``` DENY DROP CONSTRAINT ON DATABASE * TO my_role ``` + Deny privilege to drop constraints on all databases to a role. - - ``` DENY SHOW CONSTRAINT ON DATABASE foo TO my_role ``` + Deny privilege to show constraints on a specified database to a role. - - ``` REVOKE CONSTRAINT ON DATABASE * FROM my_role ``` + Revoke granted and denied privileges to create and drop constraints on all databases from a role. - - ``` GRANT CREATE NEW LABELS ON DATABASE * TO my_role ``` + Grant privilege to create new labels on all databases to a role. - - ``` DENY CREATE NEW TYPES ON DATABASE foo TO my_role ``` + Deny privilege to create new relationship types on a specified database to a role. - - ``` REVOKE GRANT CREATE NEW PROPERTY NAMES ON DATABASE bar FROM my_role ``` + Revoke the grant privilege to create new property names on a specified database from a role. - - ``` GRANT NAME MANAGEMENT ON HOME DATABASE TO my_role ``` + Grant privilege to create labels, relationship types, and property names on the home database to a role. - - ``` GRANT ALL ON DATABASE baz TO my_role ``` -Grant privilege to access, create and drop indexes and constraints, create new labels, types and property names on a specified database to a role. - +Grant privilege to access, create and drop indexes and constraints, create new labels, types and property names on a +specified database to a role. ``` GRANT SHOW TRANSACTION (*) ON DATABASE foo TO my_role ``` + Grant privilege to list transactions and queries from all users on a specified database to a role. - - ``` DENY TERMINATE TRANSACTION (user1, user2) ON DATABASES * TO my_role ``` + Deny privilege to kill transactions and queries from user1 and user2 on all databases to a role. - - ``` REVOKE GRANT TRANSACTION MANAGEMENT ON HOME DATABASE FROM my_role ``` + Revoke the granted privilege to list and kill transactions and queries from all users on the home database from a role. - - ### (★) Role management privileges ``` GRANT CREATE ROLE ON DBMS TO my_role ``` + Grant the privilege to create roles to a role. - - ``` GRANT RENAME ROLE ON DBMS TO my_role ``` + Grant the privilege to rename roles to a role. - - ``` GRANT DROP ROLE ON DBMS TO my_role ``` + Grant the privilege to delete roles to a role. - - ``` DENY ASSIGN ROLE ON DBMS TO my_role ``` + Deny the privilege to assign roles to users to a role. - - ``` DENY REMOVE ROLE ON DBMS TO my_role ``` + Deny the privilege to remove roles from users to a role. - - ``` REVOKE DENY SHOW ROLE ON DBMS FROM my_role ``` + Revoke the denied privilege to show roles from a role. - - ``` GRANT ROLE MANAGEMENT ON DBMS TO my_role ``` + Grant all privileges to manage roles to a role. - - ### (★) User management privileges ``` GRANT CREATE USER ON DBMS TO my_role ``` + Grant the privilege to create users to a role. - - ``` GRANT RENAME USER ON DBMS TO my_role ``` + Grant the privilege to rename users to a role. - - ``` DENY ALTER USER ON DBMS TO my_role ``` + Deny the privilege to alter users to a role. - - ``` REVOKE SET PASSWORDS ON DBMS FROM my_role ``` + Revoke the granted and denied privileges to alter users' passwords from a role. - - ``` REVOKE GRANT SET USER STATUS ON DBMS FROM my_role ``` + Revoke the granted privilege to alter the account status of users from a role. - - ``` GRANT SET USER HOME DATABASE ON DBMS TO my_role ``` + Grant the privilege alter the home database of users to a role. - - ``` GRANT DROP USER ON DBMS TO my_role ``` + Grant the privilege to delete users to a role. - - ``` REVOKE DENY SHOW USER ON DBMS FROM my_role ``` + Revoke the denied privilege to show users from a role. - - ``` GRANT USER MANAGEMENT ON DBMS TO my_role ``` + Grant all privileges to manage users to a role. - - ### (★) Database management privileges ``` GRANT CREATE DATABASE ON DBMS TO my_role ``` + Grant the privilege to create databases to a role. - - ``` REVOKE DENY DROP DATABASE ON DBMS FROM my_role ``` + Revoke the denied privilege to delete databases from a role. - - ``` DENY DATABASE MANAGEMENT ON DBMS TO my_role ``` + Deny all privileges to manage database to a role. - - ### (★) Privilege management privileges ``` GRANT SHOW PRIVILEGE ON DBMS TO my_role ``` + Grant the privilege to show privileges to a role. - - ``` DENY ASSIGN PRIVILEGE ON DBMS TO my_role ``` + Deny the privilege to assign privileges to roles to a role. - - ``` REVOKE GRANT REMOVE PRIVILEGE ON DBMS FROM my_role ``` + Revoke the granted privilege to remove privileges from roles from a role. - - ``` REVOKE PRIVILEGE MANAGEMENT ON DBMS FROM my_role ``` + Revoke all granted and denied privileges for manage privileges from a role. - - ### (★) DBMS privileges ``` GRANT ALL ON DBMS TO my_role ``` + Grant privilege to perform all role management, user management, database management and privilege management to a role. - - -★ Note ----- +## ★ Note (★) Functionality available in Neo4j Enterprise Edition. diff --git a/source/_posts/netstat.md b/source/_posts/netstat.md index dd8069c..c2039dd 100644 --- a/source/_posts/netstat.md +++ b/source/_posts/netstat.md @@ -3,81 +3,68 @@ title: Netstat date: 2021-01-27 11:44:21 background: bg-slate-700 tags: - - network - - utility - - port + - network + - utility + - port categories: - - Linux Command + - Linux Command intro: | - This quick reference cheat sheet provides various for using netstat command. + This quick reference cheat sheet provides various for using netstat command. plugins: - - copyCode + - copyCode --- -Getting Started ---------------- - +## Getting Started ### Statistics All connections on port 80 + ```shell script $ netstat -anp | grep :80 ``` + Netstat Help + ```shell script $ netstat -h ``` - - ### Listening + | Option | Example | -|------------------|----------------------| +| ---------------- | -------------------- | | `netstat -ltunp` | All Listening ports | | `netstat -ltn` | Listening TCP ports | | `netstat -lun` | Listening UDP ports | | `netstat -lx` | Listening Unix ports | - - - ### Connections | Option | Example | -|---------------|---------------------| +| ------------- | ------------------- | | `netstat -a` | All connections | | `netstat -at` | All TCP connections | | `netstat -au` | All UDP connections | - - - ### Statistics | Option | Example | -|---------------|------------------------| +| ------------- | ---------------------- | | `netstat -s` | Display statistics | | `netstat -st` | Display TCP statistics | | `netstat -su` | Display UDP statistics | - - - ### Networks | Option | Example | -|---------------|---------------------------------------| +| ------------- | ------------------------------------- | | `netstat -i` | Show network interfaces | | `netstat -ie` | Show network interfaces extended info | - - ### Routing | Option | Example | -|---------------|-----------------------------------------| +| ------------- | --------------------------------------- | | `netstat -r` | Show routing table | | `netstat -rn` | Show routing table, don't resolve hosts | - - diff --git a/source/_posts/numpy.md b/source/_posts/numpy.md index 2526e29..0b65f92 100644 --- a/source/_posts/numpy.md +++ b/source/_posts/numpy.md @@ -3,18 +3,17 @@ title: Numpy date: 2020-12-14 18:28:43 background: bg-[#4f6fc3] tags: - - scientific - - computing + - scientific + - computing categories: - - Python + - Python intro: | - [NumPy](https://numpy.org/) is the fundamental package for scientific computing with Python. This cheat sheet is a quick reference for NumPy beginners. + [NumPy](https://numpy.org/) is the fundamental package for scientific computing with Python. This cheat sheet is a quick reference for NumPy beginners. plugins: - - copyCode + - copyCode --- -Getting Started {.cols-2} ---------------- +## Getting Started {.cols-2} ### Introduction @@ -24,111 +23,94 @@ You’ll also need to import numpy to get started: import numpy as np ``` - ### Importing/exporting - | - | - | -|--------------------------------------------|-----------------------| +| ------------------------------------------ | --------------------- | | `np.loadtxt('file.txt')` | From a text file | | `np.genfromtxt('file.csv',delimiter=',')` | From a CSV file | | `np.savetxt('file.txt',arr,delimiter=' ')` | Writes to a text file | | `np.savetxt('file.csv',arr,delimiter=',')` | Writes to a CSV file | - ### Creating Arrays {.row-span-2} - -| - | - | -|-------------------------------|-----------------------------------| -| `np.array([1,2,3])` | One dimensional array | -| `np.array([(1,2,3),(4,5,6)])` | Two dimensional array | -| `np.zeros(3)` | 1D array of length 3 all values 0 | -| `np.ones((3,4))` | 3x4 array with all values 1 | -| `np.eye(5)` | 5x5 array of 0 with 1 on diagonal (Identity matrix) -| `np.linspace(0,100,6)` | Array of 6 evenly divided values from 0 to 100 | -| `np.arange(0,10,3)` | Array of values from 0 to less than 10 with step 3 (eg [0,3,6,9]) -| `np.full((2,3),8)` | 2x3 array with all values 8 | -| `np.random.rand(4,5)` | 4x5 array of random floats between 0–1 | -| `np.random.rand(6,7)*100` | 6x7 array of random floats between 0–100 | -| `np.random.randint(5,size=(2,3))` | 2x3 array with random ints between 0–4 | - +| - | - | +| --------------------------------- | ----------------------------------------------------------------- | +| `np.array([1,2,3])` | One dimensional array | +| `np.array([(1,2,3),(4,5,6)])` | Two dimensional array | +| `np.zeros(3)` | 1D array of length 3 all values 0 | +| `np.ones((3,4))` | 3x4 array with all values 1 | +| `np.eye(5)` | 5x5 array of 0 with 1 on diagonal (Identity matrix) | +| `np.linspace(0,100,6)` | Array of 6 evenly divided values from 0 to 100 | +| `np.arange(0,10,3)` | Array of values from 0 to less than 10 with step 3 (eg [0,3,6,9]) | +| `np.full((2,3),8)` | 2x3 array with all values 8 | +| `np.random.rand(4,5)` | 4x5 array of random floats between 0–1 | +| `np.random.rand(6,7)*100` | 6x7 array of random floats between 0–100 | +| `np.random.randint(5,size=(2,3))` | 2x3 array with random ints between 0–4 | ### Inspecting Properties - -| - | - | -|------------|-----------------------------------| -| `arr.size` | Returns number of elements in arr | -| `arr.shape` | Returns dimensions of arr (rows,columns) -| `arr.dtype` | Returns type of elements in arr | -| `arr.astype(dtype)` | Convert arr elements to type dtype | -| `arr.tolist()` | Convert arr to a Python list | -| `np.info(np.eye)` | View documentation for np.eye | - +| - | - | +| ------------------- | ---------------------------------------- | +| `arr.size` | Returns number of elements in arr | +| `arr.shape` | Returns dimensions of arr (rows,columns) | +| `arr.dtype` | Returns type of elements in arr | +| `arr.astype(dtype)` | Convert arr elements to type dtype | +| `arr.tolist()` | Convert arr to a Python list | +| `np.info(np.eye)` | View documentation for np.eye | ### Copying/sorting/reshaping - -| - | - | -|-----------------------|----------------------------------------------| -| `np.copy(arr)` | Copies arr to new memory | -| `arr.view(dtype)` | Creates view of arr elements with type dtype | -| `arr.sort()` | Sorts arr | -| `arr.sort(axis=0)` | Sorts specific axis of arr | -| `two_d_arr.flatten()` | Flattens 2D array two_d_arr to 1D | -| `arr.T` | Transposes arr (rows become columns and vice versa) -| `arr.reshape(3,4)` | Reshapes arr to 3 rows, 4 columns without changing data | -| `arr.resize((5,6))` | Changes arr shape to 5x6 and fills new values with 0 | - +| - | - | +| --------------------- | ------------------------------------------------------- | +| `np.copy(arr)` | Copies arr to new memory | +| `arr.view(dtype)` | Creates view of arr elements with type dtype | +| `arr.sort()` | Sorts arr | +| `arr.sort(axis=0)` | Sorts specific axis of arr | +| `two_d_arr.flatten()` | Flattens 2D array two_d_arr to 1D | +| `arr.T` | Transposes arr (rows become columns and vice versa) | +| `arr.reshape(3,4)` | Reshapes arr to 3 rows, 4 columns without changing data | +| `arr.resize((5,6))` | Changes arr shape to 5x6 and fills new values with 0 | ### Adding/removing Elements - | - | - | -|---------------------------|----------------------------------------| +| ------------------------- | -------------------------------------- | | `np.append(arr,values)` | Appends values to end of arr | | `np.insert(arr,2,values)` | Inserts values into arr before index 2 | | `np.delete(arr,3,axis=0)` | Deletes row on index 3 of arr | | `np.delete(arr,4,axis=1)` | Deletes column on index 4 of arr | - ### Combining/splitting - | - | - | -|--------------------------------------|------------------------------------------| +| ------------------------------------ | ---------------------------------------- | | `np.concatenate((arr1,arr2),axis=0)` | Adds arr2 as rows to the end of arr1 | | `np.concatenate((arr1,arr2),axis=1)` | Adds arr2 as columns to end of arr1 | | `np.split(arr,3)` | Splits arr into 3 sub-arrays | | `np.hsplit(arr,5)` | Splits arr horizontally on the 5th index | - ### Indexing/slicing/subsetting - -| - | - | -|----------|--------------------------------| -| `arr[5]` | Returns the element at index 5 | -| `arr[2,5]` | Returns the 2D array element on index [2][5] -| `arr[1]=4` | Assigns array element on index 1 the value 4 | -| `arr[1,3]=10` | Assigns array element on index [1][3] the value 10 | -| `arr[0:3]` | Returns the elements at indices 0,1,2 (On a 2D array: returns rows 0,1,2) -| `arr[0:3,4]` | Returns the elements on rows 0,1,2 at column 4 | -| `arr[:2]` | Returns the elements at indices 0,1 (On a 2D array: returns rows 0,1) -| `arr[:,1]` | Returns the elements at index 1 on all rows | -| `arr<5` | Returns an array with boolean values | -| `(arr1<3) & (arr2>5)` | Returns an array with boolean values | -| `~arr` | Inverts a boolean array | -| `arr[arr<5]` | Returns array elements smaller than 5 | - - +| - | - | +| --------------------- | ------------------------------------------------------------------------- | +| `arr[5]` | Returns the element at index 5 | +| `arr[2,5]` | Returns the 2D array element on index [2][5] | +| `arr[1]=4` | Assigns array element on index 1 the value 4 | +| `arr[1,3]=10` | Assigns array element on index [1][3] the value 10 | +| `arr[0:3]` | Returns the elements at indices 0,1,2 (On a 2D array: returns rows 0,1,2) | +| `arr[0:3,4]` | Returns the elements on rows 0,1,2 at column 4 | +| `arr[:2]` | Returns the elements at indices 0,1 (On a 2D array: returns rows 0,1) | +| `arr[:,1]` | Returns the elements at index 1 on all rows | +| `arr<5` | Returns an array with boolean values | +| `(arr1<3) & (arr2>5)` | Returns an array with boolean values | +| `~arr` | Inverts a boolean array | +| `arr[arr<5]` | Returns array elements smaller than 5 | ### Vector Math - | - | - | -|-----------------------------|-------------------------------------------------------------| +| --------------------------- | ----------------------------------------------------------- | | `np.add(arr1,arr2)` | Elementwise add arr2 to arr1 | | `np.subtract(arr1,arr2)` | Elementwise subtract arr2 from arr1 | | `np.multiply(arr1,arr2)` | Elementwise multiply arr1 by arr2 | @@ -143,24 +125,20 @@ import numpy as np | `np.floor(arr)` | Rounds down to the nearest int | | `np.round(arr)` | Rounds to the nearest int | - ### Scalar Math - -| - | - | -|----------------------|------------------------------------| -| `np.add(arr,1)` | Add 1 to each array element | -| `np.subtract(arr,2)` | Subtract 2 from each array element | -| `np.multiply(arr,3)` | Multiply each array element by 3 | -| `np.divide(arr,4)` | Divide each array element by 4 (returns np.nan for division by zero) -| `np.power(arr,5)` | Raise each array element to the 5th power | - +| - | - | +| -------------------- | -------------------------------------------------------------------- | +| `np.add(arr,1)` | Add 1 to each array element | +| `np.subtract(arr,2)` | Subtract 2 from each array element | +| `np.multiply(arr,3)` | Multiply each array element by 3 | +| `np.divide(arr,4)` | Divide each array element by 4 (returns np.nan for division by zero) | +| `np.power(arr,5)` | Raise each array element to the 5th power | ### Statistics - | - | - | -|-----------------------|-------------------------------------------------| +| --------------------- | ----------------------------------------------- | | `np.mean(arr,axis=0)` | Returns mean along specific axis | | `arr.sum()` | Returns sum of arr | | `arr.min()` | Returns minimum value of arr | diff --git a/source/_posts/openssl.md b/source/_posts/openssl.md index e7ba48a..01632c8 100644 --- a/source/_posts/openssl.md +++ b/source/_posts/openssl.md @@ -5,11 +5,11 @@ icon: icon-style background: bg-emerald-600 tags: categories: -- Linux Command + - Linux Command intro: | - This is a reference of commands to use to interact with electronic certificates + This is a reference of commands to use to interact with electronic certificates plugins: -- copyCode + - copyCode --- ## Private Key {.cols-2} @@ -71,7 +71,7 @@ openssl x509 -noout -fingerprint -sha256 -in certificate.crt openssl x509 -in certificate.crt -noout -text|more ``` -### Print out specific fields of the certificates +### Print out specific fields of the certificates ```bash openssl x509 -noout -subject certificate.crt @@ -96,18 +96,23 @@ imap.arcor.de:993 2>/dev/null | openssl x509 -noout -text|more openssl verify -verbose -x509_strict -CAfile \ issuer.crt Test\ Haeschen\ 1.crt ``` + Result: + ```bash Test Haeschen 1.crt: OK ``` -**Corrupted** ([for example](https://security.stackexchange.com/questions/60804/creating-an-x-509-certificate-with-an-invalid-signature)) +**Corrupted** +([for example](https://security.stackexchange.com/questions/60804/creating-an-x-509-certificate-with-an-invalid-signature)) ```bash openssl verify -verbose -x509_strict -CAfile \ issuer.crt Test\ Haeschen\ 1_corrupted.crt ``` + Result: + ```bash C = DE, ST = Thueringen, L = Rudolstadt, O = Damaschkestr. 11, OU = Arbeitszimmer, CN = Test Haeschen 1 error 7 at 0 depth lookup: certificate signature failure @@ -127,14 +132,12 @@ openssl smime -sign -in msg.txt -text -out msg.p7s \ -signer certificate.crt -inkey privateKey.key ``` - ### Verify signature ```bash openssl smime -verify -in msg.p7s -CAfile chain.pem ``` - ## CRL {.cols-2} ### Print out the contents of the CRL @@ -152,7 +155,7 @@ openssl crl -inform PEM -noout -text -in crl/cacrl.pem openssl pkcs12 -info -in digitalIdentity.p12 ``` -### Create from certificate and private key +### Create from certificate and private key ```bash openssl pkcs12 -export -in certificate.cert \ @@ -168,7 +171,7 @@ openssl pkcs12 -in digitalIdentity.p12 -out privateKey.key ### Convert to PEM ```bash -openssl pkcs12 -in digitalIdentity.p12 -out digitalIdentity.pem +openssl pkcs12 -in digitalIdentity.p12 -out digitalIdentity.pem ``` ## TSA {.cols-2} @@ -233,6 +236,7 @@ openssl req -in my.csr -noout -text ## HTTPS {.cols-2} ### Dump Certificates PEM encoded + ```bash openssl s_client -showcerts -connect www.example.com:443 ``` @@ -240,6 +244,7 @@ openssl s_client -showcerts -connect www.example.com:443 ## STARTTLS {.cols-2} ### Dump Certificates PEM encoded + ```bash openssl s_client -showcerts -starttls imap \ -connect mail.domain.com:139 @@ -315,14 +320,14 @@ openssl asn1parse -dump -strictpem -in mysterious_file.pem ## Some resources with useful OpenSSL commands -* [OpenSSL command cheatsheet](https://www.freecodecamp.org/news/openssl-command-cheatsheet-b441be1e8c4a/) -* [21 OpenSSL Examples to Help You in Real-World](https://geekflare.com/openssl-commands-certificates/) -* [The Most Common OpenSSL Commands](https://www.sslshopper.com/article-most-common-openssl-commands.html) -* [OpenSSL Quick Reference Guide](https://www.digicert.com/ssl-support/openssl-quick-reference-guide.htm) -* [openssl_commands.md](https://gist.github.com/webtobesocial/5313b0d7abc25e06c2d78f8b767d4bc3) -* [OpenSSL Essentials: Working with SSL Certificates, Private Keys and CSRs](https://www.digitalocean.com/community/tutorials/openssl-essentials-working-with-ssl-certificates-private-keys-and-csrs) -* [OpenSSL tips and tricks](https://commandlinefanatic.com/cgi-bin/showarticle.cgi?article=art030) -* [Checking A Remote Certificate Chain With OpenSSL ](https://langui.sh/2009/03/14/checking-a-remote-certificate-chain-with-openssl/) -* [OpenSSL: how to extract certificates and token status from RFC3161 timestamping reply?](https://stackoverflow.com/questions/66044640/openssl-how-to-extract-certificates-and-token-status-from-rfc3161-timestamping) -* [Steps to generate CSR for SAN certificate with openssl](https://www.golinuxcloud.com/openssl-subject-alternative-name/) -* [Howto add a Subject Alternative Name extension into a Certificate Signing Request](https://support.microfocus.com/kb/doc.php?id=3522065) +- [OpenSSL command cheatsheet](https://www.freecodecamp.org/news/openssl-command-cheatsheet-b441be1e8c4a/) +- [21 OpenSSL Examples to Help You in Real-World](https://geekflare.com/openssl-commands-certificates/) +- [The Most Common OpenSSL Commands](https://www.sslshopper.com/article-most-common-openssl-commands.html) +- [OpenSSL Quick Reference Guide](https://www.digicert.com/ssl-support/openssl-quick-reference-guide.htm) +- [openssl_commands.md](https://gist.github.com/webtobesocial/5313b0d7abc25e06c2d78f8b767d4bc3) +- [OpenSSL Essentials: Working with SSL Certificates, Private Keys and CSRs](https://www.digitalocean.com/community/tutorials/openssl-essentials-working-with-ssl-certificates-private-keys-and-csrs) +- [OpenSSL tips and tricks](https://commandlinefanatic.com/cgi-bin/showarticle.cgi?article=art030) +- [Checking A Remote Certificate Chain With OpenSSL ](https://langui.sh/2009/03/14/checking-a-remote-certificate-chain-with-openssl/) +- [OpenSSL: how to extract certificates and token status from RFC3161 timestamping reply?](https://stackoverflow.com/questions/66044640/openssl-how-to-extract-certificates-and-token-status-from-rfc3161-timestamping) +- [Steps to generate CSR for SAN certificate with openssl](https://www.golinuxcloud.com/openssl-subject-alternative-name/) +- [Howto add a Subject Alternative Name extension into a Certificate Signing Request](https://support.microfocus.com/kb/doc.php?id=3522065) diff --git a/source/_posts/origami.md b/source/_posts/origami.md index 30aa31c..d99d375 100644 --- a/source/_posts/origami.md +++ b/source/_posts/origami.md @@ -3,137 +3,131 @@ title: Origami Studio date: 2022-11-23 16:23:31.695481 background: bg-[#4a8eee] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 71 keyboard shortcuts found in Origami Studio. This application is MacOS-only. + A visual cheat-sheet for the 71 keyboard shortcuts found in Origami Studio. This application is MacOS-only. --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General -Shortcut | Action ----|--- -`Opt` `Enter` | Insert patch -`Cmd` `Enter` | Insert layer -`Cmd` `/` | Documentation -{.shortcuts} +| Shortcut | Action | +| ------------- | ------------- | +| `Opt` `Enter` | Insert patch | +| `Cmd` `Enter` | Insert layer | +| `Cmd` `/` | Documentation | +{.shortcuts} ### Patches {.row-span-3} -Shortcut | Action ----|--- -`I` | Interaction -`S` | Switch -`A` | Pop animation -`C` | Classic animation -`T` | Transition -`K` | Keyboard -`D` | Delay -`Shift` `I` | Option switch -`O` | Option picker -`X` | Splitter -`W` | Wireless broadcaster -`Shift` `W` | Wireless receiver -`U` | Pulse -`+` | Add -`-` | Minus -`*` | Multiply -`/` | Divide -`%` | Modulus or remainder -`Shift` `A` | AND logic -`Shift` `O` | OR logic -`Shift` `N` | NOT logic -`E` | Equals -`>` | Greater than -`<` | Less than -`Shift` `R` | Progress -`R` | Reverse progress -{.shortcuts} +| Shortcut | Action | +| ----------- | -------------------- | +| `I` | Interaction | +| `S` | Switch | +| `A` | Pop animation | +| `C` | Classic animation | +| `T` | Transition | +| `K` | Keyboard | +| `D` | Delay | +| `Shift` `I` | Option switch | +| `O` | Option picker | +| `X` | Splitter | +| `W` | Wireless broadcaster | +| `Shift` `W` | Wireless receiver | +| `U` | Pulse | +| `+` | Add | +| `-` | Minus | +| `*` | Multiply | +| `/` | Divide | +| `%` | Modulus or remainder | +| `Shift` `A` | AND logic | +| `Shift` `O` | OR logic | +| `Shift` `N` | NOT logic | +| `E` | Equals | +| `>` | Greater than | +| `<` | Less than | +| `Shift` `R` | Progress | +| `R` | Reverse progress | +{.shortcuts} ### Organizing Patches -Shortcut | Action ----|--- -`Shift` `Enter` | Rename patch -`Cmd` `[` | Align patches left -`Cmd` `]` | Align patches right -`Cmd` `Shift` `[` | Align patches top -`Cmd` `Shift` `]` | Align patches bottom -`Opt` `Ctrl` `C` | Insert comment around patches -`Cmd` `Ctrl` `G` | Create patch component -`Opt` `P` | Publish input or output port -`Opt` `Down` | Enter patch component -`Opt` `Up` | Exit patch component -`Cmd` `Shift` `I` | Patch info -`Cmd` `Opt` `L` | Add patch component to user library -`Cmd` `Opt` `Shift` `L` | Add patch component to other library -{.shortcuts} +| Shortcut | Action | +| ----------------------- | ------------------------------------ | +| `Shift` `Enter` | Rename patch | +| `Cmd` `[` | Align patches left | +| `Cmd` `]` | Align patches right | +| `Cmd` `Shift` `[` | Align patches top | +| `Cmd` `Shift` `]` | Align patches bottom | +| `Opt` `Ctrl` `C` | Insert comment around patches | +| `Cmd` `Ctrl` `G` | Create patch component | +| `Opt` `P` | Publish input or output port | +| `Opt` `Down` | Enter patch component | +| `Opt` `Up` | Exit patch component | +| `Cmd` `Shift` `I` | Patch info | +| `Cmd` `Opt` `L` | Add patch component to user library | +| `Cmd` `Opt` `Shift` `L` | Add patch component to other library | +{.shortcuts} ### Layers {.row-span-2} -Shortcut | Action ----|--- -`Shift` `Enter` | Rename layer -`Cmd` `Shift` `H` | Hide or show layer -`Cmd` `Shift` `L` | Lock or unlock layer -`Cmd` `Opt` `Up` | Bring forward -`Cmd` `Opt` `Down` | Send backwards -`Cmd` `Opt` `Shift` `Up` | Bring to front -`Cmd` `Opt` `Shift` `Down` | Send to back -`Cmd` `Opt` `M` | Mask layer -`Cmd` `Opt` `Shift` `M` | Add to mask -`Cmd` `G` | Group layers -`Cmd` `Shift` `G` | Ungroup layers -`Cmd` `Ctrl` `G` | Create layer component -`Opt` `Down` | Enter component -`Opt` `Up` | Exit component -`Cmd` `Shift` `I` | Layer info -`Cmd` `Opt` `L` | Add layer to user library -`Cmd` `Opt` `Shift` `L` | Add layer to other library -{.shortcuts} +| Shortcut | Action | +| -------------------------- | -------------------------- | +| `Shift` `Enter` | Rename layer | +| `Cmd` `Shift` `H` | Hide or show layer | +| `Cmd` `Shift` `L` | Lock or unlock layer | +| `Cmd` `Opt` `Up` | Bring forward | +| `Cmd` `Opt` `Down` | Send backwards | +| `Cmd` `Opt` `Shift` `Up` | Bring to front | +| `Cmd` `Opt` `Shift` `Down` | Send to back | +| `Cmd` `Opt` `M` | Mask layer | +| `Cmd` `Opt` `Shift` `M` | Add to mask | +| `Cmd` `G` | Group layers | +| `Cmd` `Shift` `G` | Ungroup layers | +| `Cmd` `Ctrl` `G` | Create layer component | +| `Opt` `Down` | Enter component | +| `Opt` `Up` | Exit component | +| `Cmd` `Shift` `I` | Layer info | +| `Cmd` `Opt` `L` | Add layer to user library | +| `Cmd` `Opt` `Shift` `L` | Add layer to other library | +{.shortcuts} ### Viewer -Shortcut | Action ----|--- -`Cmd` `R` | Restart prototype -`Opt` `D` | Toggle device -`Opt` `H` | Toggle hand -`Cmd` `Opt` `F` | Mini viewer -`Cmd` `Shift` `F` | Fullscreen viewer -`Cmd` `Opt` `0` | 1:1 viewer -{.shortcuts} +| Shortcut | Action | +| ----------------- | ----------------- | +| `Cmd` `R` | Restart prototype | +| `Opt` `D` | Toggle device | +| `Opt` `H` | Toggle hand | +| `Cmd` `Opt` `F` | Mini viewer | +| `Cmd` `Shift` `F` | Fullscreen viewer | +| `Cmd` `Opt` `0` | 1:1 viewer | +{.shortcuts} ### Number Inputs -Shortcut | Action ----|--- -`Up` | Increase number by one -`Down` | Decrease number by one -`Shift` `Up` | Increase number by 10 -`Shift` `Down` | Decrease number by 10 -`Opt` `Up` | Increase number by 0.1 -`Opt` `Down` | Decrease number by 0.1 +| Shortcut | Action | +| -------------- | ---------------------- | +| `Up` | Increase number by one | +| `Down` | Decrease number by one | +| `Shift` `Up` | Increase number by 10 | +| `Shift` `Down` | Decrease number by 10 | +| `Opt` `Up` | Increase number by 0.1 | +| `Opt` `Down` | Decrease number by 0.1 | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Origami Studio](https://origami.design/documentation/workflow/KeyboardShortcuts.html) _(origami.design)_ +- [Keyboard shortcuts for Origami Studio](https://origami.design/documentation/workflow/KeyboardShortcuts.html) + _(origami.design)_ diff --git a/source/_posts/outlook.md b/source/_posts/outlook.md index 1115077..cb77356 100644 --- a/source/_posts/outlook.md +++ b/source/_posts/outlook.md @@ -2,361 +2,355 @@ title: Microsoft Outlook date: 2022-11-23 16:23:31.698084 background: bg-[#3a7cd1] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 210 keyboard shortcuts found in Microsoft Outlook + A visual cheat-sheet for the 210 keyboard shortcuts found in Microsoft Outlook --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Frequently used -Shortcut | Action ----|--- -`Esc` | Close -`Alt` `H` | Go to Home tab -`Ctrl` `Shift` `M` | New message -`Alt` `S` | Send -`Alt` `N` | Insert file -`Ctrl` `Shift` `K` | New task -`Delete` | Delete -`Ctrl` `E` | Search -`Ctrl` `R` | Reply -`Ctrl` `F` | Forward -`Ctrl` `Shift` `R` | Reply all -`Ctrl` `C` | Copy -`Alt` `S` | Send/Receive -`Ctrl` `2` | Go to calendar -`Ctrl` `Shift` `A` | Create appointment -`Alt` `H` `M, V` | Move to folder -`Alt` `J` `A` | Attachment Save As -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------ | +| `Esc` | Close | +| `Alt` `H` | Go to Home tab | +| `Ctrl` `Shift` `M` | New message | +| `Alt` `S` | Send | +| `Alt` `N` | Insert file | +| `Ctrl` `Shift` `K` | New task | +| `Delete` | Delete | +| `Ctrl` `E` | Search | +| `Ctrl` `R` | Reply | +| `Ctrl` `F` | Forward | +| `Ctrl` `Shift` `R` | Reply all | +| `Ctrl` `C` | Copy | +| `Alt` `S` | Send/Receive | +| `Ctrl` `2` | Go to calendar | +| `Ctrl` `Shift` `A` | Create appointment | +| `Alt` `H` `M, V` | Move to folder | +| `Alt` `J` `A` | Attachment Save As | +{.shortcuts} ### Basic navigation -Shortcut | Action ----|--- -`Ctrl` `1` | Switch to Mail view -`Ctrl` `2` | Switch to Calendar view -`Ctrl` `3` | Switch to Contacts view -`Ctrl` `4` | Switch to Tasks view -`Ctrl` `5` | Switch to Notes -`Ctrl` `6` | Switch to Folders list in the Folder pane -`Ctrl` `7` | Switch to Shortcuts -`Ctrl` `.` | Switch to next open message -`Ctrl` `,` | Switch to previous open message -`Ctrl` `Shift` `Tab` | Move between Folder/Outlook/Reading/To-Do -`Ctrl` `Tab` | Move around message header lines in the Folder pane -`Arrows` | Move around within the Folder pane -`Ctrl` `Y` | Go to a different folder -`Ctrl` `E` | Go to the Search box -`Alt` `Up` | In the Reading pane, go to the previous message -`Space` | In the Reading pane, page down through text -`Shift` `Space` | In the Reading pane, page up through text -`Left/Right` | Collapse or expand a group in the email message list -`Alt` `B/Left` | Go back to previous view in the main Outlook window -`Alt` `Right` | Go forward to next view in the main Outlook window -`Ctrl` `Shift` `W` | Select the InfoBar and, if available, show menu of commands -{.shortcuts} +| Shortcut | Action | +| -------------------- | ----------------------------------------------------------- | +| `Ctrl` `1` | Switch to Mail view | +| `Ctrl` `2` | Switch to Calendar view | +| `Ctrl` `3` | Switch to Contacts view | +| `Ctrl` `4` | Switch to Tasks view | +| `Ctrl` `5` | Switch to Notes | +| `Ctrl` `6` | Switch to Folders list in the Folder pane | +| `Ctrl` `7` | Switch to Shortcuts | +| `Ctrl` `.` | Switch to next open message | +| `Ctrl` `,` | Switch to previous open message | +| `Ctrl` `Shift` `Tab` | Move between Folder/Outlook/Reading/To-Do | +| `Ctrl` `Tab` | Move around message header lines in the Folder pane | +| `Arrows` | Move around within the Folder pane | +| `Ctrl` `Y` | Go to a different folder | +| `Ctrl` `E` | Go to the Search box | +| `Alt` `Up` | In the Reading pane, go to the previous message | +| `Space` | In the Reading pane, page down through text | +| `Shift` `Space` | In the Reading pane, page up through text | +| `Left/Right` | Collapse or expand a group in the email message list | +| `Alt` `B/Left` | Go back to previous view in the main Outlook window | +| `Alt` `Right` | Go forward to next view in the main Outlook window | +| `Ctrl` `Shift` `W` | Select the InfoBar and, if available, show menu of commands | +{.shortcuts} ### Search -Shortcut | Action ----|--- -`Ctrl` `E` | Find a message or other item -`Esc` | Clear the search results -`Ctrl` `Alt` `A` | Expand the search to include all items in module you are in -`Ctrl` `Shift` `F` | Use Advanced Find -`Ctrl` `Shift` `P` | Create a Search folder -`F4` | Search for text within an open item -`Ctrl` `H` | Find and replace text/symbols in Reading pane -`Ctrl` `Alt` `K` | Expand search to include items from the current folder -`Ctrl` `Alt` `Z` | Expand search to include subfolders -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------------------------------------------- | +| `Ctrl` `E` | Find a message or other item | +| `Esc` | Clear the search results | +| `Ctrl` `Alt` `A` | Expand the search to include all items in module you are in | +| `Ctrl` `Shift` `F` | Use Advanced Find | +| `Ctrl` `Shift` `P` | Create a Search folder | +| `F4` | Search for text within an open item | +| `Ctrl` `H` | Find and replace text/symbols in Reading pane | +| `Ctrl` `Alt` `K` | Expand search to include items from the current folder | +| `Ctrl` `Alt` `Z` | Expand search to include subfolders | +{.shortcuts} ### Create an item or file -Shortcut | Action ----|--- -`Ctrl` `Shift` `A` | Create an appointment -`Ctrl` `Shift` `C` | Create a contact -`Ctrl` `Shift` `L` | Create a contact group -`Ctrl` `Shift` `X` | Create a fax -`Ctrl` `Shift` `E` | Create a folder -`Ctrl` `Shift` `Q` | Create a meeting request -`Ctrl` `Shift` `M` | Create a message -`Ctrl` `Shift` `N` | Create a note -`Ctrl` `Shift` `H` | Create an Office document -`Ctrl` `Shift` `S` | Post to the selected folder -`Ctrl` `T` | Post a reply in the selected folder -`Ctrl` `Shift` `P` | Create a Search folder -`Ctrl` `Shift` `K` | Create a task -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------------------- | +| `Ctrl` `Shift` `A` | Create an appointment | +| `Ctrl` `Shift` `C` | Create a contact | +| `Ctrl` `Shift` `L` | Create a contact group | +| `Ctrl` `Shift` `X` | Create a fax | +| `Ctrl` `Shift` `E` | Create a folder | +| `Ctrl` `Shift` `Q` | Create a meeting request | +| `Ctrl` `Shift` `M` | Create a message | +| `Ctrl` `Shift` `N` | Create a note | +| `Ctrl` `Shift` `H` | Create an Office document | +| `Ctrl` `Shift` `S` | Post to the selected folder | +| `Ctrl` `T` | Post a reply in the selected folder | +| `Ctrl` `Shift` `P` | Create a Search folder | +| `Ctrl` `Shift` `K` | Create a task | +{.shortcuts} ### Commands in most views -Shortcut | Action ----|--- -`Ctrl` `S` | Save (except in Tasks view) -`Alt` `S` | Save and close (except in Mail view) -`F12` | Save as (only in Mail view) -`Ctrl` `Z` | Undo -`Ctrl` `D` | Delete an item -`Ctrl` `P` | Print -`Ctrl` `Shift` `Y` | Copy an item -`Ctrl` `Shift` `V` | Move an item -`Ctrl` `K` | Check names -`F7` | Check spelling -`Ctrl` `Shift` `G` | Flag for follow-up -`Ctrl` `F` | Forward -`Alt` `S` | Send or post or invite all -`F2` | Enable editing in a field, all views except Mail/Icon -`Ctrl` `L` | Left align text -`Ctrl` `E` | Center text -`Ctrl` `R` | Right align text -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------------------------------------- | +| `Ctrl` `S` | Save (except in Tasks view) | +| `Alt` `S` | Save and close (except in Mail view) | +| `F12` | Save as (only in Mail view) | +| `Ctrl` `Z` | Undo | +| `Ctrl` `D` | Delete an item | +| `Ctrl` `P` | Print | +| `Ctrl` `Shift` `Y` | Copy an item | +| `Ctrl` `Shift` `V` | Move an item | +| `Ctrl` `K` | Check names | +| `F7` | Check spelling | +| `Ctrl` `Shift` `G` | Flag for follow-up | +| `Ctrl` `F` | Forward | +| `Alt` `S` | Send or post or invite all | +| `F2` | Enable editing in a field, all views except Mail/Icon | +| `Ctrl` `L` | Left align text | +| `Ctrl` `E` | Center text | +| `Ctrl` `R` | Right align text | +{.shortcuts} ### Mail {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `Shift` `I` | Switch to Inbox -`Ctrl` `Shift` `O` | Switch to Outbox -`Ctrl` `K` | Check names -`Alt` `S` | Send -`Ctrl` `R` | Reply to a message -`Ctrl` `Shift` `R` | Replay All to a message -`Ctrl` `Alt` `R` | Reply with meeting request -`Ctrl` `F` | Forward a message -`Ctrl` `Alt` `J` | Mark a message as not junk -`Ctrl` `Shift` `I` | Display blocked external content -`Ctrl` `Shift` `S` | Post to a folder -`Ctrl` `Shift` `N` | Apply Normal style -`Ctrl` `M` | Check for new messages -`Up` | Go to the previous message -`Down` | Go to next message -`Ctrl` `N` | Create a message (in Mail view) -`Ctrl` `Shift` `M` | Create a message (from any Outlook view) -`Ctrl` `O` | Open a received message -`Ctrl` `Shift` `D` | Delete and ignore a conversation -`Ctrl` `Shift` `B` | Open the Address Book -`Insert` | Add a Quick flag to an unopened message -`Ctrl` `Shift` `G` | Display the Flag for follow up dialog box -`Ctrl` `Q` | Mark as read -`Ctrl` `U` | Mark as unread -`Ctrl` `Shift` `W` | Open the MailTip in the selected message -`F4` | Find or replace -`Shift` `F4` | Find next -`Ctrl` `Enter` | Send -`Ctrl` `P` | Print -`Ctrl` `F` | Forward -`Ctrl` `Alt` `F` | Forward as attachment -`Alt` `Enter` | Show the properties for the selected item -`Ctrl` `Alt` `M` | Mark for download -`Ctrl` `Alt` `U` | Check Mark for download status -`Ctrl` `B` | Display Send/Receive progress -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------------------------- | +| `Ctrl` `Shift` `I` | Switch to Inbox | +| `Ctrl` `Shift` `O` | Switch to Outbox | +| `Ctrl` `K` | Check names | +| `Alt` `S` | Send | +| `Ctrl` `R` | Reply to a message | +| `Ctrl` `Shift` `R` | Replay All to a message | +| `Ctrl` `Alt` `R` | Reply with meeting request | +| `Ctrl` `F` | Forward a message | +| `Ctrl` `Alt` `J` | Mark a message as not junk | +| `Ctrl` `Shift` `I` | Display blocked external content | +| `Ctrl` `Shift` `S` | Post to a folder | +| `Ctrl` `Shift` `N` | Apply Normal style | +| `Ctrl` `M` | Check for new messages | +| `Up` | Go to the previous message | +| `Down` | Go to next message | +| `Ctrl` `N` | Create a message (in Mail view) | +| `Ctrl` `Shift` `M` | Create a message (from any Outlook view) | +| `Ctrl` `O` | Open a received message | +| `Ctrl` `Shift` `D` | Delete and ignore a conversation | +| `Ctrl` `Shift` `B` | Open the Address Book | +| `Insert` | Add a Quick flag to an unopened message | +| `Ctrl` `Shift` `G` | Display the Flag for follow up dialog box | +| `Ctrl` `Q` | Mark as read | +| `Ctrl` `U` | Mark as unread | +| `Ctrl` `Shift` `W` | Open the MailTip in the selected message | +| `F4` | Find or replace | +| `Shift` `F4` | Find next | +| `Ctrl` `Enter` | Send | +| `Ctrl` `P` | Print | +| `Ctrl` `F` | Forward | +| `Ctrl` `Alt` `F` | Forward as attachment | +| `Alt` `Enter` | Show the properties for the selected item | +| `Ctrl` `Alt` `M` | Mark for download | +| `Ctrl` `Alt` `U` | Check Mark for download status | +| `Ctrl` `B` | Display Send/Receive progress | +{.shortcuts} ### Calendar -Shortcut | Action ----|--- -`Ctrl` `N` | Create an appointment -`Ctrl` `Shift` `A` | Create an appointment (any Outlook view) -`Ctrl` `Shift` `Q` | Create a meeting request -`Alt` `1-0` | Show 1-10 days in the calendar -`Ctrl` `G` | Go to a date -`Alt` `=` | Switch to Month view -`Ctrl` `Right` | Go to the next day -`Alt` `Down` | Go to the next week -`Alt` `PgDown` | Go to the next month -`Ctrl` `Left` | Go to the previous day -`Alt` `Up` | Go to the previous week -`Alt` `PgUp` | Go to the previous month -`Alt` `Home` | Go to the start of the week -`Alt` `End` | Go to the end of the week -`Alt` `-` | Switch to Full Week view -`Ctrl` `Alt` `2` | Switch to Work Week view -`Ctrl` `,` | Go to previous appointment -`Ctrl` `.` | Go to next appointment -`Ctrl` `G` | Set up recurrence for an open appointment or meeting -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------------------------------------- | +| `Ctrl` `N` | Create an appointment | +| `Ctrl` `Shift` `A` | Create an appointment (any Outlook view) | +| `Ctrl` `Shift` `Q` | Create a meeting request | +| `Alt` `1-0` | Show 1-10 days in the calendar | +| `Ctrl` `G` | Go to a date | +| `Alt` `=` | Switch to Month view | +| `Ctrl` `Right` | Go to the next day | +| `Alt` `Down` | Go to the next week | +| `Alt` `PgDown` | Go to the next month | +| `Ctrl` `Left` | Go to the previous day | +| `Alt` `Up` | Go to the previous week | +| `Alt` `PgUp` | Go to the previous month | +| `Alt` `Home` | Go to the start of the week | +| `Alt` `End` | Go to the end of the week | +| `Alt` `-` | Switch to Full Week view | +| `Ctrl` `Alt` `2` | Switch to Work Week view | +| `Ctrl` `,` | Go to previous appointment | +| `Ctrl` `.` | Go to next appointment | +| `Ctrl` `G` | Set up recurrence for an open appointment or meeting | +{.shortcuts} ### People -Shortcut | Action ----|--- -`Ctrl` `Shift` `D` | Dial a new call -`F3` | Find a contact or other item -`F11` | Enter a name in the Search Address Books box -`Shift` `(letter)` | In Table or List view of contacts, go to first contact with letter -`Ctrl` `A` | Select all contacts -`Ctrl` `F` | Create a message with selected contact as subject -`Ctrl` `N` | Create a contact (when in Contacts) -`Ctrl` `Shift` `C` | Create a contact (any Outlook view) -`Ctrl` `O` | Open a contact form for the selected contact -`Ctrl` `Shift` `L` | Create a contact group -`Ctrl` `P` | Print -`F5` | Update a list of contact group members -`Ctrl` `Y` | Go to a different folder -`Ctrl` `Shift` `B` | Open the Address Book -`Ctrl` `Shift` `F` | Use Advanced Find -`Ctrl` `Shift` `.` | In an open contact, open the next contact listed -`F11` | Find a contact -`Esc` | Close a contact -`Ctrl` `Shift` `X` | Send a fax to the selected contact -`Alt` `D` | Open the Check Address dialog box -`Alt` `Shift` `1-3` | In contact form, display Email 1-3 -{.shortcuts} +| Shortcut | Action | +| ------------------- | ------------------------------------------------------------------ | +| `Ctrl` `Shift` `D` | Dial a new call | +| `F3` | Find a contact or other item | +| `F11` | Enter a name in the Search Address Books box | +| `Shift` `(letter)` | In Table or List view of contacts, go to first contact with letter | +| `Ctrl` `A` | Select all contacts | +| `Ctrl` `F` | Create a message with selected contact as subject | +| `Ctrl` `N` | Create a contact (when in Contacts) | +| `Ctrl` `Shift` `C` | Create a contact (any Outlook view) | +| `Ctrl` `O` | Open a contact form for the selected contact | +| `Ctrl` `Shift` `L` | Create a contact group | +| `Ctrl` `P` | Print | +| `F5` | Update a list of contact group members | +| `Ctrl` `Y` | Go to a different folder | +| `Ctrl` `Shift` `B` | Open the Address Book | +| `Ctrl` `Shift` `F` | Use Advanced Find | +| `Ctrl` `Shift` `.` | In an open contact, open the next contact listed | +| `F11` | Find a contact | +| `Esc` | Close a contact | +| `Ctrl` `Shift` `X` | Send a fax to the selected contact | +| `Alt` `D` | Open the Check Address dialog box | +| `Alt` `Shift` `1-3` | In contact form, display Email 1-3 | +{.shortcuts} ### Tasks {.row-span-3} -Shortcut | Action ----|--- -`Ctrl` `C` | Accept a task request -`Ctrl` `D` | Decline a task request -`Ctrl` `E` | Find a task or other item -`Ctrl` `Y` | Open the Go to Folder dialog box -`Ctrl` `N` | Create a task when in Tasks view -`Ctrl` `Shift` `K` | Create a task (any Outlook view) -`Ctrl` `O` | Open selected item -`Ctrl` `P` | Print selected item -`Ctrl` `A` | Select all items -`Ctrl` `D` | Delete selected item -`Ctrl` `F` | Forward a task as an attachment -`Ctrl` `Shift` `Alt` `U` | Create a task request -`Tab` | Switch between Folder/Tasks/To-Do -`Ctrl` `Z` | Undo last action -`Insert` | Flag an item or mark complete -{.shortcuts} +| Shortcut | Action | +| ------------------------ | --------------------------------- | +| `Ctrl` `C` | Accept a task request | +| `Ctrl` `D` | Decline a task request | +| `Ctrl` `E` | Find a task or other item | +| `Ctrl` `Y` | Open the Go to Folder dialog box | +| `Ctrl` `N` | Create a task when in Tasks view | +| `Ctrl` `Shift` `K` | Create a task (any Outlook view) | +| `Ctrl` `O` | Open selected item | +| `Ctrl` `P` | Print selected item | +| `Ctrl` `A` | Select all items | +| `Ctrl` `D` | Delete selected item | +| `Ctrl` `F` | Forward a task as an attachment | +| `Ctrl` `Shift` `Alt` `U` | Create a task request | +| `Tab` | Switch between Folder/Tasks/To-Do | +| `Ctrl` `Z` | Undo last action | +| `Insert` | Flag an item or mark complete | +{.shortcuts} ### Format text {.row-span-4} -Shortcut | Action ----|--- -`Alt` `O` | Display the Format menu -`Ctrl` `Shift` `P` | Display the Font dialog box -`Shift` `F3` | Switch case (with text selected) -`Ctrl` `Shift` `K` | Format letters as small capitals -`Ctrl` `B` | Make letters bold -`Ctrl` `Shift` `L` | Add bullets -`Ctrl` `I` | Make letters italic -`Ctrl` `T` | Increase indent -`Ctrl` `Shift` `T` | Decrease indent -`Ctrl` `L` | Left align -`Ctrl` `E` | Center -`Ctrl` `U` | Underline -`Ctrl` `]` | Increase font size -`Ctrl` `[` | Decrease font size -`Ctrl` `X` | Cut -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `Shift` `Z` | Clear formatting -`Ctrl` `Shift` `H` | Delete the next word -`Ctrl` `Shift` `J` | Justify text -`Ctrl` `Shift` `S` | Apply styles -`Ctrl` `T` | Create a hanging indent -`Ctrl` `K` | Insert a hyperlink -`Ctrl` `L` | Left align a paragraph -`Ctrl` `R` | Right align a paragraph -`Ctrl` `Shift` `T` | Reduce a hanging indent -`Ctrl` `Q` | Remove paragraph formatting -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------------------------- | +| `Alt` `O` | Display the Format menu | +| `Ctrl` `Shift` `P` | Display the Font dialog box | +| `Shift` `F3` | Switch case (with text selected) | +| `Ctrl` `Shift` `K` | Format letters as small capitals | +| `Ctrl` `B` | Make letters bold | +| `Ctrl` `Shift` `L` | Add bullets | +| `Ctrl` `I` | Make letters italic | +| `Ctrl` `T` | Increase indent | +| `Ctrl` `Shift` `T` | Decrease indent | +| `Ctrl` `L` | Left align | +| `Ctrl` `E` | Center | +| `Ctrl` `U` | Underline | +| `Ctrl` `]` | Increase font size | +| `Ctrl` `[` | Decrease font size | +| `Ctrl` `X` | Cut | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `Shift` `Z` | Clear formatting | +| `Ctrl` `Shift` `H` | Delete the next word | +| `Ctrl` `Shift` `J` | Justify text | +| `Ctrl` `Shift` `S` | Apply styles | +| `Ctrl` `T` | Create a hanging indent | +| `Ctrl` `K` | Insert a hyperlink | +| `Ctrl` `L` | Left align a paragraph | +| `Ctrl` `R` | Right align a paragraph | +| `Ctrl` `Shift` `T` | Reduce a hanging indent | +| `Ctrl` `Q` | Remove paragraph formatting | +{.shortcuts} ### Add web information to items -Shortcut | Action ----|--- -`Ctrl` `K` | Insert or edit a hyperlink in the body of an item -{.shortcuts} +| Shortcut | Action | +| ---------- | ------------------------------------------------- | +| `Ctrl` `K` | Insert or edit a hyperlink in the body of an item | +{.shortcuts} ### Printing -Shortcut | Action ----|--- -`Alt` `F, P` | Open the Print tab in Backstage view -`Alt` `F, P, F` | Print an item from an open window -`Alt` `S` | Open the Page Setup dialog box from Print view -`Alt` `F, P, I` | Select a printer from Print view -`Alt` `F, P, R` | Open the Print Options dialog box -{.shortcuts} +| Shortcut | Action | +| --------------- | ---------------------------------------------- | +| `Alt` `F, P` | Open the Print tab in Backstage view | +| `Alt` `F, P, F` | Print an item from an open window | +| `Alt` `S` | Open the Page Setup dialog box from Print view | +| `Alt` `F, P, I` | Select a printer from Print view | +| `Alt` `F, P, R` | Open the Print Options dialog box | +{.shortcuts} ### Send/Receive -Shortcut | Action ----|--- -`F9` | Start a send/receive for all defined groups -`Shift` `F9` | Start a send/receive for the current folder -`Ctrl` `M` | Start a send/receive -`Ctrl` `Alt` `S` | Define Send/Receive groups -{.shortcuts} +| Shortcut | Action | +| ---------------- | ------------------------------------------- | +| `F9` | Start a send/receive for all defined groups | +| `Shift` `F9` | Start a send/receive for the current folder | +| `Ctrl` `M` | Start a send/receive | +| `Ctrl` `Alt` `S` | Define Send/Receive groups | +{.shortcuts} ### Visual Basic Editor -Shortcut | Action ----|--- -`Alt` `F11` | Open Visual Basic Editor -{.shortcuts} +| Shortcut | Action | +| ----------- | ------------------------ | +| `Alt` `F11` | Open Visual Basic Editor | +{.shortcuts} ### Macros -Shortcut | Action ----|--- -`Alt` `F8` | Play macro -{.shortcuts} +| Shortcut | Action | +| ---------- | ---------- | +| `Alt` `F8` | Play macro | +{.shortcuts} ### Forms -Shortcut | Action ----|--- -`Ctrl` `N` | Create an InfoPath form -`Ctrl` `Shift` `Alt` `T` | Close an InfoPath form +| Shortcut | Action | +| ------------------------ | ----------------------- | +| `Ctrl` `N` | Create an InfoPath form | +| `Ctrl` `Shift` `Alt` `T` | Close an InfoPath form | + {.shortcuts} - - ### Flags -Shortcut | Action ----|--- -`Ctrl` `Shift` `G` | Open the Flag for Follow Up dialog box -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------------------------------- | +| `Ctrl` `Shift` `G` | Open the Flag for Follow Up dialog box | +{.shortcuts} ### Color categories -Shortcut | Action ----|--- -`Alt` `D` | Delete the selected category from the list in the Color categories box +| Shortcut | Action | +| --------- | ---------------------------------------------------------------------- | +| `Alt` `D` | Delete the selected category from the list in the Color categories box | + {.shortcuts} +## Also see - -Also see --------- -- [Keyboard shortcuts for Microsoft Outlook](https://support.office.com/en-us/article/keyboard-shortcuts-for-outlook-3cdeb221-7ae5-4c1d-8c1d-9e63216c1efd) _(support.office.com)_ +- [Keyboard shortcuts for Microsoft Outlook](https://support.office.com/en-us/article/keyboard-shortcuts-for-outlook-3cdeb221-7ae5-4c1d-8c1d-9e63216c1efd) + _(support.office.com)_ diff --git a/source/_posts/pandoc.md b/source/_posts/pandoc.md index 0c70fd5..9dd026d 100644 --- a/source/_posts/pandoc.md +++ b/source/_posts/pandoc.md @@ -3,62 +3,59 @@ title: Pandoc date: 2023-03-21 13:26:00 background: bg-red-400 tags: - - convert - - document - - utility + - convert + - document + - utility categories: - - Linux Command + - Linux Command intro: | - [Pandoc](https://pandoc.org) is a document converter, this pandoc cheat sheet contains pandoc commands and some common pandoc tricks. + [Pandoc](https://pandoc.org) is a document converter, this pandoc cheat sheet contains pandoc commands and some common pandoc tricks. plugins: - - copyCode + - copyCode --- -Getting Started ---------------- +## Getting Started ### Pandoc Usage Syntax + ```shell script $ pandoc -s [source file] -o [output file] ``` - -Pandoc examples ----------- - +## Pandoc examples ### LaTeX to MS Word {.col-span-2} Simple .tex to .docx + ```shell script $ pandoc -s file.tex -o file.docx ``` .tex to .docx with default citations + ```shell script $ pandoc -s file.tex --citeproc --bibliography=bib_library.bib -o file.docx ``` .tex to .docx with specific citations + ```shell script $ pandoc -s file.tex --citeproc --bibliography=bib_library.bib --csl=apa.csl -o file.docx ``` + Get `.csl` file from [here](https://github.com/citation-style-language/styles) .tex to .docx with cross references + ```shell script $ pandoc -s file.tex --filter pandoc-crossref -o file.docx ``` + Get the filter `pandoc-crossref` from [here](https://github.com/lierdakil/pandoc-crossref/releases) +## Also see {.cols-1} - - - -Also see {.cols-1} ----------- - [pandoc examples](https://pandoc.org/demos.html) - - diff --git a/source/_posts/php.md b/source/_posts/php.md index d45ca5b..35cb754 100644 --- a/source/_posts/php.md +++ b/source/_posts/php.md @@ -3,21 +3,19 @@ title: PHP date: 2021-01-04 15:23:28 background: bg-[#7477a9] tags: - - web + - web categories: - - Programming + - Programming intro: | - This [PHP](https://www.php.net/manual/en/) cheat sheet provides a reference for quickly looking up the correct syntax for the code you use most frequently. + This [PHP](https://www.php.net/manual/en/) cheat sheet provides a reference for quickly looking up the correct syntax for the code you use most frequently. plugins: - - copyCode + - copyCode --- - -Getting Started ---------------- - +## Getting Started ### hello.php + ```php ``` + PHP run command + ```shell script $ php hello.php ``` - - ### Variables + ```php $boolean1 = true; $boolean2 = True; @@ -45,12 +44,11 @@ unset($float); // Delete variable $str1 = "How are you?"; $str2 = 'Fine, thanks'; ``` + See: [Types](#php-types) - - - ### Strings + ```php $url = "cheatsheets.zip"; echo "I'm learning PHP at $url"; @@ -62,12 +60,11 @@ $hello = "Hello, "; $hello .= "World!"; echo $hello; # => Hello, World! ``` + See: [Strings](#php-strings) - - - ### Arrays + ```php $num = [1, 3, 5, 7, 9]; $num[5] = 11; @@ -75,11 +72,11 @@ unset($num[2]); // Delete variable print_r($num); # => 1 3 7 9 11 echo count($num); # => 5 ``` + See: [Arrays](#php-arrays) - - ### Operators + ```php $x = 1; $y = 2; @@ -87,11 +84,13 @@ $y = 2; $sum = $x + $y; echo $sum; # => 3 ``` + See: [Operators](#php-operators) - ### Include {.row-span-3} + #### vars.php + ```php ``` + #### test.php + ```php Anything you like. ?> ``` - - ### Functions + ```php function add($num1, $num2 = 1) { return $num1 + $num2; @@ -132,12 +132,11 @@ function add($num1, $num2 = 1) { echo add(10); # => 11 echo add(10, 5); # => 15 ``` + See: [Functions](#php-functions) +### Comments - - -### Comments ```php # This is a one line shell-style comment @@ -147,23 +146,19 @@ See: [Functions](#php-functions) yet another line of comment */ ``` - - ### Constants + ```php const MY_CONST = "hello"; echo MY_CONST; # => hello # => MY_CONST is: hello -echo 'MY_CONST is: ' . MY_CONST; +echo 'MY_CONST is: ' . MY_CONST; ``` - - - - ### Classes + ```php class Student { public function __construct($name) { @@ -172,17 +167,13 @@ class Student { } $alex = new Student("Alex"); ``` + See: [Classes](#php-classes) - - - - -PHP Types ---------------- - +## PHP Types ### Boolean {.row-span-2} + ```php $boolean1 = true; $boolean2 = TRUE; @@ -192,12 +183,11 @@ $boolean4 = FALSE; $boolean5 = (boolean) 1; # => true $boolean6 = (boolean) 0; # => false ``` + Boolean are case-insensitive - - - ### Integer {.row-span-2} + ```php $int1 = 28; # => 28 $int2 = -32; # => -32 @@ -208,23 +198,27 @@ $int5 = 0b101; # => 5 (binary) # => 2000100000 (decimal, PHP 7.4.0) $int6 = 2_000_100_000; ``` + See also: [Integers](https://www.php.net/manual/en/language.types.integer.php) - ### Strings + ```php echo 'this is a simple string'; ``` + See: [Strings](#php-strings) ### Arrays + ```php $arr = array("hello", "world", "!"); ``` + See: [Arrays](#php-arrays) - ### Float (Double) + ```php $float1 = 1.234; $float2 = 1.2e7; @@ -237,9 +231,8 @@ $float5 = 1 + "10.5"; # => 11.5 $float6 = 1 + "-1.3e3"; # => -1299 ``` - - ### Null + ```php $a = null; $b = 'Hello php!'; @@ -252,8 +245,8 @@ $a === null # => false is_null($a) # => false ``` - ### Iterables + ```php function bar(): iterable { return [1, 2, 3]; @@ -265,16 +258,13 @@ function gen(): iterable { } foreach (bar() as $value) { echo $value; # => 123 -} +} ``` - -PHP Strings ---------------- - - +## PHP Strings ### String + ```php # => '$String' $sgl_quotes = '$String'; @@ -289,10 +279,8 @@ $escaped = "a \t tab character."; $unescaped = 'a slash and a t: \t'; ``` - - - ### Multi-line + ```php $str = "foo"; @@ -309,9 +297,8 @@ $str END; ``` - - ### Manipulation + ```php $s = "Hello Phper"; echo strlen($s); # => 11 @@ -326,20 +313,21 @@ echo strtolower($s); # => hello phper echo strpos($s, "l"); # => 2 var_dump(strpos($s, "L")); # => false ``` + See: [String Functions](https://www.php.net/manual/en/ref.strings.php) - - -PHP Arrays ---------------- +## PHP Arrays ### Defining {.row-span-2} + ```php $a1 = ["hello", "world", "!"] $a2 = array("hello", "world", "!"); $a3 = explode(",", "apple,pear,peach"); ``` + #### Mixed int and string keys + ```php $array = array( "foo" => "bar", @@ -349,7 +337,9 @@ $array = array( ); var_dump($array); ``` + #### Short array syntax + ```php $array = [ "foo" => "bar", @@ -357,11 +347,10 @@ $array = [ ]; ``` - - ### Multi array + ```php -$multiArray = [ +$multiArray = [ [1, 2, 3], [4, 5, 6], [7, 8, 9], @@ -372,8 +361,8 @@ print_r($multiArray[0][1]) # => 2 print_r($multiArray[0][2]) # => 3 ``` - ### Multi type {.row-span-2} + ```php $array = array( "foo" => "bar", @@ -389,15 +378,14 @@ $array = array( var_dump($array["foo"]); # => int(24) -var_dump($array[42]); +var_dump($array[42]); # => string(3) "foo" var_dump($array["multi"]["dim"]["a"]); ``` - - ### manipulation + ```php $arr = array(5 => 1, 12 => 2); $arr[] = 56; // Append @@ -406,9 +394,11 @@ sort($arr); // Sort unset($arr[5]); // Remove unset($arr); // Remove all ``` + See: [Array Functions](https://www.php.net/manual/en/ref.array.php) ### Indexing iteration + ```php $array = array('a', 'b', 'c'); $count = count($array); @@ -419,6 +409,7 @@ for ($i = 0; $i < $count; $i++) { ``` ### Value iteration + ```php $colors = array('red', 'blue', 'green'); @@ -426,7 +417,9 @@ foreach ($colors as $color) { echo "Do you like $color?\n"; } ``` + ### Key iteration + ```php $arr = ["foo" => "bar", "bar" => "foo"]; @@ -438,6 +431,7 @@ foreach ( $arr as $key => $value ) ``` ### Concatenate arrays + ```php $a = [1, 2]; $b = [3, 4]; @@ -448,6 +442,7 @@ $result = [...$a, ...$b]; ``` ### Into functions + ```php $array = [1, 2]; @@ -458,8 +453,8 @@ function foo(int $a, int $b) { foo(...$array); ``` - ### Splat Operator + ```php function foo($first, ...$other) { var_dump($first); # => a @@ -470,16 +465,12 @@ foo('a', 'b', 'c' /*, ...*/ ); function foo($first, string ...$other){} ``` - - -PHP Operators {.cols-4} ---------------- - - +## PHP Operators {.cols-4} ### Arithmetic + | - | - | -|------|----------------| +| ---- | -------------- | | `+` | Addition | | `-` | Subtraction | | `*` | Multiplication | @@ -488,18 +479,19 @@ PHP Operators {.cols-4} | `**` | Exponentiation | ### Assignment + | - | - | -|----------|---------------------| +| -------- | ------------------- | | `a += b` | Same as `a = a + b` | | `a -= b` | Same as `a = a – b` | | `a *= b` | Same as `a = a * b` | | `a /= b` | Same as `a = a / b` | | `a %= b` | Same as `a = a % b` | - ### Comparison {.row-span-2} + | - | - | -|-------|------------------------------| +| ----- | ---------------------------- | | `==` | Equal | | `===` | Identical | | `!=` | Not equal | @@ -512,19 +504,18 @@ PHP Operators {.cols-4} | `<=>` | Less than/equal/greater than | ### Logical + | - | - | -|-------|--------------| +| ----- | ------------ | --- | --- | | `and` | And | | `or` | Or | | `xor` | Exclusive or | | `!` | Not | | `&&` | And | -| `||` | Or | - - - +| ` | | ` | Or | ### Arithmetic {.col-span-2} + ```php // Arithmetic $sum = 1 + 1; // 2 @@ -540,25 +531,21 @@ echo ++$num; // Prints 3 (increments before evaluation) $num /= $float; // Divide and assign the quotient to $num ``` - - ### Bitwise + | - | - | -|------|--------------------| +| ---- | ------------------ | ----------------- | | `&` | And | -| `|` | Or (inclusive or) | +| ` | ` | Or (inclusive or) | | `^` | Xor (exclusive or) | | `~` | Not | | `<<` | Shift left | | `>>` | Shift right | - - - -PHP Conditionals ---------------- +## PHP Conditionals ### If elseif else + ```php $a = 10; $b = 20; @@ -572,14 +559,14 @@ if ($a > $b) { } ``` - ### Switch + ```php $x = 0; switch ($x) { case '0': print "it's zero"; - break; + break; case 'two': case 'three': // do something @@ -590,6 +577,7 @@ switch ($x) { ``` ### Ternary operator + ```php # => Does print (false ? 'Not' : 'Does'); @@ -607,6 +595,7 @@ echo $b ?? 'b is unset'; ``` ### Match + ```php $statusCode = 500; $message = match($statusCode) { @@ -617,10 +606,11 @@ $message = match($statusCode) { }; echo $message; # => server error ``` + See: [Match](https://www.php.net/manual/en/control-structures.match.php) - ### Match expressions + ```php $age = 23; @@ -634,12 +624,10 @@ $result = match (true) { echo $result; # => young adult ``` - -PHP Loops ---------------- - +## PHP Loops ### while + ```php $i = 1; # => 12345 @@ -649,6 +637,7 @@ while ($i <= 5) { ``` ### do while + ```php $i = 1; # => 12345 @@ -657,8 +646,8 @@ do { } while ($i <= 5); ``` - ### for i + ```php # => 12345 for ($i = 1; $i <= 5; $i++) { @@ -667,6 +656,7 @@ for ($i = 1; $i <= 5; $i++) { ``` ### break + ```php # => 123 for ($i = 1; $i <= 5; $i++) { @@ -678,6 +668,7 @@ for ($i = 1; $i <= 5; $i++) { ``` ### continue + ```php # => 1235 for ($i = 1; $i <= 5; $i++) { @@ -689,6 +680,7 @@ for ($i = 1; $i <= 5; $i++) { ``` ### foreach + ```php $a = ['foo' => 1, 'bar' => 2]; # => 12 @@ -696,15 +688,13 @@ foreach ($a as $k) { echo $k; } ``` + See: [Array iteration](#php-value-iteration) - - -PHP Functions ---------------- - +## PHP Functions ### Returning values + ```php function square($x) { @@ -715,6 +705,7 @@ echo square(4); # => 16 ``` ### Return types + ```php // Basic return type declaration function sum($a, $b): float {/*...*/} @@ -726,6 +717,7 @@ function getC(): C { return new C; } ``` ### Nullable return types + ```php // Available in PHP 7.1 function nullOrString(int $v) : ?string @@ -735,9 +727,11 @@ function nullOrString(int $v) : ?string echo nullOrString(3); # => odd var_dump(nullOrString(4)); # => NULL ``` + See: [Nullable types](https://www.php.net/manual/en/migration71.new-features.php) ### Void functions + ```php // Available in PHP 7.1 function voidFunction(): void @@ -750,6 +744,7 @@ voidFunction(); # => Hello ``` ### Variable functions + ```php function bar($arg = '') { @@ -760,11 +755,8 @@ $func = 'bar'; $func('test'); # => In bar(); arg: test ``` - - - - ### Anonymous functions + ```php $greet = function($name) { @@ -775,10 +767,8 @@ $greet('World'); # => Hello World $greet('PHP'); # => Hello PHP ``` - - - ### Recursive functions + ```php function recursion($x) { @@ -790,9 +780,8 @@ function recursion($x) recursion(1); # => 1234 ``` - - ### Default parameters + ```php function coffee($type = "cappuccino") { @@ -806,12 +795,11 @@ echo coffee(null); echo coffee("espresso"); ``` - - ### Arrow Functions + ```php $y = 1; - + $fn1 = fn($x) => $x + $y; // equivalent to using $y by value: @@ -822,14 +810,10 @@ echo $fn1(5); # => 6 echo $fn2(5); # => 6 ``` - - - -PHP Classes ---------------- - +## PHP Classes ### Constructor + ```php class Student { public function __construct($name) { @@ -844,6 +828,7 @@ $alex->print(); # => Name: Alex ``` ### Inheritance + ```php class ExtendClass extends SimpleClass { @@ -860,6 +845,7 @@ $extended->displayVar(); ``` ### Classes variables {.row-span-2} + ```php class MyClass { @@ -879,18 +865,19 @@ class MyClass protected $var6 = 'pro'; // The class only - private $var7 = 'pri'; + private $var7 = 'pri'; } ``` + Access statically + ```php echo MyClass::MY_CONST; # => value echo MyClass::$staticVar; # => static ``` - - ### Magic Methods + ```php class MyClass { @@ -907,10 +894,10 @@ class MyClass } ``` - ### Interface + ```php -interface Foo +interface Foo { public function doSomething(); } @@ -918,17 +905,17 @@ interface Bar { public function doSomethingElse(); } -class Cls implements Foo, Bar +class Cls implements Foo, Bar { public function doSomething() {} public function doSomethingElse() {} } ``` -Miscellaneous -------------- +## Miscellaneous ### Basic error handling + ```php try { // Do something @@ -940,6 +927,7 @@ try { ``` ### Exception in PHP 8.0 {.col-span-2} + ```php {.wrap} $nullableValue = null; @@ -952,12 +940,15 @@ try { ``` ### Custom exception {.row-span-2} + ```php class MyException extends Exception { // do something } ``` + Usage + ```php try { $condition = true; @@ -970,6 +961,7 @@ try { ``` ### Nullsafe Operator {.row-span-2} + ```php // As of PHP 8.0.0, this line: $result = $repo?->getUser(5)?->name; @@ -986,19 +978,22 @@ if (is_null($repo)) { } } ``` + See also: [Nullsafe Operator](https://wiki.php.net/rfc/nullsafe_operator) ### Regular expressions + ```php $str = "Visit Quickref.me"; echo preg_match("/qu/i", $str); # => 1 ``` + See: [Regex in PHP](/regex#regex-in-php) ### fopen() mode | - | - | -|------|--------------------------| +| ---- | ------------------------ | | `r` | Read | | `r+` | Read and write, prepend | | `w` | Write, truncate | @@ -1006,9 +1001,8 @@ See: [Regex in PHP](/regex#regex-in-php) | `a` | Write, append | | `a+` | Read and write, append | - - ### Runtime defined Constants + ```php define("CURRENT_DATE", date('Y-m-d')); @@ -1016,16 +1010,10 @@ define("CURRENT_DATE", date('Y-m-d')); echo CURRENT_DATE; # => 2021-01-05 # => CURRENT_DATE is: 2021-01-05 -echo 'CURRENT_DATE is: ' . CURRENT_DATE; +echo 'CURRENT_DATE is: ' . CURRENT_DATE; ``` - -Also see -------- +## Also see - [PHP Docs](https://www.php.net/manual/en/index.php) - [Learn X in Y minutes](https://learnxinyminutes.com/docs/php/) - - - - diff --git a/source/_posts/phpstorm.md b/source/_posts/phpstorm.md index 1a8b4cb..32db796 100644 --- a/source/_posts/phpstorm.md +++ b/source/_posts/phpstorm.md @@ -2,198 +2,191 @@ title: PhpStorm date: 2022-11-23 16:23:31.703719 background: bg-gradient-to-r from-[#be4fe9] to-[#715bef] hover:from-emerald-400 hover:to-blue-500 -label: +label: tags: - - jetbrains + - jetbrains categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 96 keyboard shortcuts found in JetBrains PhpStorm + A visual cheat-sheet for the 96 keyboard shortcuts found in JetBrains PhpStorm --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Editing {.row-span-4} -Shortcut | Action ----|--- -`Ctrl` `Space` | Basic code completion -`Alt` `Enter` | Show intention actions and quick-fixes -`Ctrl` `P` | Parameter info (within method call arguments) -`Ctrl` `Q` | Quick documentation lookup -`Ctrl` `(mouse over code)` | Brief Info -`Alt` `Insert` | Generate code... (Getters, Setters, Constructors) -`Ctrl` `O` | Override methods -`Ctrl` `I` | Implement methods -`Ctrl` `Alt` `T` | Surround with...(if..else, try..catch, for, etc.) -`Ctrl` `/` | Comment/uncomment with line comment -`Ctrl` `Shift` `/` | Comment/uncomment with block comment -`Ctrl` `W` | Select successively increasing code blocks -`Ctrl` `Shift` `W` | Decrease current selection to previous state -`Ctrl` `Alt` `L` | Reformat code -`Ctrl` `Alt` `I` | Auto-indent line(s) -`Ctrl` `D` | Duplicate current line or selected block -`Ctrl` `Y` | Delete line at caret -`Ctrl` `Shift` `J` | Smart line join (HTML and JavaScript only) -`Ctrl` `Enter` | Smart line split (HTML and JavaScript only) -`Shift` `Enter` | Start a new line -`Ctrl` `Shift` `U` | Toggle case for word at caret or selected block -`Ctrl` `Shift` `[` | Select till code block start -`Ctrl` `Shift` `]` | Select till code block end -`Ctrl` `Delete` | Delete to word end -`Ctrl` `Backspace` | Delete to word start -`Ctrl` `+/-` | Expand/collapse code block -`Ctrl` `F4` | Close active editor tab -`Ctrl` `Shift` `V` | Paste from history -{.shortcuts} +| Shortcut | Action | +| -------------------------- | ------------------------------------------------- | +| `Ctrl` `Space` | Basic code completion | +| `Alt` `Enter` | Show intention actions and quick-fixes | +| `Ctrl` `P` | Parameter info (within method call arguments) | +| `Ctrl` `Q` | Quick documentation lookup | +| `Ctrl` `(mouse over code)` | Brief Info | +| `Alt` `Insert` | Generate code... (Getters, Setters, Constructors) | +| `Ctrl` `O` | Override methods | +| `Ctrl` `I` | Implement methods | +| `Ctrl` `Alt` `T` | Surround with...(if..else, try..catch, for, etc.) | +| `Ctrl` `/` | Comment/uncomment with line comment | +| `Ctrl` `Shift` `/` | Comment/uncomment with block comment | +| `Ctrl` `W` | Select successively increasing code blocks | +| `Ctrl` `Shift` `W` | Decrease current selection to previous state | +| `Ctrl` `Alt` `L` | Reformat code | +| `Ctrl` `Alt` `I` | Auto-indent line(s) | +| `Ctrl` `D` | Duplicate current line or selected block | +| `Ctrl` `Y` | Delete line at caret | +| `Ctrl` `Shift` `J` | Smart line join (HTML and JavaScript only) | +| `Ctrl` `Enter` | Smart line split (HTML and JavaScript only) | +| `Shift` `Enter` | Start a new line | +| `Ctrl` `Shift` `U` | Toggle case for word at caret or selected block | +| `Ctrl` `Shift` `[` | Select till code block start | +| `Ctrl` `Shift` `]` | Select till code block end | +| `Ctrl` `Delete` | Delete to word end | +| `Ctrl` `Backspace` | Delete to word start | +| `Ctrl` `+/-` | Expand/collapse code block | +| `Ctrl` `F4` | Close active editor tab | +| `Ctrl` `Shift` `V` | Paste from history | +{.shortcuts} ### Debugging -Shortcut | Action ----|--- -`F8` | Step over -`F7` | Step into -`Shift` `F8` | Step out -`Alt` `F8` | Evaluate expression -`F9` | Resume program -`Ctrl` `F8` | Toggle breakpoint -`Ctrl` `Shift` `F8` | View breakpoints -{.shortcuts} +| Shortcut | Action | +| ------------------- | ------------------- | +| `F8` | Step over | +| `F7` | Step into | +| `Shift` `F8` | Step out | +| `Alt` `F8` | Evaluate expression | +| `F9` | Resume program | +| `Ctrl` `F8` | Toggle breakpoint | +| `Ctrl` `Shift` `F8` | View breakpoints | +{.shortcuts} ### Running -Shortcut | Action ----|--- -`Shift` `F10` | Run -`Shift` `F9` | Debug -`Ctrl` `Shift` `F10` | Run context configuration from editor -`Ctrl` `Shift` `X` | Run command line -{.shortcuts} +| Shortcut | Action | +| -------------------- | ------------------------------------- | +| `Shift` `F10` | Run | +| `Shift` `F9` | Debug | +| `Ctrl` `Shift` `F10` | Run context configuration from editor | +| `Ctrl` `Shift` `X` | Run command line | +{.shortcuts} ### Search/Replace -Shortcut | Action ----|--- -`Ctrl` `F/R` | Find/Replace -`F3` | Find next -`Shift` `F3` | Find previous -`Ctrl` `Shift` `F/R` | Find/Replace in path -{.shortcuts} +| Shortcut | Action | +| -------------------- | -------------------- | +| `Ctrl` `F/R` | Find/Replace | +| `F3` | Find next | +| `Shift` `F3` | Find previous | +| `Ctrl` `Shift` `F/R` | Find/Replace in path | +{.shortcuts} ### Usage Search -Shortcut | Action ----|--- -`Alt` `F7` | Find usages -`Ctrl` `F7` | Find usages in file -`Ctrl` `Shift` `F7` | Highlight usages in file -`Ctrl` `Alt` `F7` | Show usages -{.shortcuts} +| Shortcut | Action | +| ------------------- | ------------------------ | +| `Alt` `F7` | Find usages | +| `Ctrl` `F7` | Find usages in file | +| `Ctrl` `Shift` `F7` | Highlight usages in file | +| `Ctrl` `Alt` `F7` | Show usages | +{.shortcuts} ### Navigation {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `N` | Go to class -`Ctrl` `Shift` `N` | Go to file -`Ctrl` `Shift` `Alt` `N` | Go to symbol -`Ctrl` `G` | Go to line -`Alt` `Left/Right` | Go to next/previous editor tab -`Esc` | Go to editor (from tool window) -`Ctrl` `E` | Recent files popup -`Ctrl` `Alt` `Left/Right` | Navigate back/forward -`Ctrl` `Shift` `Backspace` | Navigate to last edit location -`Alt` `F1` | Select current file or symbol in any view -`Ctrl` `B` | Go to declaration -`Ctrl` `Alt` `B` | Go to implementation(s) -`Ctrl` `Shift` `I` | Open quick definition lookup -`Ctrl` `Shift` `B` | Go to type declaration -`Ctrl` `U` | Go to super-method/super-class -`Alt` `Up/Down` | Go to previous/next method -`Ctrl` `]/[` | Move to code block end/start -`F2` | Next highlighted error -`Shift` `F2` | Previous highlighted error -`F4` | Edit/view source -{.shortcuts} +| Shortcut | Action | +| -------------------------- | ----------------------------------------- | +| `Ctrl` `N` | Go to class | +| `Ctrl` `Shift` `N` | Go to file | +| `Ctrl` `Shift` `Alt` `N` | Go to symbol | +| `Ctrl` `G` | Go to line | +| `Alt` `Left/Right` | Go to next/previous editor tab | +| `Esc` | Go to editor (from tool window) | +| `Ctrl` `E` | Recent files popup | +| `Ctrl` `Alt` `Left/Right` | Navigate back/forward | +| `Ctrl` `Shift` `Backspace` | Navigate to last edit location | +| `Alt` `F1` | Select current file or symbol in any view | +| `Ctrl` `B` | Go to declaration | +| `Ctrl` `Alt` `B` | Go to implementation(s) | +| `Ctrl` `Shift` `I` | Open quick definition lookup | +| `Ctrl` `Shift` `B` | Go to type declaration | +| `Ctrl` `U` | Go to super-method/super-class | +| `Alt` `Up/Down` | Go to previous/next method | +| `Ctrl` `]/[` | Move to code block end/start | +| `F2` | Next highlighted error | +| `Shift` `F2` | Previous highlighted error | +| `F4` | Edit/view source | +{.shortcuts} ### Refactoring -Shortcut | Action ----|--- -`F5/F6` | Copy/Move -`Alt` `Delete` | Safe delete -`Shift` `F6` | Rename -`Ctrl` `Alt` `N` | Inline variable -`Ctrl` `Alt` `M/V/F/C` | Extract Method/Variable/Field/Constant -`Ctrl` `Alt` `Shift` `T` | Refactor This (shows all available refactorings) -{.shortcuts} +| Shortcut | Action | +| ------------------------ | ------------------------------------------------ | +| `F5/F6` | Copy/Move | +| `Alt` `Delete` | Safe delete | +| `Shift` `F6` | Rename | +| `Ctrl` `Alt` `N` | Inline variable | +| `Ctrl` `Alt` `M/V/F/C` | Extract Method/Variable/Field/Constant | +| `Ctrl` `Alt` `Shift` `T` | Refactor This (shows all available refactorings) | +{.shortcuts} ### VCS/Local History -Shortcut | Action ----|--- -`Alt` \` | VCS quick popup -`Ctrl` `K` | Commit project to VCS -`Ctrl` `T` | Update project from VCS -`Alt` `Shift` `C` | View recent changes -{.shortcuts} +| Shortcut | Action | +| --------------------- | ----------------------- | +| `Alt` \` | VCS quick popup | +| `Ctrl` `K` | Commit project to VCS | +| `Ctrl` `T` | Update project from VCS | +| `Alt` `Shift` `C` | View recent changes | +{.shortcuts} ### General -Shortcut | Action ----|--- -`Shift x2` | Search everywhere -`Ctrl` `Shift` `A` | Find Action -`Alt` `1-9` | Open corresponding tool window -`Ctrl` `Alt` `F11` | Toggle full screen mode -`Ctrl` `Shift` `F12` | Toggle maximizing editor -`Alt` `Shift` `F` | Add to Favorites -`Alt` `Shift` `I` | Inspect current file with current profile -`Ctrl` `Alt` `S` | Open Settings dialog -`Ctrl` `Tab` | Switch between tabs and tool window -{.shortcuts} +| Shortcut | Action | +| -------------------- | ----------------------------------------- | +| `Shift x2` | Search everywhere | +| `Ctrl` `Shift` `A` | Find Action | +| `Alt` `1-9` | Open corresponding tool window | +| `Ctrl` `Alt` `F11` | Toggle full screen mode | +| `Ctrl` `Shift` `F12` | Toggle maximizing editor | +| `Alt` `Shift` `F` | Add to Favorites | +| `Alt` `Shift` `I` | Inspect current file with current profile | +| `Ctrl` `Alt` `S` | Open Settings dialog | +| `Ctrl` `Tab` | Switch between tabs and tool window | +{.shortcuts} ### Live Templates/Snippets -Shortcut | Action ----|--- -`Ctrl` `J` | Insert Live Template -`eco` | 'echo' statement -`fore` | foreach(iterable_expr as $value) {...} -`forek` | foreach(iterable_expr as $key => $value) {...} -`inc/inco` | 'include'/'include_once' statement -`prif` | private function -`prof` | protected function -`pubf` | public function -`rqr/rqro` | 'require'/'require_once' statement +| Shortcut | Action | +| ---------- | ---------------------------------------------- | +| `Ctrl` `J` | Insert Live Template | +| `eco` | 'echo' statement | +| `fore` | foreach(iterable_expr as $value) {...} | +| `forek` | foreach(iterable_expr as $key => $value) {...} | +| `inc/inco` | 'include'/'include_once' statement | +| `prif` | private function | +| `prof` | protected function | +| `pubf` | public function | +| `rqr/rqro` | 'require'/'require_once' statement | + {.shortcuts} - - ### Misc -Shortcut | Action ----|--- -`Ctrl` `Shift` `A` | Find Action +| Shortcut | Action | +| ------------------ | ----------- | +| `Ctrl` `Shift` `A` | Find Action | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for PhpStorm](https://resources.jetbrains.com/storage/products/phpstorm/docs/PhpStorm_ReferenceCard.pdf) _(resources.jetbrains.com)_ +- [Keyboard shortcuts for PhpStorm](https://resources.jetbrains.com/storage/products/phpstorm/docs/PhpStorm_ReferenceCard.pdf) + _(resources.jetbrains.com)_ diff --git a/source/_posts/pm2.md b/source/_posts/pm2.md index f4c5cdb..d43b789 100644 --- a/source/_posts/pm2.md +++ b/source/_posts/pm2.md @@ -3,40 +3,42 @@ title: PM2 date: 2022-11-25 18:10:00 background: bg-[#230769] tags: - - process + - process categories: - - Linux Command + - Linux Command intro: | - [PM2] is a daemon process manager that will help you manage and keep your application online. Getting started with PM2 is straightforward, it is offered as a simple and intuitive CLI. + [PM2] is a daemon process manager that will help you manage and keep your application online. Getting started with PM2 is straightforward, it is offered as a simple and intuitive CLI. plugins: - - copyCode + - copyCode --- - - -Getting Started ---------------- +## Getting Started ### Install + The latest PM2 version is installable with NPM or Yarn -``` shell script + +```shell script $ npm install pm2@latest -g ``` OR -``` shell script + +```shell script $ yarn global add pm2 ``` +### Start an app -### Start an app The simplest way to start, daemonize and monitor your application is by using this command line -``` shell script + +```shell script $ pm2 start app.js ``` Or start any other application easily -``` shell script + +```shell script $ pm2 start bashscript.sh $ pm2 start python-app.py --watch $ pm2 start binary-file -- --port 1520 @@ -45,59 +47,70 @@ $ pm2 start binary-file -- --port 1520 ### Some options you can pass to the CLI {.row-span-3} Specify an app name -``` shell script + +```shell script --name ``` Watch and Restart app when files change -``` shell script + +```shell script --watch ``` Set memory threshold for app reload -``` shell script + +```shell script --max-memory-restart <200MB> ``` Specify log file -``` shell script + +```shell script --log ``` Pass extra arguments to the script -``` shell script + +```shell script -- arg1 arg2 arg3 ``` Delay between automatic restarts -``` shell script + +```shell script --restart-delay ``` Prefix logs with time -``` shell script + +```shell script --time ``` Do not auto restart app -``` shell script + +```shell script --no-autorestart ``` Specify cron for forced restart -``` shell script + +```shell script --cron ``` Attach to application log -``` shell script + +```shell script --no-daemon ``` - ### Managing processes + Managing application state is simple here are the commands -``` shell script + +```shell script $ pm2 restart app_name $ pm2 reload app_name $ pm2 stop app_name @@ -108,57 +121,66 @@ $ pm2 delete app_name - `all` to act on all processes - `id` to act on a specific process id - ### Check status, logs, metrics {.row-span-2} -Now that you have started this application, you can check its status, logs, metrics and even get the online dashboard with [pm2.io](https://pm2.io/). +Now that you have started this application, you can check its status, logs, metrics and even get the online dashboard +with [pm2.io](https://pm2.io/). List the status of all application managed by PM2 -``` shell script + +```shell script $ pm2 [list|ls|status] ``` To display logs in realtime -``` shell script + +```shell script $ pm2 logs ``` To dig in older logs -``` shell script + +```shell script $ pm2 logs --lines 200 ``` Here is a realtime dashboard that fits directly into your terminal -``` shell script + +```shell script $ pm2 monit ``` Web based dashboard, cross servers with diagnostic system -``` shell script + +```shell script $ pm2 plus ``` - ### Cluster mode -For Node.js applications, PM2 includes an automatic load balancer that will share all HTTP[s]/Websocket/TCP/UDP connections between each spawned processes. + +For Node.js applications, PM2 includes an automatic load balancer that will share all HTTP[s]/Websocket/TCP/UDP +connections between each spawned processes. To start an application in Cluster mode -``` shell script + +```shell script $ pm2 start app.js -i max ``` + Read more about cluster mode [here](https://pm2.keymetrics.io/docs/usage/quick-start/). - - ### Ecosystem File {.row-span-2} -You can also create a configuration file, called Ecosystem File, to manage multiple applications. To generate an Ecosystem file -``` shell script +You can also create a configuration file, called Ecosystem File, to manage multiple applications. To generate an +Ecosystem file + +```shell script $ pm2 ecosystem ``` This will generate an ecosystem.config.js file + ``` module.exports = { apps : [{ @@ -178,46 +200,53 @@ module.exports = { ``` And start it easily -``` shell script + +```shell script $ pm2 start ecosystem.config.js ``` Read more about application declaration [here](https://pm2.keymetrics.io/docs/usage/application-declaration/) - - ### Setup startup script -Restarting PM2 with the processes you manage on server boot/reboot is critical. To solve this, just run this command to generate an active startup script -``` shell script + +Restarting PM2 with the processes you manage on server boot/reboot is critical. To solve this, just run this command to +generate an active startup script + +```shell script $ pm2 save ``` Read more about startup script generator [here](https://pm2.keymetrics.io/docs/usage/startup/) - ### Restart application on changes + It’s pretty easy with the `--watch` option + ``` $ cd /path/to/my/app $ pm2 start env.js --watch --ignore-watch="node_modules" ``` -This will watch & restart the app on any file change from the current directory + all subfolders and it will ignore any changes in the node_modules folder `--ignore-watch="node_modules"`. +This will watch & restart the app on any file change from the current directory + all subfolders and it will ignore any +changes in the node_modules folder `--ignore-watch="node_modules"`. You can then use `pm2 logs` to check for restarted app logs. ------- - +--- ### CheatSheet {.row-span-2 .col-span-2} -Here are some commands that are worth knowing. Just try them with a sample application or with your current web application on your development machine + +Here are some commands that are worth knowing. Just try them with a sample application or with your current web +application on your development machine Fork mode + ```shell script $ pm2 start app.js --name my-api # Name process ``` Cluster mode + ```shell script $ pm2 start app.js -i 0 # Will start maximum processes with LB depending on available CPUs $ pm2 start app.js -i max # Same as above, but deprecated. @@ -226,6 +255,7 @@ $ pm2 scale app 2 # Scales `app` up or down to 2 workers total ``` Listing + ```shell script $ pm2 list # Display all processes status $ pm2 jlist # Print process list in raw JSON @@ -237,6 +267,7 @@ $ pm2 monit # Monitor all processes ``` Logs + ```shell script $ pm2 logs [--raw] # Display all processes logs in streaming $ pm2 flush # Empty all log files @@ -244,6 +275,7 @@ $ pm2 reloadLogs # Reload all logs ``` Actions + ```shell script $ pm2 stop all # Stop all processes $ pm2 restart all # Restart all processes @@ -258,6 +290,7 @@ $ pm2 delete all # Will remove all processes from pm2 list ``` Misc + ```shell script $ pm2 reset # Reset meta data (restarted time...) $ pm2 updatePM2 # Update in memory pm2 @@ -268,20 +301,20 @@ $ pm2 start app.js --no-vizion $ pm2 start app.js --no-autorestart ``` - ### Updating PM2 + We made it simple, there is no breaking change between releases and the procedure is straightforward + ```shell script $ npm install pm2@latest -g ``` + Then update the in-memory PM2 + ```shell script $ pm2 update ``` - - -Also see --------- +## Also see - [QUICK START](https://pm2.keymetrics.io/docs/usage/quick-start/) _(pm2.keymetrics.io)_ diff --git a/source/_posts/pocket.md b/source/_posts/pocket.md index e41a8d7..2a29316 100644 --- a/source/_posts/pocket.md +++ b/source/_posts/pocket.md @@ -2,82 +2,76 @@ title: Pocket date: 2022-11-23 16:23:31.702053 background: bg-[#d54d57] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 36 keyboard shortcuts found on Pocket for Web + A visual cheat-sheet for the 36 keyboard shortcuts found on Pocket for Web --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Viewing Your List -Shortcut | Action ----|--- -`G` `L` | Go to My List -`G` `A` | Go to Archive -`G` `F` | Go to Favorites -`G` `R` | Go to Articles -`G` `H` | Go to Highlights -`G` `V` | Go to Videos -`G` `T` | Go to All Tags -`G` `S` | Go to Search -`G` `B` | Bulk Edit -`G` `U` | Save a URL -`S` `N` | Sort by Newest -`S` `O` | Sort by Oldest -`V` `L` | List View -`V` `G` | Grid View -`V` `D` | Detail View -`C` `L` | Change to Light Theme -`C` `D` | Change to Dark Theme -`C` `S` | Change to Sepia Theme -`?` | Open Help Overlay -{.shortcuts} +| Shortcut | Action | +| -------- | --------------------- | +| `G` `L` | Go to My List | +| `G` `A` | Go to Archive | +| `G` `F` | Go to Favorites | +| `G` `R` | Go to Articles | +| `G` `H` | Go to Highlights | +| `G` `V` | Go to Videos | +| `G` `T` | Go to All Tags | +| `G` `S` | Go to Search | +| `G` `B` | Bulk Edit | +| `G` `U` | Save a URL | +| `S` `N` | Sort by Newest | +| `S` `O` | Sort by Oldest | +| `V` `L` | List View | +| `V` `G` | Grid View | +| `V` `D` | Detail View | +| `C` `L` | Change to Light Theme | +| `C` `D` | Change to Dark Theme | +| `C` `S` | Change to Sepia Theme | +| `?` | Open Help Overlay | +{.shortcuts} ### Item Actions -Shortcut | Action ----|--- -`O` | Open the original in a new tab -`A` | Archive the selected item -`F` | Favorite the selected item -`T` | Tag the selected item -`D` | Delete the selected item -`X` | Select item in bulk edit -`J` | Select the next item -`K` | Select the previous item -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------------ | +| `O` | Open the original in a new tab | +| `A` | Archive the selected item | +| `F` | Favorite the selected item | +| `T` | Tag the selected item | +| `D` | Delete the selected item | +| `X` | Select item in bulk edit | +| `J` | Select the next item | +| `K` | Select the previous item | +{.shortcuts} ### Article View -Shortcut | Action ----|--- -`Ctrl` `=` | Increase the font size -`Ctrl` `-` | Decrease the font size -`B` | Toggle full screen mode -`D` | Edit tags -`T` | Archive the item -`F` | Favorite the item -`O` | View the original -`Alt` `=` | Increase the column width (premium only) -`Alt` `-` | Decrease the column width (premium only) +| Shortcut | Action | +| ---------- | ---------------------------------------- | +| `Ctrl` `=` | Increase the font size | +| `Ctrl` `-` | Decrease the font size | +| `B` | Toggle full screen mode | +| `D` | Edit tags | +| `T` | Archive the item | +| `F` | Favorite the item | +| `O` | View the original | +| `Alt` `=` | Increase the column width (premium only) | +| `Alt` `-` | Decrease the column width (premium only) | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Pocket](https://help.getpocket.com/article/994-keyboard-shortcuts-in-pocket-for-web) _(help.getpocket.com)_ +- [Keyboard shortcuts for Pocket](https://help.getpocket.com/article/994-keyboard-shortcuts-in-pocket-for-web) + _(help.getpocket.com)_ diff --git a/source/_posts/postman.md b/source/_posts/postman.md index 0c1cff2..f5ad59b 100644 --- a/source/_posts/postman.md +++ b/source/_posts/postman.md @@ -2,69 +2,63 @@ title: Postman date: 2022-11-23 16:23:31.703572 background: bg-[#cf5e3c] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 23 keyboard shortcuts found in Postman + A visual cheat-sheet for the 23 keyboard shortcuts found in Postman --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Navigational Shortcuts -Shortcut | Action ----|--- -`Ctrl` `Alt` `1` | Focus Sidebar -`Ctrl` `Alt` `2` | Focus Builder -`Ctrl` `#` | Focus on #th tab -`Ctrl` `Shift` `/` | Switch between tabs -`Down` | Move to next item -`Up` | Move to previous item -`Right` | Expand collection/folder -`Left` | Collapse collection/folder -`Shift` `Down` | Select current AND next item -`Shift` `Up` | Select current AND previous item -`Ctrl` `F` | Search sidebar -`Enter` | Open request in a tab -{.shortcuts} +| Shortcut | Action | +| ------------------ | -------------------------------- | +| `Ctrl` `Alt` `1` | Focus Sidebar | +| `Ctrl` `Alt` `2` | Focus Builder | +| `Ctrl` `#` | Focus on #th tab | +| `Ctrl` `Shift` `/` | Switch between tabs | +| `Down` | Move to next item | +| `Up` | Move to previous item | +| `Right` | Expand collection/folder | +| `Left` | Collapse collection/folder | +| `Shift` `Down` | Select current AND next item | +| `Shift` `Up` | Select current AND previous item | +| `Ctrl` `F` | Search sidebar | +| `Enter` | Open request in a tab | +{.shortcuts} ### Manipulation Shortcuts -Shortcut | Action ----|--- -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Delete` | Delete -`Ctrl` `D` | Duplicate -`Ctrl` `E` | Edit/Rename -{.shortcuts} +| Shortcut | Action | +| ---------- | ----------- | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Delete` | Delete | +| `Ctrl` `D` | Duplicate | +| `Ctrl` `E` | Edit/Rename | +{.shortcuts} ### Global Shortcuts -Shortcut | Action ----|--- -`Ctrl` `S` | Save -`Ctrl` `Shift` `S` | Save As -`Ctrl` `Enter` | Send Request -`Ctrl` `\` | Toggle Sidebar -`Ctrl` `L` | Jump to URL -`Ctrl` `Alt` `C` | Open Console +| Shortcut | Action | +| ------------------ | -------------- | +| `Ctrl` `S` | Save | +| `Ctrl` `Shift` `S` | Save As | +| `Ctrl` `Enter` | Send Request | +| `Ctrl` `\` | Toggle Sidebar | +| `Ctrl` `L` | Jump to URL | +| `Ctrl` `Alt` `C` | Open Console | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Postman](https://learning.getpostman.com/docs/postman/launching_postman/keyboard_shortcuts/) _(learning.getpostman.com)_ +- [Keyboard shortcuts for Postman](https://learning.getpostman.com/docs/postman/launching_postman/keyboard_shortcuts/) + _(learning.getpostman.com)_ diff --git a/source/_posts/powershell.md b/source/_posts/powershell.md index ef20555..3d0ae02 100644 --- a/source/_posts/powershell.md +++ b/source/_posts/powershell.md @@ -3,48 +3,52 @@ title: Powershell date: 2020-11-25 18:28:43 background: bg-[#397fe4] tags: - - script - - windows + - script + - windows categories: - - Programming - - Operating System + - Programming + - Operating System intro: This is a quick reference cheat sheet to getting started with Powershell scripting. plugins: - - copyCode + - copyCode --- -Basic Commands ---------------- +## Basic Commands ### Helper Commands -***Powershell follows Verb-Noun format for their commands.*** +**_Powershell follows Verb-Noun format for their commands._** Some common Verbs: -| Verb | Description | -|----------|--------------------------------------------------| -| Get | Used to retrieve information. | -| Set | Used to configure or change settings. | -| New | Used to create new instances of objects. | -| Remove | Used to delete or remove items. | -| Invoke | Used to execute a specific action or operation. | -| Start | Used to initiate a process or operation. | -| Stop | Used to halt or terminate a process or operation.| -| Enable | Used to activate or enable a feature. | -| Disable | Used to deactivate or disable a feature. | -| Test | Used to perform tests or checks. | -| Update | Used to update or refresh data or configurations.| +| Verb | Description | +| ------- | ------------------------------------------------- | +| Get | Used to retrieve information. | +| Set | Used to configure or change settings. | +| New | Used to create new instances of objects. | +| Remove | Used to delete or remove items. | +| Invoke | Used to execute a specific action or operation. | +| Start | Used to initiate a process or operation. | +| Stop | Used to halt or terminate a process or operation. | +| Enable | Used to activate or enable a feature. | +| Disable | Used to deactivate or disable a feature. | +| Test | Used to perform tests or checks. | +| Update | Used to update or refresh data or configurations. | Lists available modules + ```powershell Get-Module --ListAvailable ``` + Lists available cmdlets and functions. + ```powershell Get-Command -Module ActiveDirectory ``` + Retrieves help + ```powershell Get-Help Get-Help -Examples @@ -52,11 +56,13 @@ Get-Help -Name Get-Process -Parameter Id ``` Lists aliases and their corresponding cmdlet names. + ```powershell Get-Alias | Select-Object Name, Definition ``` **Get-Member:** Displays the properties and methods of objects. + ```powershell Get-Process | Get-Member ``` @@ -64,11 +70,13 @@ Get-Process | Get-Member ### Object Manipulation {.col-span-2} **Select-Object:** Selects specific properties from objects or customizes their display. + ```powershell Get-Process | Select-Object Name, CPU ``` **Where-Object:** Filters objects based on specified conditions. + ```powershell Get-Service | Where-Object { $PSItem.Status -eq 'Running' } #OR @@ -76,26 +84,32 @@ Get-Service | ? { $_.Status -eq 'Running' } ``` **Measure-Object:** Calculates statistics, like sum, average, and count, for object properties. + ```powershell Get-Process | Measure-Object -Property WorkingSet -Sum ``` -**ForEach-Object:** Performs an operation on each object in a collection. (BEAWARE: Below command will prefix of files/folder in the current dir) +**ForEach-Object:** Performs an operation on each object in a collection. (BEAWARE: Below command will prefix of +files/folder in the current dir) + ```powershell Get-ChildItem | ForEach-Object { Rename-Item $_ -NewName "Prefix_$_" } ``` **Sort-Object:** Sorts objects by specified properties. + ```powershell Get-ChildItem | Sort-Object Length -Descending ``` **Format-Table:** Formats output as a table with specified columns. + ```powershell Get-Service | Format-Table -AutoSize # ft alias ``` **Format-List:** Formats output as a list of properties and values. + ```powershell Get-Process | Format-List -Property Name, CPU # fl alias ``` @@ -104,7 +118,7 @@ Get-Process | Format-List -Property Name, CPU # fl alias ```powershell New-Item -path file.txt -type 'file' -value 'contents' -New-Item -path file.txt -type 'dir' +New-Item -path file.txt -type 'dir' Copy-Item -destination Move-Item -path -destination Remove-Item @@ -112,8 +126,8 @@ Test-Path Rename-Item -path -newname # using .NET Base Class Library -[System.IO.File]::WriteAllText('test.txt', '') -[System.IO.File]::Delete('test.txt') +[System.IO.File]::WriteAllText('test.txt', '') +[System.IO.File]::Delete('test.txt') Get-Content -Path "test.txt" Get-Process | Out-File -FilePath "processes.txt"# Output to file @@ -121,28 +135,28 @@ Get-Process | Export-Csv -Path "processes.csv" # Output to csv $data = Import-Csv -Path "data.csv" # Import from csv ``` -System Management ---------------- +## System Management ### Windows Management Instrumentation {.col-span-2} + ```powershell # Retrieve BIOS information -Get-CimInstance -ClassName Win32_BIOS +Get-CimInstance -ClassName Win32_BIOS # Retrieve information about locally connected physical disk devices -Get-CimInstance -ClassName Win32_DiskDrive +Get-CimInstance -ClassName Win32_DiskDrive # Retrieve information about install physical memory (RAM) -Get-CimInstance -ClassName Win32_PhysicalMemory +Get-CimInstance -ClassName Win32_PhysicalMemory # Retrieve information about installed network adapters (physical + virtual) -Get-CimInstance -ClassName Win32_NetworkAdapter +Get-CimInstance -ClassName Win32_NetworkAdapter # Retrieve information about installed graphics / video card (GPU) -Get-CimInstance -ClassName Win32_VideoController +Get-CimInstance -ClassName Win32_VideoController # List all the classNames Get-CimClass | Select-Object -ExpandProperty CimClassName # Explore the various WMI classes available in the root\cimv2 namespace -Get-CimClass -Namespace root\cimv2 +Get-CimClass -Namespace root\cimv2 # Explore the child WMI namespaces underneath the root\cimv2 namespace -Get-CimInstance -Namespace root -ClassName __NAMESPACE +Get-CimInstance -Namespace root -ClassName __NAMESPACE ``` @@ -168,6 +182,7 @@ Test-NetConnection google.com -Port 80 ``` ### User & Group Management {.col-span-2} + ```powershell # Retrieve local user account information Get-LocalUser @@ -186,6 +201,7 @@ Add-LocalGroupMember -Group Administrators -Member UserToAdd ``` ### Security & Permissions + ```powershell # Retrieve access control lists for file/dir Get-Acl C:\Path\To\File.txt @@ -195,6 +211,7 @@ Set-Acl -Path C:\Path\To\File.txt -AclObject $aclObject ``` ### Registry Management {.col-span-2} + ```powershell # Retrieve registry key values Get-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" | Select DisplayName, DisplayVersion @@ -211,13 +228,15 @@ Remove-ItemProperty -Path "HKCU:\Software\MyApp" -Name "SettingToRemove" # Check if a registry key exists Test-Path "HKLM:\Software\MyApp" ``` -Scripting ---------------- + +## Scripting ### Variables {.col-span-2} + Initializing a variable with/without a specified type: + ```powershell -$var = 0 +$var = 0 [int] $var = 'Trevor' # (throws an exception) [string] $var = 'Trevor' # (doesn't throw an exception) $var.GetType() @@ -231,26 +250,28 @@ $arrayvar = @('va1','va2') # Create dict $dict = @{k1 = 'test'; k2 = 'best'} ``` + Variable Commands + ```Powershell New-Variable -Name FirstName -Value Trevor -New-Variable FirstName -Value Trevor -Option +New-Variable FirstName -Value Trevor -Option -Get-Variable -Get-Variable | ? { $PSItem.Options -contains 'constant' } +Get-Variable +Get-Variable | ? { $PSItem.Options -contains 'constant' } Get-Variable | ? { $PSItem.Options -contains 'readonly' } -Remove-Variable -Name firstname -# Removes ReadOnly var +Remove-Variable -Name firstname +# Removes ReadOnly var Remove-Variable -Name firstname -Force ``` -Variable types -int32, int64, string, bool + +Variable types int32, int64, string, bool + ### Operators - ```powershell -# operators +# operators # (a b) = , += / -= , ++ / -- @@ -264,7 +285,7 @@ $true; $false #bool true/false $FoodToEat = $BaconIsYummy ? 'bacon' : 'beets' # -notin or -in -'Celery' -in @('Bacon', 'Sausage', 'Steak') +'Celery' -in @('Bacon', 'Sausage', 'Steak') # output: True 5 -is [int32] @@ -277,12 +298,15 @@ $regex = [regex]'(\w*)' $regex.Matches('this is test').Value ``` + ### Structure + #### I/O operation -```powershell + +```powershell "This displays a string" -Write-Host "color" -ForegroundColor Red +Write-Host "color" -ForegroundColor Red $age = Read-host "Enter age" @@ -290,7 +314,9 @@ $pwd = Read-host "password" -asSecureString Clear-Host ``` + #### Flow Controls + ```powershell IF(<#Condition#>){ <#Commands#>}ELSEIF(){}ELSE{} @@ -309,13 +335,15 @@ while($var -ne 0){} Do{}While() ``` + ### Function / Modules {.row-span-2} #### Example 1 + ```powershell function funcname{ - - [CmdletBinding()] + + [CmdletBinding()] param( [Parameter(Mandatory)] [String]$user @@ -325,7 +353,9 @@ function funcname{ } $var = funcname -user pcb ``` + #### Example 2 + ```powershell function Get-EvenNumbers { [CmdletBinding()] @@ -333,18 +363,20 @@ function Get-EvenNumbers { [Parameter(ValueFromPipeline = $true)] [int] $Number ) - begin {<#command#>} + begin {<#command#>} process { if ($Number % 2 -eq 0) { Write-Output $Number } } - end {<#command#>} + end {<#command#>} } 1..10 | Get-EvenNumbers ``` + #### Modules + ```powershell # powershell looks module in the path $env:PSModulePath @@ -352,7 +384,7 @@ $env:PSModulePath # lists all modules installed on system Get-Module -ListAvailable # modules imported into current session -Get-Module +Get-Module Import-Module Remove-Module @@ -370,9 +402,12 @@ New-Module -Name trevor -ScriptBlock { ### Tips - In most of the languages, escape character is backslash **\\** whereas in powershell it is backtick **`** + ```powershell ``` ## Also see {.cols-1} -* [Microsoft Powershell](https://learn.microsoft.com/en-us/powershell/scripting/samples/sample-scripts-for-administration?view=powershell-7.3) _(learn.microsoft.com)_ + +- [Microsoft Powershell](https://learn.microsoft.com/en-us/powershell/scripting/samples/sample-scripts-for-administration?view=powershell-7.3) + _(learn.microsoft.com)_ diff --git a/source/_posts/principle.md b/source/_posts/principle.md index 3508fa9..e853192 100644 --- a/source/_posts/principle.md +++ b/source/_posts/principle.md @@ -3,89 +3,82 @@ title: Principle date: 2022-11-23 16:23:31.698567 background: bg-[#b245c6] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 30 keyboard shortcuts found in Principle. This application is MacOS-only. + A visual cheat-sheet for the 30 keyboard shortcuts found in Principle. This application is MacOS-only. --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Layers {.row-span-2} -Shortcut | Action ----|--- -`R` | Add rectangle -`Opt` `R` | Add rectangle as a child -`T` | Add text -`Opt` `T` | Add text as a child -`A` | Add artboard -`Cmd` `G` | Group -`Cmd` `Shift` `G` | Ungroup -`Cmd` `]` | Bring forward -`Cmd` `Shift` `]` | Bring to front -`Cmd` `[` | Send backward -`Cmd` `Shift` `[` | Send to back -{.shortcuts} +| Shortcut | Action | +| ----------------- | ------------------------ | +| `R` | Add rectangle | +| `Opt` `R` | Add rectangle as a child | +| `T` | Add text | +| `Opt` `T` | Add text as a child | +| `A` | Add artboard | +| `Cmd` `G` | Group | +| `Cmd` `Shift` `G` | Ungroup | +| `Cmd` `]` | Bring forward | +| `Cmd` `Shift` `]` | Bring to front | +| `Cmd` `[` | Send backward | +| `Cmd` `Shift` `[` | Send to back | +{.shortcuts} ### Editing -Shortcut | Action ----|--- -`(arrows)` | Nudge -`Shift` `(arrows)` | Large nudge -`Cmd` `D` | Duplicate -`Cmd` `R` | Rename layer -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------ | +| `(arrows)` | Nudge | +| `Shift` `(arrows)` | Large nudge | +| `Cmd` `D` | Duplicate | +| `Cmd` `R` | Rename layer | +{.shortcuts} ### Canvas Navigation -Shortcut | Action ----|--- -`Space` `(drag)` | Pan -`Cmd` `=` | Zoom in -`Cmd` `-` | Zoom out -`Cmd` `1` | Zoom all -`Cmd` `2` | Zoom selection -`Cmd` `3` | Center selection -`Cmd` `0` | Zoom to actual size -{.shortcuts} +| Shortcut | Action | +| ---------------- | ------------------- | +| `Space` `(drag)` | Pan | +| `Cmd` `=` | Zoom in | +| `Cmd` `-` | Zoom out | +| `Cmd` `1` | Zoom all | +| `Cmd` `2` | Zoom selection | +| `Cmd` `3` | Center selection | +| `Cmd` `0` | Zoom to actual size | +{.shortcuts} ### Selection -Shortcut | Action ----|--- -`Esc` | Select parent -`Enter` | Select child -`Tab` | Select next sibling -`Shift` `Tab` | Select previous sibling -`Cmd` `A` | Select all siblings -{.shortcuts} +| Shortcut | Action | +| ------------- | ----------------------- | +| `Esc` | Select parent | +| `Enter` | Select child | +| `Tab` | Select next sibling | +| `Shift` `Tab` | Select previous sibling | +| `Cmd` `A` | Select all siblings | +{.shortcuts} ### Preview -Shortcut | Action ----|--- -`W` | Rewind prototype -`Ctrl` `V` | Start recording video -`Ctrl` `Opt` `V` | Start recording video without cursor +| Shortcut | Action | +| ---------------- | ------------------------------------ | +| `W` | Rewind prototype | +| `Ctrl` `V` | Start recording video | +| `Ctrl` `Opt` `V` | Start recording video without cursor | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Principle](https://principleformac.com/docs.html#shortcuts) _(principleformac.com)_ diff --git a/source/_posts/proto-io.md b/source/_posts/proto-io.md index ff33b4a..808607e 100644 --- a/source/_posts/proto-io.md +++ b/source/_posts/proto-io.md @@ -2,129 +2,123 @@ title: Proto.io date: 2022-11-23 16:23:31.694775 background: bg-[#5697a9] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 48 keyboard shortcuts found in Proto.io + A visual cheat-sheet for the 48 keyboard shortcuts found in Proto.io --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Main -Shortcut | Action ----|--- -`Ctrl` `F` | Find -`Ctrl` `K` | Show keyboard shortcuts -`Ctrl` `S` | Save -`Esc` | Close modal windows -`Shift` `P` | Preview -`Ctrl` `Shift` `S` | Save and Preview -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------- | +| `Ctrl` `F` | Find | +| `Ctrl` `K` | Show keyboard shortcuts | +| `Ctrl` `S` | Save | +| `Esc` | Close modal windows | +| `Shift` `P` | Preview | +| `Ctrl` `Shift` `S` | Save and Preview | +{.shortcuts} ### History -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo -`Ctrl` `[` | Go to previous canvas -`Ctrl` `]` | Go to next canvas -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------------- | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo | +| `Ctrl` `[` | Go to previous canvas | +| `Ctrl` `]` | Go to next canvas | +{.shortcuts} ### Edit -Shortcut | Action ----|--- -`Ctrl` `A` | Select all -`Ctrl` `X` | Cut -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `D` | Duplicate -`Backspace` | Delete -{.shortcuts} +| Shortcut | Action | +| ----------- | ---------- | +| `Ctrl` `A` | Select all | +| `Ctrl` `X` | Cut | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `D` | Duplicate | +| `Backspace` | Delete | +{.shortcuts} ### Grid -Shortcut | Action ----|--- -`Ctrl` `'` | Toggle grid -`Ctrl` `\` | Toggle grid system -`Ctrl` `;` | Toggle custom guides -`Ctrl` `L` | Toggle smart guides -`Alt` | Toggle snap to grid on drag or resize -{.shortcuts} +| Shortcut | Action | +| ---------- | ------------------------------------- | +| `Ctrl` `'` | Toggle grid | +| `Ctrl` `\` | Toggle grid system | +| `Ctrl` `;` | Toggle custom guides | +| `Ctrl` `L` | Toggle smart guides | +| `Alt` | Toggle snap to grid on drag or resize | +{.shortcuts} ### View -Shortcut | Action ----|--- -`Ctrl` `+` | Zoom in -`Ctrl` `-` | Zoom out -`Ctrl` `0` | Zoom to 100% -`Ctrl` `1` | Fit to screen -`Ctrl` `2` | Zoom to selected layers, or fit all layers if none selected -`Ctrl` `3` | Center selected layer(s) in the canvas, or center on screen if none selected -`Ctrl` `Right` | Toggle right pane -`Ctrl` `Left` | Toggle left pane -`Space` | Pan canvas while keydown -{.shortcuts} +| Shortcut | Action | +| -------------- | ---------------------------------------------------------------------------- | +| `Ctrl` `+` | Zoom in | +| `Ctrl` `-` | Zoom out | +| `Ctrl` `0` | Zoom to 100% | +| `Ctrl` `1` | Fit to screen | +| `Ctrl` `2` | Zoom to selected layers, or fit all layers if none selected | +| `Ctrl` `3` | Center selected layer(s) in the canvas, or center on screen if none selected | +| `Ctrl` `Right` | Toggle right pane | +| `Ctrl` `Left` | Toggle left pane | +| `Space` | Pan canvas while keydown | +{.shortcuts} ### Item -Shortcut | Action ----|--- -`Ctrl` `Up` | Bring to front -`Ctrl` `Down` | Send to back -`Ctrl` `Shift` `Up` | Bring forward -`Ctrl` `Shift` `Down` | Send backwards -`(arrows)` | Move item -`Shift` `(arrows)` | Snap item -`Shift` | Lock drag direction (hold while dragging) -`R` | Insert rectangle -`O` | Insert oval -`L` | Insert line -`T` | Insert text -`I` | Insert interaction area -`Enter` | Enter selected container -{.shortcuts} +| Shortcut | Action | +| --------------------- | ----------------------------------------- | +| `Ctrl` `Up` | Bring to front | +| `Ctrl` `Down` | Send to back | +| `Ctrl` `Shift` `Up` | Bring forward | +| `Ctrl` `Shift` `Down` | Send backwards | +| `(arrows)` | Move item | +| `Shift` `(arrows)` | Snap item | +| `Shift` | Lock drag direction (hold while dragging) | +| `R` | Insert rectangle | +| `O` | Insert oval | +| `L` | Insert line | +| `T` | Insert text | +| `I` | Insert interaction area | +| `Enter` | Enter selected container | +{.shortcuts} ### Group -Shortcut | Action ----|--- -`Ctrl` `G` | Group selected -`Ctrl` `Shift` `G` | Ungroup selected -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------- | +| `Ctrl` `G` | Group selected | +| `Ctrl` `Shift` `G` | Ungroup selected | +{.shortcuts} ### States Preview -Shortcut | Action ----|--- -`Space` | Play or pause state transition -`.` | Forward state transition -`,` | Rewind state transition +| Shortcut | Action | +| -------- | ------------------------------ | +| `Space` | Play or pause state transition | +| `.` | Forward state transition | +| `,` | Rewind state transition | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Proto.io](https://support.proto.io/hc/en-us/articles/115001423511-Keyboard-shortcuts) _(support.proto.io)_ +- [Keyboard shortcuts for Proto.io](https://support.proto.io/hc/en-us/articles/115001423511-Keyboard-shortcuts) + _(support.proto.io)_ diff --git a/source/_posts/putty.md b/source/_posts/putty.md index 2de9184..85f45ff 100644 --- a/source/_posts/putty.md +++ b/source/_posts/putty.md @@ -2,64 +2,57 @@ title: PuTTy date: 2022-11-23 16:23:31.701654 background: bg-[#0403ed] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 32 keyboard shortcuts found on the PuTTy app + A visual cheat-sheet for the 32 keyboard shortcuts found on the PuTTy app --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General Shortcuts -Shortcut | Action ----|--- -`Ctrl` `(right click)` | Open context menu -`Ctrl` `A` | Jump to the start of the line -`Ctrl` `B` | Move back a character -`Ctrl` `C` | Terminal the command -`Ctrl` `D` | Delete from under the cursor -`Ctrl` `E` | Jump to the end of the line -`Ctrl` `F` | Move forward a character -`Ctrl` `K` | Delete to end-of-line -`Ctrl` `L` | Clear the screen -`Ctrl` `R` | Search the history backwards -`Ctrl` `Shift` `R` | Search the history backwards with multi occurrence -`Ctrl` `U` | Delete backward from cursor -`Ctrl` `X` `X` | Move between end-of-line and current cursor position -`Ctrl` `X` `@` | Show possible hostname completions -`Ctrl` `Z` | Suspend or stop the command -`Alt` `Left` | Move to the first line in the history -`Alt` `Right` | Move to the last line in the history -`Alt` `?` | Show current completion list -`Alt` `*` | Insert all possible completions -`Alt` `/` | Attempt to complete filename -`Alt` `.` | Yank last argument to previous command -`Alt` `B` | Move backward -`Alt` `C` | Capitalize the word -`Alt` `D` | Delete word -`Alt` `F` | Move forward -`Alt` `L` | Make word lowercase -`Alt` `N` | Search the history forwards non-incremental -`Alt` `P` | Search the history backwards non-incremental -`Alt` `R` | Recall command -`Alt` `T` | Move words around -`Alt` `U` | Make word uppercase -`Alt` `Backspace` | Delete backwards from the cursor +| Shortcut | Action | +| ---------------------- | ---------------------------------------------------- | +| `Ctrl` `(right click)` | Open context menu | +| `Ctrl` `A` | Jump to the start of the line | +| `Ctrl` `B` | Move back a character | +| `Ctrl` `C` | Terminal the command | +| `Ctrl` `D` | Delete from under the cursor | +| `Ctrl` `E` | Jump to the end of the line | +| `Ctrl` `F` | Move forward a character | +| `Ctrl` `K` | Delete to end-of-line | +| `Ctrl` `L` | Clear the screen | +| `Ctrl` `R` | Search the history backwards | +| `Ctrl` `Shift` `R` | Search the history backwards with multi occurrence | +| `Ctrl` `U` | Delete backward from cursor | +| `Ctrl` `X` `X` | Move between end-of-line and current cursor position | +| `Ctrl` `X` `@` | Show possible hostname completions | +| `Ctrl` `Z` | Suspend or stop the command | +| `Alt` `Left` | Move to the first line in the history | +| `Alt` `Right` | Move to the last line in the history | +| `Alt` `?` | Show current completion list | +| `Alt` `*` | Insert all possible completions | +| `Alt` `/` | Attempt to complete filename | +| `Alt` `.` | Yank last argument to previous command | +| `Alt` `B` | Move backward | +| `Alt` `C` | Capitalize the word | +| `Alt` `D` | Delete word | +| `Alt` `F` | Move forward | +| `Alt` `L` | Make word lowercase | +| `Alt` `N` | Search the history forwards non-incremental | +| `Alt` `P` | Search the history backwards non-incremental | +| `Alt` `R` | Recall command | +| `Alt` `T` | Move words around | +| `Alt` `U` | Make word uppercase | +| `Alt` `Backspace` | Delete backwards from the cursor | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for PuTTy](http://rizwanansari.net/putty-shell-keyboard-shortcuts/) _(rizwanansari.net)_ diff --git a/source/_posts/python.md b/source/_posts/python.md index 52470d7..fe5d718 100644 --- a/source/_posts/python.md +++ b/source/_posts/python.md @@ -3,30 +3,25 @@ title: Python date: 2020-12-23 18:41:20 background: bg-[#436b97] tags: - - script - - interpret + - script + - interpret categories: - - Programming + - Programming intro: | - The [Python](https://www.python.org/) cheat sheet is a one-page reference sheet for the Python 3 programming language. + The [Python](https://www.python.org/) cheat sheet is a one-page reference sheet for the Python 3 programming language. plugins: - - copyCode + - copyCode --- - - -Getting Started ---------------- - +## Getting Started ### Introduction -- [Python](https://www.python.org/) _(python.org)_ -- [Python Document](https://docs.python.org/3/index.html) _(docs.python.org)_ + +- [Python](https://www.python.org/) _(python.org)_ +- [Python Document](https://docs.python.org/3/index.html) _(docs.python.org)_ - [Learn X in Y minutes](https://learnxinyminutes.com/docs/python/) _(learnxinyminutes.com)_ - [Regex in python](/regex#regex-in-python) _(cheatsheets.zip)_ - - ### Hello World ```python @@ -36,8 +31,8 @@ Hello, World! The famous "Hello World" program in Python - ### Variables + ```python age = 18 # age is of type int name = "John" # name is now of type str @@ -46,11 +41,10 @@ print(name) Python can't declare a variable without assignment. - - ### Data Types {.row-span-2} + | | | -|------------------------------------|----------| +| ---------------------------------- | -------- | | `str` | Text | | `int`, `float`, `complex` | Numeric | | `list`, `tuple`, `range` | Sequence | @@ -58,8 +52,8 @@ Python can't declare a variable without assignment. | `set`, `frozenset` | Set | | `bool` | Boolean | | `bytes`, `bytearray`, `memoryview` | Binary | -See: [Data Types](#python-data-types) +See: [Data Types](#python-data-types) ### Slicing String @@ -72,6 +66,7 @@ llo See: [Strings](#python-strings) ### Lists + ```python mylist = [] mylist.append(1) @@ -82,8 +77,8 @@ for item in mylist: See: [Lists](#python-lists) +### If Else -### If Else ```python num = 200 if num > 0: @@ -91,9 +86,11 @@ if num > 0: else: print("num is not greater than 0") ``` + See: [Flow control](#python-flow-control) ### Loops + ```python for item in range(6): if item == 3: break @@ -101,10 +98,11 @@ for item in range(6): else: print("Finally finished!") ``` + See: [Loops](#python-loops) - ### Functions + ```python >>> def my_function(): ... print("Hello from a function") @@ -115,8 +113,8 @@ Hello from a function See: [Functions](#python-functions) - ### File Handling {.col-span-2} + ```python with open("myfile.txt", "r", encoding='utf8') as file: for line in file: @@ -125,9 +123,8 @@ with open("myfile.txt", "r", encoding='utf8') as file: See: [File Handling](#python-file-handling) - - ### Arithmetic + ```python result = 10 + 30 # => 40 result = 40 - 10 # => 30 @@ -136,10 +133,13 @@ result = 16 / 4 # => 4.0 (Float Division) result = 16 // 4 # => 4 (Integer Division) result = 25 % 2 # => 1 result = 5 ** 3 # => 125 -``` -The `/` means quotient of x and y, and the `//` means floored quotient of x and y, also see [StackOverflow](https://stackoverflow.com/a/183870/13192320) +``` + +The `/` means quotient of x and y, and the `//` means floored quotient of x and y, also see +[StackOverflow](https://stackoverflow.com/a/183870/13192320) ### Plus-Equals + ```python counter = 0 counter += 10 # => 10 @@ -149,10 +149,11 @@ counter = counter + 10 # => 10 message = "Part 1." # => Part 1.Part 2. -message += "Part 2." +message += "Part 2." ``` ### f-Strings (Python 3.6+) + ```python >>> website = 'Quickref.ME' >>> f"Hello, {website}" @@ -162,14 +163,10 @@ message += "Part 2." >>> f'{num} + 10 = {num + 10}' '10 + 10 = 20' ``` + See: [Python F-Strings](#python-f-strings-since-python-3-6) - - -Python Built-in Data Types ---------------- - - +## Python Built-in Data Types ### Strings @@ -181,11 +178,11 @@ multi_string = """Multiline Strings Lorem ipsum dolor sit amet, consectetur adipiscing elit """ ``` + See: [Strings](#python-strings) - - ### Numbers + ```python x = 1 # int y = 2.8 # float @@ -195,47 +192,47 @@ z = 1j # complex ``` - - ### Booleans + ```python -my_bool = True +my_bool = True my_bool = False bool(0) # => False bool(1) # => True ``` - - ### Lists + ```python list1 = ["apple", "banana", "cherry"] list2 = [True, False, False] list3 = [1, 5, 7, 9, 3] list4 = list((1, 5, 7, 9, 3)) ``` + See: [Lists](#python-lists) - ### Tuple + ```python my_tuple = (1, 2, 3) my_tuple = tuple((1, 2, 3)) ``` -Similar to List but immutable +Similar to List but immutable ### Set + ```python -set1 = {"a", "b", "c"} +set1 = {"a", "b", "c"} set2 = set(("a", "b", "c")) ``` + Set of unique items/objects - - ### Dictionary + ```python {.wrap} >>> empty_dict = {} >>> a = {"one": 1, "two": 2, "three": 3} @@ -251,12 +248,13 @@ dict_keys(['one', 'two', 'three', 'four']) >>> a['four'] 4 ``` -Key: Value pair, JSON like object +Key: Value pair, JSON like object ### Casting #### Integers + ```python x = int(1) # x will be 1 y = int(2.8) # y will be 2 @@ -264,6 +262,7 @@ z = int("3") # z will be 3 ``` #### Floats + ```python x = float(1) # x will be 1.0 y = float(2.8) # y will be 2.8 @@ -272,15 +271,17 @@ w = float("4.2") # w will be 4.2 ``` #### Strings + ```python x = str("s1") # x will be 's1' y = str(2) # y will be '2' z = str(3.0) # z will be '3.0' ``` -Python Advanced Data Types ------------------------ +## Python Advanced Data Types + ### Heaps {.col-span-2 .row-span-3} + ```python import heapq @@ -293,7 +294,9 @@ heapq.heappush(myList, 10) # insert 10 x = heapq.heappop(myList) # pop and return smallest item print(x) # => 1 ``` -#### Negate all values to use Min Heap as Max Heap + +#### Negate all values to use Min Heap as Max Heap + ```python myList = [9, 5, 4, 1, 3, 2] myList = [-val for val in myList] # multiply by -1 to negate @@ -302,9 +305,13 @@ heapq.heapify(myList) x = heapq.heappop(myList) print(-x) # => 9 (making sure to multiply by -1 again) ``` -Heaps are binary trees for which every parent node has a value less than or equal to any of its children. Useful for accessing min/max value quickly. Time complexity: O(n) for heapify, O(log n) push and pop. See: [Heapq](https://docs.python.org/3/library/heapq.html) + +Heaps are binary trees for which every parent node has a value less than or equal to any of its children. Useful for +accessing min/max value quickly. Time complexity: O(n) for heapify, O(log n) push and pop. See: +[Heapq](https://docs.python.org/3/library/heapq.html) ### Stacks and Queues {.row-span-3} + ```python from collections import deque @@ -324,12 +331,11 @@ print(q) # => deque([1, 2, 3]) q.rotate(1) # rotate 1 step to the right print(q) # => deque([3, 1, 2]) ``` -Deque is a double-ended queue with O(1) time for append/pop operations from both sides. Used as stacks and queues. See: [Deque](https://docs.python.org/3/library/collections.html#collections.deque) +Deque is a double-ended queue with O(1) time for append/pop operations from both sides. Used as stacks and queues. See: +[Deque](https://docs.python.org/3/library/collections.html#collections.deque) - -Python Strings ------------- +## Python Strings ### Array-like @@ -340,6 +346,7 @@ e >>> print(hello[-1]) d ``` + Get the character at position 1 or last ### Looping @@ -351,11 +358,11 @@ f o o ``` + Loop through the letters in the word "foo" - - ### Slicing string {.row-span-4} + ```java ┌───┬───┬───┬───┬───┬───┬───┐ | m | y | b | a | c | o | n | @@ -374,7 +381,6 @@ Loop through the letters in the word "foo" 'my' ``` - ```python >>> s = 'mybacon' >>> s[:2] @@ -387,7 +393,6 @@ Loop through the letters in the word "foo" 'mybacon' ``` - ```python >>> s = 'mybacon' >>> s[-5:-1] @@ -396,8 +401,8 @@ Loop through the letters in the word "foo" 'baco' ``` - #### With a stride + ```python >>> s = '12345' * 5 >>> s @@ -412,22 +417,18 @@ Loop through the letters in the word "foo" '5432154321543215432154321' ``` - - - - ### String Length - ```python >>> hello = "Hello, World!" >>> print(len(hello)) 13 ``` + The len() function returns the length of a string - ### Multiple copies + ```python >>> s = '===+' >>> n = 8 @@ -447,6 +448,7 @@ True ``` ### Concatenates + ```python >>> s = 'spam' >>> t = 'egg' @@ -456,8 +458,8 @@ True 'spamegg' ``` +### Formatting {.col-span-2} -### Formatting {.col-span-2} ```python name = "John" print("Hello, %s!" % name) @@ -470,6 +472,7 @@ print("%s is %d years old." % (name, age)) ``` #### format() Method + ```python txt1 = "My name is {fname}, I'm {age}".format(fname="John", age=36) txt2 = "My name is {0}, I'm {1}".format("John", 36) @@ -477,32 +480,34 @@ txt3 = "My name is {}, I'm {}".format("John", 36) ``` ### Input + ```python >>> name = input("Enter your name: ") Enter your name: Tom >>> name 'Tom' ``` + Get input data from console - ### Join + ```python >>> "#".join(["John", "Peter", "Vicky"]) 'John#Peter#Vicky' ``` ### Endswith + ```python >>> "Hello, world!".endswith("!") True ``` -Python F-Strings (Since Python 3.6+) ----------------- - +## Python F-Strings (Since Python 3.6+) ### f-Strings usage + ```python >>> website = 'Quickref.ME' >>> f"Hello, {website}" @@ -527,11 +532,12 @@ Python F-Strings (Since Python 3.6+) ... I'm {age}.""" "Hello!\n I'm Eric.\n I'm 27." ``` -it is available since Python 3.6, also see: [Formatted string literals](https://docs.python.org/3/reference/lexical_analysis.html#f-strings) - +it is available since Python 3.6, also see: +[Formatted string literals](https://docs.python.org/3/reference/lexical_analysis.html#f-strings) ### f-Strings Fill Align + ```python >>> f'{"text":10}' # [width] 'text ' @@ -545,8 +551,8 @@ it is available since Python 3.6, also see: [Formatted string literals](https:// '0000012345' ``` - ### f-Strings Type + ```python >>> f'{10:b}' # binary type '1010' @@ -568,8 +574,8 @@ it is available since Python 3.6, also see: [Formatted string literals](https:// '0xa' ``` - ### F-Strings Others + ```python >>> f'{-12345:0=10}' # negative numbers '-000012345' @@ -592,8 +598,8 @@ it is available since Python 3.6, also see: [Formatted string literals](https:// '25%' ``` - ### F-Strings Sign + ```python >>> f'{12345:+}' # [sign] (+/-) '+12345' @@ -605,12 +611,10 @@ it is available since Python 3.6, also see: [Formatted string literals](https:// '-000012345' ``` -Python Lists ------------- - - +## Python Lists ### Defining + ```python >>> li1 = [] >>> li1 @@ -626,9 +630,8 @@ Python Lists [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] ``` - - ### Generate {.col-span-2} + ```python >>> list(filter(lambda x : x % 2 == 1, range(1, 20))) [1, 3, 5, 7, 9, 11, 13, 15, 17, 19] @@ -643,8 +646,8 @@ Python Lists [6, 7] ``` - ### Append + ```python >>> li = [] >>> li.append(1) @@ -661,14 +664,17 @@ Python Lists [1, 2, 4, 3] ``` - ### List Slicing {.col-span-2 .row-span-3} + Syntax of list slicing: + ```python a_list[start:end] a_list[start:end:step] ``` + #### Slicing + ```python >>> a = ['spam', 'egg', 'bacon', 'tomato', 'ham', 'lobster'] >>> a[2:5] @@ -678,7 +684,9 @@ a_list[start:end:step] >>> a[1:4] ['egg', 'bacon', 'tomato'] ``` + #### Omitting index + ```python >>> a[:4] ['spam', 'egg', 'bacon', 'tomato'] @@ -693,7 +701,9 @@ a_list[start:end:step] >>> a[:] ['spam', 'egg', 'bacon', 'tomato', 'ham', 'lobster'] ``` + #### With a stride + ```python ['spam', 'egg', 'bacon', 'tomato', 'ham', 'lobster'] >>> a[0:6:2] @@ -708,10 +718,8 @@ a_list[start:end:step] ['lobster', 'ham', 'tomato', 'bacon', 'egg', 'spam'] ``` - - - ### Remove + ```python >>> li = ['bread', 'butter', 'milk'] >>> li.pop() @@ -723,11 +731,8 @@ a_list[start:end:step] ['butter'] ``` - - - - ### Access + ```python >>> li = ['a', 'b', 'c', 'd'] >>> li[0] @@ -740,8 +745,8 @@ Traceback (most recent call last): IndexError: list index out of range ``` +### Concatenating {.row-span-2} -### Concatenating {.row-span-2} ```python >>> odd = [1, 3, 5] >>> odd.extend([9, 11, 13]) @@ -752,8 +757,8 @@ IndexError: list index out of range [1, 3, 5, 9, 11, 13] ``` - ### Sort & Reverse {.row-span-2} + ```python >>> li = [3, 1, 3, 2, 5] >>> li.sort() @@ -764,26 +769,26 @@ IndexError: list index out of range [5, 3, 3, 2, 1] ``` - ### Count + ```python >>> li = [3, 1, 3, 2, 5] >>> li.count(3) 2 ``` - ### Repeating + ```python >>> li = ["re"] * 3 >>> li ['re', 're', 're'] ``` -Python Flow control ------------- +## Python Flow control ### Basic + ```python num = 5 if num > 10: @@ -795,6 +800,7 @@ else: ``` ### One line + ```python >>> a = 330 >>> b = 200 @@ -828,11 +834,7 @@ match x: print("multiple") ``` - - - -Python Loops --------- +## Python Loops ### Basic @@ -841,11 +843,9 @@ primes = [2, 3, 5, 7] for prime in primes: print(prime) ``` + Prints: 2 3 5 7 - - - ### With index ```python @@ -854,23 +854,22 @@ animals = ["dog", "cat", "mouse"] for i, value in enumerate(animals): print(i, value) ``` + Prints: 0 dog 1 cat 2 mouse - - ### While + ```python x = 0 while x < 4: print(x) x += 1 # Shorthand for x = x + 1 ``` + Prints: 0 1 2 3 - - - ### Break + ```python x = 0 for index in range(10): @@ -879,24 +878,23 @@ for index in range(10): break print(x) ``` + Prints: 0 10 20 30 40 - - ### Continue ```python -for index in range(3, 8): +for index in range(3, 8): x = index * 10 if index == 5: continue print(x) ``` + Prints: 30 40 60 70 - - ### Range + ```python for i in range(4): print(i) # Prints: 0 1 2 3 @@ -908,9 +906,8 @@ for i in range(4, 10, 2): print(i) # Prints: 4 6 8 ``` - - ### With zip() + ```python words = ['Mon', 'Tue', 'Wed'] nums = [1, 2, 3] @@ -918,11 +915,11 @@ nums = [1, 2, 3] for w, n in zip(words, nums): print('%d:%s, ' %(n, w)) ``` + Prints: 1:Mon, 2:Tue, 3:Wed, - - ### for/else + ```python nums = [60, 70, 30, 110, 90] for n in nums: @@ -932,23 +929,18 @@ for n in nums: else: print("Not found!") ``` + Also see: [Python Tips](https://book.pythontips.com/en/latest/for_-_else.html) - - - -Python Functions --------- +## Python Functions ### Basic ```python -def hello_world(): +def hello_world(): print('Hello, World!') ``` - - ### Return ```python @@ -960,6 +952,7 @@ add(5, 6) # => 11 ``` ### Positional arguments + ```python def varargs(*args): return args @@ -969,8 +962,8 @@ varargs(1, 2, 3) # => (1, 2, 3) Type of "args" is tuple. - ### Keyword arguments + ```python def keyword_args(**kwargs): return kwargs @@ -981,8 +974,8 @@ keyword_args(big="foot", loch="ness") Type of "kwargs" is dict. - ### Returning multiple + ```python def swap(x, y): return y, x @@ -992,8 +985,8 @@ y = 2 x, y = swap(x, y) # => x = 2, y = 1 ``` - ### Default Value + ```python def add(x, y=10): return x + y @@ -1003,6 +996,7 @@ add(5, 20) # => 25 ``` ### Anonymous functions + ```python # => True (lambda x: x > 2)(3) @@ -1011,19 +1005,15 @@ add(5, 20) # => 25 (lambda x, y: x ** 2 + y ** 2)(2, 1) ``` - - -Python Modules --------- - +## Python Modules ### Import modules + ```python import math print(math.sqrt(16)) # => 4.0 ``` - ### From a module ```python @@ -1032,15 +1022,13 @@ print(ceil(3.7)) # => 4.0 print(floor(3.7)) # => 3.0 ``` - ### Import all ```python from math import * ``` - -### Shorten module +### Shorten module ```python import math as m @@ -1049,7 +1037,6 @@ import math as m math.sqrt(16) == m.sqrt(16) ``` - ### Functions and attributes ```python @@ -1057,30 +1044,30 @@ import math dir(math) ``` - - -Python File Handling ----------- - +## Python File Handling ### Read file + #### Line by line + ```python with open("myfile.txt") as file: for line in file: print(line) ``` + #### With line number + ```python file = open('myfile.txt', 'r') for i, line in enumerate(file, start=1): print("Number %s: %s" % (i, line)) ``` - ### String #### Write a string + ```python contents = {"aa": 12, "bb": 21} with open("myfile1.txt", "w+") as file: @@ -1088,6 +1075,7 @@ with open("myfile1.txt", "w+") as file: ``` #### Read a string + ```python with open('myfile1.txt', "r+") as file: contents = file.read() @@ -1097,6 +1085,7 @@ print(contents) ### Object #### Write an object + ```python contents = {"aa": 12, "bb": 21} with open("myfile2.txt", "w+") as file: @@ -1104,13 +1093,13 @@ with open("myfile2.txt", "w+") as file: ``` #### Read an object + ```python with open('myfile2.txt', "r+") as file: contents = json.load(file) print(contents) ``` - ### Delete a File ```python @@ -1118,8 +1107,6 @@ import os os.remove("myfile.txt") ``` - - ### Check and Delete ```python @@ -1130,7 +1117,6 @@ else: print("The file does not exist") ``` - ### Delete Folder ```python @@ -1138,13 +1124,7 @@ import os os.rmdir("myfolder") ``` - - - - -Python Classes & Inheritance --------- - +## Python Classes & Inheritance ### Defining @@ -1156,39 +1136,34 @@ class MyNewClass: my = MyNewClass() ``` - - ### Constructors ```python class Animal: def __init__(self, voice): self.voice = voice - + cat = Animal('Meow') print(cat.voice) # => Meow - -dog = Animal('Woof') + +dog = Animal('Woof') print(dog.voice) # => Woof ``` - - ### Method + ```python class Dog: # Method of the class def bark(self): print("Ham-Ham") - + charlie = Dog() charlie.bark() # => "Ham-Ham" ``` - - -### Class Variables {.row-span-2} +### Class Variables {.row-span-2} ```python class MyClass: @@ -1198,27 +1173,26 @@ class MyClass: print(MyClass.class_variable) x = MyClass() - + # => A class variable! print(x.class_variable) ``` - - ### Super() Function {.row-span-2} ```python class ParentClass: def print_test(self): print("Parent Method") - + class ChildClass(ParentClass): def print_test(self): print("Child Method") # Calls the parent's print_test() - super().print_test() -``` ---- + super().print_test() +``` + +--- ```python >>> child_instance = ChildClass() @@ -1227,89 +1201,82 @@ Child Method Parent Method ``` - - - ### repr() method ```python class Employee: def __init__(self, name): self.name = name - + def __repr__(self): return self.name - + john = Employee('John') print(john) # => John ``` - ### User-defined exceptions + ```python class CustomError(Exception): pass ``` - - ### Polymorphism ```python class ParentClass: def print_self(self): print('A') - + class ChildClass(ParentClass): def print_self(self): print('B') - + obj_A = ParentClass() obj_B = ChildClass() - + obj_A.print_self() # => A obj_B.print_self() # => B ``` -### Overriding +### Overriding + ```python class ParentClass: def print_self(self): print("Parent") - + class ChildClass(ParentClass): def print_self(self): print("Child") - + child_instance = ChildClass() child_instance.print_self() # => Child ``` ### Inheritance + ```python -class Animal: +class Animal: def __init__(self, name, legs): self.name = name self.legs = legs - + class Dog(Animal): def sound(self): print("Woof!") - + Yoki = Dog("Yoki", 4) print(Yoki.name) # => YOKI print(Yoki.legs) # => 4 Yoki.sound() # => Woof! ``` - - - -Python Type Hints (Since Python 3.5) --------- - +## Python Type Hints (Since Python 3.5) ### Variable & Parameter + ```python string: str = "ha" times: int = 3 @@ -1326,8 +1293,8 @@ def say(name: str, start: str = "Hi"): print(say("Python")) # => Hi, Python ``` - ### Built-in date type + ```python from typing import Dict, Tuple, List @@ -1344,8 +1311,8 @@ statuses: Tuple[str, ...] = ( codes: List[int] = (0, 1, -1, -2) ``` - ### Built-in date type (3.10+) + ```python bill: dict[str, float] = { "apple": 3.14, @@ -1360,8 +1327,8 @@ statuses: tuple[str, ...] = ( codes: list[int] = (0, 1, -1, -2) ``` - ### Positional argument + ```python def calc_summary(*args: int): return sum(args) @@ -1371,8 +1338,8 @@ print(calc_summary(3, 1, 4)) # => 8 Indicate all arguments' type is int. - ### Returned + ```python def say_hello(name) -> str: return "Hello, " + name @@ -1381,8 +1348,8 @@ var = "Python" print(say_hello(var)) # => Hello, Python ``` - ### Union returned + ```python from typing import Union @@ -1392,8 +1359,8 @@ def resp200(meaningful) -> Union[int, str]: Means returned value type may be int or str. - ### Keyword argument + ```python def calc_summary(**kwargs: int): return sum(kwargs.values()) @@ -1403,8 +1370,8 @@ print(calc_summary(a=1, b=2)) # => 3 Indicate all parameters' value type is int. - ### Multiple returns + ```python def resp200() -> (int, str): return 200, "OK" @@ -1414,8 +1381,8 @@ print(returns) # => (200, 'OK') print(type(returns)) # tuple ``` - ### Union returned (3.10+) + ```python def resp200(meaningful) -> int | str: return "OK" if meaningful else 200 @@ -1423,8 +1390,8 @@ def resp200(meaningful) -> int | str: Since Python 3.10 - ### Property + ```python class Employee: name: str @@ -1436,8 +1403,8 @@ class Employee: self.graduated: bool = False ``` - ### Self instance + ```python class Employee: name: str @@ -1450,8 +1417,8 @@ class Employee: return type(self)(self.name) ``` - ### Self instance (3.11+) + ```python from typing import Self @@ -1464,8 +1431,8 @@ class Employee: return self ``` - ### Type & Generic {.col-span-2} + ```python from typing import TypeVar, Type @@ -1484,8 +1451,8 @@ raw: str = input("Enter an integer: ") result: int = converter(raw, mapper=int, default=0) ``` - ### Function {.col-span-2} + ```python from typing import TypeVar, Callable, Any @@ -1516,11 +1483,7 @@ resp = dict(code=0, message="OK", data=[]) successed: bool = converter(resp["message"], mapper=is_success, default=False) ``` - - - -Miscellaneous ----------- +## Miscellaneous ### Comments @@ -1534,6 +1497,7 @@ Miscellaneous as documentation. """ ``` + ```python ''' Multiline strings can be written using three 's, and are often used @@ -1541,8 +1505,8 @@ Miscellaneous ''' ``` - ### Generators + ```python def double_numbers(iterable): for i in iterable: @@ -1551,8 +1515,8 @@ def double_numbers(iterable): Generators help you make lazy code. - ### Generator to list + ```python values = (-x for x in [1,2,3,4,5]) gen_to_list = list(values) @@ -1561,8 +1525,8 @@ gen_to_list = list(values) print(gen_to_list) ``` - ### Handle exceptions {.col-span-3} + ```python try: # Use "raise" to raise an error diff --git a/source/_posts/pytorch.md b/source/_posts/pytorch.md index fac0124..0094273 100644 --- a/source/_posts/pytorch.md +++ b/source/_posts/pytorch.md @@ -58,7 +58,6 @@ onnx.helper.printable_graph(model.graph) # print a human readable ### Vision - ``` from torchvision import datasets, models, transforms # vision datasets, # architectures & @@ -220,4 +219,4 @@ sampler.Sampler(dataset,...) # abstract class dealing with sampler.XSampler where ... # Sequential, Random, SubsetRandom, # WeightedRandom, Batch, Distributed -``` \ No newline at end of file +``` diff --git a/source/_posts/quip.md b/source/_posts/quip.md index f827cad..e71ff19 100644 --- a/source/_posts/quip.md +++ b/source/_posts/quip.md @@ -2,105 +2,99 @@ title: Quip.com date: 2022-11-23 16:23:31.697261 background: bg-[#e4795b] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 52 keyboard shortcuts found in Quip + A visual cheat-sheet for the 52 keyboard shortcuts found in Quip --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Anywhere -Shortcut | Action ----|--- -\` | Toggle styles between different types of headings and lists -`Tab` | Indent a list item -`Shift` `Tab` | De-indent a list item -`Shift` `Enter` | Add a single space between lines -`Esc` | Stop editing -`Ctrl` `/` | List all keyboard shortcuts -`Ctrl` `Alt` `Shift` `N` | Create a new ... -`Ctrl` `Alt` `N` | Create a new document -`Ctrl` `Alt` `M` | Create a new message -`Ctrl` `Shift` `D` | Go to the desktop -`Ctrl` `Alt` `O` | Search for a document, folder, or conversation -`Ctrl` `Alt` `Left/Right` | Move between tabs in the desktop app -{.shortcuts} +| Shortcut | Action | +| ------------------------- | ----------------------------------------------------------- | +| \` | Toggle styles between different types of headings and lists | +| `Tab` | Indent a list item | +| `Shift` `Tab` | De-indent a list item | +| `Shift` `Enter` | Add a single space between lines | +| `Esc` | Stop editing | +| `Ctrl` `/` | List all keyboard shortcuts | +| `Ctrl` `Alt` `Shift` `N` | Create a new ... | +| `Ctrl` `Alt` `N` | Create a new document | +| `Ctrl` `Alt` `M` | Create a new message | +| `Ctrl` `Shift` `D` | Go to the desktop | +| `Ctrl` `Alt` `O` | Search for a document, folder, or conversation | +| `Ctrl` `Alt` `Left/Right` | Move between tabs in the desktop app | +{.shortcuts} ### Style Shortcuts -Shortcut | Action ----|--- -`Ctrl` `B` | Bold the selected text -`Ctrl` `I` | Italicize the selected text -`Ctrl` `U` | Underline the selected text -`Ctrl` `Shift` `X` | Strikethrough the selected text -`Ctrl` `Shift` `K` | Monospace (code style) the selected text -`Ctrl` `Alt` `0` | Paragraph (normal text style) -`Ctrl` `Alt` `1` | Large heading style -`Ctrl` `Alt` `2` | Medium heading style -`Ctrl` `Alt` `3` | Small heading style -`Ctrl` `Shift` `L` | Bulleted list style -`Ctrl` `Alt` `K` | Code block style -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------------------------- | +| `Ctrl` `B` | Bold the selected text | +| `Ctrl` `I` | Italicize the selected text | +| `Ctrl` `U` | Underline the selected text | +| `Ctrl` `Shift` `X` | Strikethrough the selected text | +| `Ctrl` `Shift` `K` | Monospace (code style) the selected text | +| `Ctrl` `Alt` `0` | Paragraph (normal text style) | +| `Ctrl` `Alt` `1` | Large heading style | +| `Ctrl` `Alt` `2` | Medium heading style | +| `Ctrl` `Alt` `3` | Small heading style | +| `Ctrl` `Shift` `L` | Bulleted list style | +| `Ctrl` `Alt` `K` | Code block style | +{.shortcuts} ### Editing Shortcuts -Shortcut | Action ----|--- -`Ctrl` `Alt` `Up` | Move a list item up one line -`Ctrl` `Alt` `Down` | Move a list item down one line -`Ctrl` `Enter` | Check a list item -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo -`Ctrl` `X` | Cut -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `P` | Print document -`Ctrl` `K` | Insert link -`Ctrl` `N` | Next line -`Ctrl` `P` | Previous line -`Ctrl` `Alt` `C` | Hide or show conversation -`Ctrl` `Shift` `C` | Add a comment -`Ctrl` `Alt` `S` | Finish edit session -`Ctrl` `Shift` `A` | Create an anchor link -{.shortcuts} +| Shortcut | Action | +| ------------------- | ------------------------------ | +| `Ctrl` `Alt` `Up` | Move a list item up one line | +| `Ctrl` `Alt` `Down` | Move a list item down one line | +| `Ctrl` `Enter` | Check a list item | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo | +| `Ctrl` `X` | Cut | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `P` | Print document | +| `Ctrl` `K` | Insert link | +| `Ctrl` `N` | Next line | +| `Ctrl` `P` | Previous line | +| `Ctrl` `Alt` `C` | Hide or show conversation | +| `Ctrl` `Shift` `C` | Add a comment | +| `Ctrl` `Alt` `S` | Finish edit session | +| `Ctrl` `Shift` `A` | Create an anchor link | +{.shortcuts} ### Spreadsheets -Shortcut | Action ----|--- -`Ctrl` `(arrows)` | Move to the edge of dat or the next non-empty cell -`Ctrl` `Shift` `(arrows)` | Expand select to the edge of data or the next non-empty cell -`Shift` `Space` | Select row -`Ctrl` `Space` | Select column -`Ctrl` `Enter` | Fill selection with entered text -`Ctrl` `D` | Fill down in selection -`Ctrl` `R` | Fill right in selection -`Ctrl` `Backspace` | Scroll focused cell into view -`Ctrl` `I` | Insert above or in front of selected rows or columns -`Ctrl` `-` | Remove selected rows or columns -`Ctrl` `;` | Insert current time -`Ctrl` `:` | Insert today's date -`Alt` `Enter` | Hard return within a cell +| Shortcut | Action | +| ------------------------- | ------------------------------------------------------------ | +| `Ctrl` `(arrows)` | Move to the edge of dat or the next non-empty cell | +| `Ctrl` `Shift` `(arrows)` | Expand select to the edge of data or the next non-empty cell | +| `Shift` `Space` | Select row | +| `Ctrl` `Space` | Select column | +| `Ctrl` `Enter` | Fill selection with entered text | +| `Ctrl` `D` | Fill down in selection | +| `Ctrl` `R` | Fill right in selection | +| `Ctrl` `Backspace` | Scroll focused cell into view | +| `Ctrl` `I` | Insert above or in front of selected rows or columns | +| `Ctrl` `-` | Remove selected rows or columns | +| `Ctrl` `;` | Insert current time | +| `Ctrl` `:` | Insert today's date | +| `Alt` `Enter` | Hard return within a cell | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Quip](https://www.quipsupport.com/hc/en-us/articles/210436306-What-are-Quip-s-keyboard-shortcuts-) _(www.quipsupport.com)_ +- [Keyboard shortcuts for Quip](https://www.quipsupport.com/hc/en-us/articles/210436306-What-are-Quip-s-keyboard-shortcuts-) + _(www.quipsupport.com)_ diff --git a/source/_posts/reddit.md b/source/_posts/reddit.md index 97e3c0b..2a81d21 100644 --- a/source/_posts/reddit.md +++ b/source/_posts/reddit.md @@ -2,56 +2,49 @@ title: Reddit date: 2022-11-23 16:23:31.705575 background: bg-[#eb5528] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 17 keyboard shortcuts found on Reddit.com + A visual cheat-sheet for the 17 keyboard shortcuts found on Reddit.com --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Navigation -Shortcut | Action ----|--- -`Shift` `?` | Show shortcuts -`J` | Next post or comment -`K` | Previous post or comment -`N` | Next post in lightbox -`P` | Previous post in lightbox -`Enter` | Open post -`X` | Open or close expando -`L` | Go to post link -{.shortcuts} +| Shortcut | Action | +| ----------- | ------------------------- | +| `Shift` `?` | Show shortcuts | +| `J` | Next post or comment | +| `K` | Previous post or comment | +| `N` | Next post in lightbox | +| `P` | Previous post in lightbox | +| `Enter` | Open post | +| `X` | Open or close expando | +| `L` | Go to post link | +{.shortcuts} ### Action -Shortcut | Action ----|--- -`A` | Upvote -`Z` | Downvote -`C` | New post -`R` | Reply to comments -`Ctrl` `Enter` | Submit comment or post -`S` | Save -`H` | Hide -`Q` | Open navigation -`Enter` | Collapse or expand comment +| Shortcut | Action | +| -------------- | -------------------------- | +| `A` | Upvote | +| `Z` | Downvote | +| `C` | New post | +| `R` | Reply to comments | +| `Ctrl` `Enter` | Submit comment or post | +| `S` | Save | +| `H` | Hide | +| `Q` | Open navigation | +| `Enter` | Collapse or expand comment | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Reddit](https://i.imgur.com/7644kEy.png) _(i.imgur.com)_ diff --git a/source/_posts/redis.md b/source/_posts/redis.md index 7a9863a..da30b07 100644 --- a/source/_posts/redis.md +++ b/source/_posts/redis.md @@ -2,46 +2,49 @@ title: Redis background: bg-[#c13b2c] tags: - - cache + - cache categories: - - Database + - Database date: 2020-12-26 19:33:15 intro: | - This is a [redis](https://redis.io/) quick reference cheat sheet that lists examples of redis commands + This is a [redis](https://redis.io/) quick reference cheat sheet that lists examples of redis commands plugins: - - copyCode + - copyCode --- - - -Getting Started ---------------- +## Getting Started ### Getting started Start Redis + ```shell script $ redis-server ``` + Connect to redis (Redis CLI client) + ```shell script $ redis-cli ``` + Connect to redis (telnet) + ```shell script $ telnet 127.0.0.1 6379 ``` - ### Hello World #### Ping + ```shell script redis> PING PONG ``` #### Hello World + ```shell script redis> SET mykey "Hello world" OK @@ -49,8 +52,8 @@ redis> GET mykey "Hello world" ``` - ### Basic Data types + - [Strings](#redis-string-command) - [Lists](#redis-list-command) - [Hashes](#redis-hash-command) @@ -59,19 +62,16 @@ redis> GET mykey Redis supports 5 basic data types +## Redis String command{.cols-3} +### APPEND - -Redis String command{.cols-3} ------------- - - -### APPEND - -``` {.wrap} +```{.wrap} APPEND key value ``` + #### Example + ```shell script redis> EXISTS mykey (integer) 0 @@ -82,15 +82,17 @@ redis> APPEND mykey " World" redis> GET mykey "Hello World" ``` + Append a value to a key +### BITCOUNT -### BITCOUNT - -``` {.wrap} +```{.wrap} BITCOUNT key [start end] ``` + #### Example + ```shell script redis> SET mykey "foobar" "OK" @@ -101,31 +103,33 @@ redis> BITCOUNT mykey 0 0 redis> BITCOUNT mykey 1 1 (integer) 6 ``` + Count set bits in a string +### BITFIELD - - -### BITFIELD - -``` {.wrap} +```{.wrap} BITFIELD key [GET type offset] [SET type offset value] [INCRBY type offset increment] [OVERFLOW WRAP|SAT|FAIL] ``` + #### Example + ```shell script redis> BITFIELD mykey INCRBY i5 100 1 GET u4 0 1) (integer) 1 2) (integer) 0 ``` + Perform arbitrary bitfield integer operations on strings +### BITOP -### BITOP - -``` {.wrap} +```{.wrap} BITOP operation destkey key [key ...] ``` + #### Example + ```shell script redis> SET key1 "foobar" "OK" @@ -136,15 +140,17 @@ redis> BITOP AND dest key1 key2 redis> GET dest "`bc`ab" ``` + Perform bitwise operations between strings +### BITPOS -### BITPOS - -``` {.wrap} +```{.wrap} BITPOS key bit [start] [end] ``` + #### Example + ```shell script redis> SET mykey "\xff\xf0\x00" "OK" @@ -161,15 +167,17 @@ redis> set mykey "\x00\x00\x00" redis> BITPOS mykey 1 (integer) -1 ``` + Find first bit set or clear in a string +### DECR -### DECR - -``` {.wrap} +```{.wrap} DECR key ``` + #### Example + ```shell script redis> SET mykey "10" "OK" @@ -180,30 +188,34 @@ redis> SET mykey "234293482390480948029348230948" redis> DECR mykey ERR ERR value is not an integer or out of range ``` + Decrement the integer value of a key by one +### DECRBY -### DECRBY - -``` {.wrap} +```{.wrap} DECRBY key decrement ``` + #### Example + ```shell script redis> SET mykey "10" "OK" redis> DECRBY mykey 3 (integer) 7 ``` + Decrement the integer value of a key by the given number +### GET -### GET - -``` {.wrap} +```{.wrap} GET key ``` + #### Example + ```shell script redis> GET nonexisting (nil) @@ -212,15 +224,17 @@ redis> SET mykey "Hello" redis> GET mykey "Hello" ``` + Get the value of a key +### GETBIT -### GETBIT - -``` {.wrap} +```{.wrap} GETBIT key offset ``` + #### Example + ```shell script redis> SETBIT mykey 7 1 (integer) 0 @@ -231,15 +245,17 @@ redis> GETBIT mykey 7 redis> GETBIT mykey 100 (integer) 0 ``` + Returns the bit value at offset in the string value stored at key +### GETRANGE -### GETRANGE - -``` {.wrap} +```{.wrap} GETRANGE key start end ``` + #### Example + ```shell script redis> SET mykey "This is a string" "OK" @@ -252,15 +268,17 @@ redis> GETRANGE mykey 0 -1 redis> GETRANGE mykey 10 100 "string" ``` + Get a substring of the string stored at a key +### GETSET -### GETSET - -``` {.wrap} +```{.wrap} GETSET key value ``` + #### Example + ```shell script redis> INCR mycounter (integer) 1 @@ -269,15 +287,17 @@ redis> GETSET mycounter "0" redis> GET mycounter "0" ``` + Set the string value of a key and return its old value +### INCR -### INCR - -``` {.wrap} +```{.wrap} INCR key ``` + #### Example + ```shell script redis> SET mykey "10" "OK" @@ -286,14 +306,17 @@ redis> INCR mykey redis> GET mykey "11" ``` + Increment the integer value of a key by one -### MSETNX +### MSETNX -``` {.wrap} +```{.wrap} MSETNX key value [key value ...] ``` + #### Example + ```shell script redis> MSETNX key1 "Hello" key2 "there" (integer) 1 @@ -304,17 +327,17 @@ redis> MGET key1 key2 key3 2) "there" 3) (nil) ``` + Set multiple keys to multiple values, only if none of the keys exist +### INCRBYFLOAT - - -### INCRBYFLOAT - -``` {.wrap} +```{.wrap} INCRBYFLOAT key increment ``` + #### Example + ```shell script redis> SET mykey 10.50 "OK" @@ -327,15 +350,17 @@ redis> SET mykey 5.0e3 redis> INCRBYFLOAT mykey 2.0e2 "5200" ``` + Increment the float value of a key by the given amount +### MGET -### MGET - -``` {.wrap} +```{.wrap} MGET key [key ...] ``` + #### Example + ```shell script redis> SET key1 "Hello" "OK" @@ -346,15 +371,17 @@ redis> MGET key1 key2 nonexisting 2) "World" 3) (nil) ``` + Get the values of all the given keys +### MSET -### MSET - -``` {.wrap} +```{.wrap} MSET key value [key value ...] ``` + #### Example + ```shell script redis> MSET key1 "Hello" key2 "World" "OK" @@ -363,32 +390,34 @@ redis> GET key1 redis> GET key2 "World" ``` + Set multiple keys to multiple values +### INCRBY - -### INCRBY - -``` {.wrap} +```{.wrap} INCRBY key increment ``` + #### Example + ```shell script redis> SET mykey "10" "OK" redis> INCRBY mykey 5 (integer) 15 ``` + Increment the integer value of a key by the given amount +### PSETEX - -### PSETEX - -``` {.wrap} +```{.wrap} PSETEX key milliseconds value ``` + #### Example + ```shell script redis> PSETEX mykey 1000 "Hello" "OK" @@ -397,15 +426,17 @@ redis> PTTL mykey redis> GET mykey "Hello" ``` + Set the value and expiration in milliseconds of a key +### SET -### SET - -``` {.wrap} +```{.wrap} SET key value [EX seconds|PX milliseconds|KEEPTTL] [NX|XX] [GET] ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -414,15 +445,17 @@ redis> GET mykey redis> SET anotherkey "will expire in a minute" EX 60 "OK" ``` + Set the string value of a key +### SETBIT -### SETBIT - -``` {.wrap} +```{.wrap} SETBIT key offset value ``` + #### Example + ```shell script redis> SETBIT mykey 7 1 (integer) 0 @@ -431,15 +464,17 @@ redis> SETBIT mykey 7 0 redis> GET mykey "\u0000" ``` + Sets or clears the bit at offset in the string value stored at key +### SETEX -### SETEX - -``` {.wrap} +```{.wrap} SETEX key seconds value ``` + #### Example + ```shell script redis> SETEX mykey 10 "Hello" "OK" @@ -448,15 +483,17 @@ redis> TTL mykey redis> GET mykey "Hello" ``` + Set the value and expiration of a key +### SETNX -### SETNX - -``` {.wrap} +```{.wrap} SETNX key value ``` + #### Example + ```shell script redis> SETNX mykey "Hello" (integer) 1 @@ -465,15 +502,17 @@ redis> SETNX mykey "World" redis> GET mykey "Hello" ``` + Set the value of a key, only if the key does not exist +### SETRANGE -### SETRANGE - -``` {.wrap} +```{.wrap} SETRANGE key offset value ``` + #### Example + ```shell script redis> SET key1 "Hello World" "OK" @@ -482,15 +521,17 @@ redis> SETRANGE key1 6 "Redis" redis> GET key1 "Hello Redis" ``` + Overwrite part of a string at key starting at the specified offset +### STRLEN -### STRLEN - -``` {.wrap} +```{.wrap} STRLEN key ``` + #### Example + ```shell script redis> SET mykey "Hello world" "OK" @@ -499,16 +540,17 @@ redis> STRLEN mykey redis> STRLEN nonexisting (integer) 0 ``` + Get the length of the value stored in a key +### STRALGO - -### STRALGO - -``` {.wrap} +```{.wrap} STRALGO LCS algo-specific-argument [algo-specific-argument ...] ``` + #### Example + ```shell script redis> STRALGO LCS KEYS key1 key2 IDX 1) "matches" @@ -523,21 +565,19 @@ redis> STRALGO LCS KEYS key1 key2 IDX 3) "len" 4) (integer) 6 ``` + Run algorithms (currently LCS) against strings +## Redis Set command +### SADD -Redis Set command ------------- - - - -### SADD - -``` {.wrap} +```{.wrap} SADD key member [member ...] ``` + #### Example + ```shell script redis> SADD myset "Hello" (integer) 1 @@ -549,15 +589,17 @@ redis> SMEMBERS myset 1) "Hello" 2) "World" ``` + Add one or more members to a set +### SCARD -### SCARD - -``` {.wrap} +```{.wrap} SCARD key ``` + #### Example + ```shell script redis> SADD myset "Hello" (integer) 1 @@ -566,15 +608,17 @@ redis> SADD myset "World" redis> SCARD myset (integer) 2 ``` + Get the number of members in a set +### SDIFF -### SDIFF - -``` {.wrap} +```{.wrap} SDIFF key [key ...] ``` + #### Example + ```shell script redis> SADD key1 "a" (integer) 1 @@ -592,15 +636,17 @@ redis> SDIFF key1 key2 1) "a" 2) "b" ``` + Subtract multiple sets +### SDIFFSTORE -### SDIFFSTORE - -``` {.wrap} +```{.wrap} SDIFFSTORE destination key [key ...] ``` + #### Example + ```shell script redis> SADD key1 "a" (integer) 1 @@ -620,15 +666,17 @@ redis> SMEMBERS key 1) "a" 2) "b" ``` + Subtract multiple sets and store the resulting set in a key +### SINTER -### SINTER - -``` {.wrap} +```{.wrap} SINTER key [key ...] ``` + #### Example + ```shell script redis> SADD key1 "a" (integer) 1 @@ -645,15 +693,17 @@ redis> SADD key2 "e" redis> SINTER key1 key2 1) "c" ``` + Intersect multiple sets +### SINTERSTORE -### SINTERSTORE - -``` {.wrap} +```{.wrap} SINTERSTORE destination key [key ...] ``` + #### Example + ```shell script redis> SADD key1 "a" (integer) 1 @@ -672,15 +722,17 @@ redis> SINTERSTORE key key1 key2 redis> SMEMBERS key 1) "c" ``` + Intersect multiple sets and store the resulting set in a key +### SISMEMBER -### SISMEMBER - -``` {.wrap} +```{.wrap} SISMEMBER key member ``` + #### Example + ```shell script redis> SADD myset "one" (integer) 1 @@ -689,15 +741,17 @@ redis> SISMEMBER myset "one" redis> SISMEMBER myset "two" (integer) 0 ``` + Determine if a given value is a member of a set +### SMISMEMBER -### SMISMEMBER - -``` {.wrap} +```{.wrap} SMISMEMBER key member [member ...] ``` + #### Example + ```shell script redis> SADD myset "one" (integer) 1 @@ -707,15 +761,17 @@ redis> SMISMEMBER myset "one" "notamember" 1) (integer) 1 2) (integer) 0 ``` + Returns the membership associated with the given elements for a set +### SMEMBERS -### SMEMBERS - -``` {.wrap} +```{.wrap} SMEMBERS key ``` + #### Example + ```shell script redis> SADD myset "Hello" (integer) 1 @@ -725,15 +781,17 @@ redis> SMEMBERS myset 1) "Hello" 2) "World" ``` + Get all the members in a set +### SMOVE -### SMOVE - -``` {.wrap} +```{.wrap} SMOVE source destination member ``` + #### Example + ```shell script redis> SADD myset "one" (integer) 1 @@ -749,15 +807,17 @@ redis> SMEMBERS myotherset 1) "two" 2) "three" ``` + Move a member from one set to another +### SPOP -### SPOP - -``` {.wrap} +```{.wrap} SPOP key [count] ``` + #### Example + ```shell script redis> SADD myset "one" (integer) 1 @@ -781,15 +841,17 @@ redis> SPOP myset 3 redis> SMEMBERS myset 1) "one" ``` + Remove and return one or multiple random members from a set +### SRANDMEMBER -### SRANDMEMBER - -``` {.wrap} +```{.wrap} SRANDMEMBER key [count] ``` + #### Example + ```shell script redis> SADD myset one two three (integer) 3 @@ -805,15 +867,17 @@ redis> SRANDMEMBER myset -5 4) "three" 5) "one" ``` + Get one or multiple random members from a set +### SREM -### SREM - -``` {.wrap} +```{.wrap} SREM key member [member ...] ``` + #### Example + ```shell script redis> SADD myset "one" (integer) 1 @@ -829,15 +893,17 @@ redis> SMEMBERS myset 1) "two" 2) "three" ``` + Remove one or more members from a set +### SUNION -### SUNION - -``` {.wrap} +```{.wrap} SUNION key [key ...] ``` + #### Example + ```shell script redis> SADD key1 "a" (integer) 1 @@ -858,15 +924,17 @@ redis> SUNION key1 key2 4) "b" 5) "d" ``` + Add multiple sets +### SUNIONSTORE -### SUNIONSTORE - -``` {.wrap} +```{.wrap} SUNIONSTORE destination key [key ...] ``` + #### Example + ```shell script redis> SADD key1 "a" (integer) 1 @@ -889,27 +957,26 @@ redis> SMEMBERS key 4) "b" 5) "d" ``` + Add multiple sets and store the resulting set in a key - - -Redis List command ------------- +## Redis List command ### Misc | - | - | -|-----------------------------------------------------|----------------------------------------------------------------------------------------------------| +| --------------------------------------------------- | -------------------------------------------------------------------------------------------------- | | [BRPOPLPUSH ](https://redis.io/commands/brpoplpush) | Pop an element from a list, push it to another list and return it; or block until one is available | | [BLMOVE ](https://redis.io/commands/blmove) | Pop an element from a list, push it to another list and return it; or block until one is available | - - ### BLPOP -``` {.wrap} + +```{.wrap} BLPOP key [key ...] timeout ``` + #### Example + ```shell script redis> DEL list1 list2 (integer) 0 @@ -919,15 +986,17 @@ redis> BLPOP list1 list2 0 1) "list1" 2) "a" ``` + Remove and get the first element in a list, or block until one is available | - - ### BRPOP -``` {.wrap} + +```{.wrap} BRPOP key [key ...] timeout ``` + #### Example + ```shell script redis> DEL list1 list2 (integer) 0 @@ -937,15 +1006,17 @@ redis> BRPOP list1 list2 0 1) "list1" 2) "c" ``` + Remove and get the last element in a list, or block until one is available | +### LINDEX -### LINDEX - -``` {.wrap} +```{.wrap} LINDEX key index ``` + #### Example + ```shell script redis> LPUSH mylist "World" (integer) 1 @@ -958,15 +1029,17 @@ redis> LINDEX mylist -1 redis> LINDEX mylist 3 (nil) ``` + Get an element from a list by its index +### LINSERT -### LINSERT - -``` {.wrap} +```{.wrap} LINSERT key BEFORE|AFTER pivot element ``` + #### Example + ```shell script redis> RPUSH mylist "Hello" (integer) 1 @@ -979,15 +1052,17 @@ redis> LRANGE mylist 0 -1 2) "There" 3) "World" ``` + Insert an element before or after another element in a list +### LLEN -### LLEN - -``` {.wrap} +```{.wrap} LLEN key ``` + #### Example + ```shell script redis> LPUSH mylist "World" (integer) 1 @@ -996,15 +1071,17 @@ redis> LPUSH mylist "Hello" redis> LLEN mylist (integer) 2 ``` + Get the length of a list +### LPOP -### LPOP - -``` {.wrap} +```{.wrap} LPOP key [count] ``` + #### Example + ```shell script redis> RPUSH mylist "one" (integer) 1 @@ -1018,15 +1095,17 @@ redis> LRANGE mylist 0 -1 1) "two" 2) "three" ``` + Remove and get the first elements in a list +### LPOS -### LPOS - -``` {.wrap} +```{.wrap} LPOS key element [RANK rank] [COUNT num-matches] [MAXLEN len] ``` + #### Example + ```shell script redis> RPUSH mylist a b c d 1 2 3 4 3 3 3 (integer) 11 @@ -1037,15 +1116,17 @@ redis> LPOS mylist 3 COUNT 0 RANK 2 2) (integer) 9 3) (integer) 10 ``` + Return the index of matching elements on a list +### LPUSH -### LPUSH - -``` {.wrap} +```{.wrap} LPUSH key element [element ...] ``` + #### Example + ```shell script redis> LPUSH mylist "world" (integer) 1 @@ -1055,15 +1136,17 @@ redis> LRANGE mylist 0 -1 1) "hello" 2) "world" ``` + Prepend one or multiple elements to a list +### LPUSHX -### LPUSHX - -``` {.wrap} +```{.wrap} LPUSHX key element [element ...] ``` + #### Example + ```shell script redis> LPUSH mylist "World" (integer) 1 @@ -1077,15 +1160,17 @@ redis> LRANGE mylist 0 -1 redis> LRANGE myotherlist 0 -1 (empty list or set) ``` + Prepend an element to a list, only if the list exists +### LRANGE -### LRANGE - -``` {.wrap} +```{.wrap} LRANGE key start stop ``` + #### Example + ```shell script redis> RPUSH mylist "one" (integer) 1 @@ -1106,15 +1191,17 @@ redis> LRANGE mylist -100 100 redis> LRANGE mylist 5 10 (empty list or set) ``` + Get a range of elements from a list +### LREM -### LREM - -``` {.wrap} +```{.wrap} LREM key count element ``` + #### Example + ```shell script redis> RPUSH mylist "hello" (integer) 1 @@ -1130,15 +1217,17 @@ redis> LRANGE mylist 0 -1 1) "hello" 2) "foo" ``` + Remove elements from a list +### LSET -### LSET - -``` {.wrap} +```{.wrap} LSET key index element ``` + #### Example + ```shell script redis> RPUSH mylist "one" (integer) 1 @@ -1155,15 +1244,17 @@ redis> LRANGE mylist 0 -1 2) "five" 3) "three" ``` + Set the value of an element in a list by its index +### LTRIM -### LTRIM - -``` {.wrap} +```{.wrap} LTRIM key start stop ``` + #### Example + ```shell script redis> RPUSH mylist "one" (integer) 1 @@ -1177,15 +1268,17 @@ redis> LRANGE mylist 0 -1 1) "two" 2) "three" ``` + Trim a list to the specified range +### RPOP -### RPOP - -``` {.wrap} +```{.wrap} RPOP key [count] ``` + #### Example + ```shell script redis> RPUSH mylist "one" (integer) 1 @@ -1199,15 +1292,17 @@ redis> LRANGE mylist 0 -1 1) "one" 2) "two" ``` + Remove and get the last elements in a list +### RPOPLPUSH -### RPOPLPUSH - -``` {.wrap} +```{.wrap} RPOPLPUSH source destination ``` + #### Example + ```shell script redis> RPUSH mylist "one" (integer) 1 @@ -1223,15 +1318,17 @@ redis> LRANGE mylist 0 -1 redis> LRANGE myotherlist 0 -1 1) "three" ``` + Remove the last element in a list, prepend it to another list and return it +### LMOVE -### LMOVE - -``` {.wrap} +```{.wrap} LMOVE source destination LEFT|RIGHT LEFT|RIGHT ``` + #### Example + ```shell script redis> RPUSH mylist "one" (integer) 1 @@ -1249,15 +1346,17 @@ redis> LRANGE myotherlist 0 -1 1) "three" 2) "one" ``` + Pop an element from a list, push it to another list and return it +### RPUSH -### RPUSH - -``` {.wrap} +```{.wrap} RPUSH key element [element ...] ``` + #### Example + ```shell script redis> RPUSH mylist "hello" (integer) 1 @@ -1267,15 +1366,17 @@ redis> LRANGE mylist 0 -1 1) "hello" 2) "world" ``` + Append one or multiple elements to a list +### RPUSHX -### RPUSHX - -``` {.wrap} +```{.wrap} RPUSHX key element [element ...] ``` + #### Example + ```shell script redis> RPUSH mylist "Hello" (integer) 1 @@ -1289,22 +1390,19 @@ redis> LRANGE mylist 0 -1 redis> LRANGE myotherlist 0 -1 (empty list or set) ``` + Append an element to a list, only if the list exists +## Redis Hash command +### HDEL - -Redis Hash command ------------- - - - -### HDEL - -``` {.wrap} +```{.wrap} HDEL key field [field ...] ``` + #### Example + ```shell script redis> HSET myhash field1 "foo" (integer) 1 @@ -1313,15 +1411,17 @@ redis> HDEL myhash field1 redis> HDEL myhash field2 (integer) 0 ``` + Delete one or more hash fields +### HEXISTS -### HEXISTS - -``` {.wrap} +```{.wrap} HEXISTS key field ``` + #### Example + ```shell script redis> HSET myhash field1 "foo" (integer) 1 @@ -1330,15 +1430,17 @@ redis> HEXISTS myhash field1 redis> HEXISTS myhash field2 (integer) 0 ``` + Determine if a hash field exists +### HGET -### HGET - -``` {.wrap} +```{.wrap} HGET key field ``` + #### Example + ```shell script redis> HSET myhash field1 "foo" (integer) 1 @@ -1347,15 +1449,17 @@ redis> HGET myhash field1 redis> HGET myhash field2 (nil) ``` + Get the value of a hash field +### HGETALL -### HGETALL - -``` {.wrap} +```{.wrap} HGETALL key ``` + #### Example + ```shell script redis> HSET myhash field1 "Hello" (integer) 1 @@ -1367,15 +1471,17 @@ redis> HGETALL myhash 3) "field2" 4) "World" ``` + Get all the fields and values in a hash +### HINCRBY -### HINCRBY - -``` {.wrap} +```{.wrap} HINCRBY key field increment ``` + #### Example + ```shell script redis> HSET myhash field 5 (integer) 1 @@ -1386,15 +1492,17 @@ redis> HINCRBY myhash field -1 redis> HINCRBY myhash field -10 (integer) -5 ``` + Increment the integer value of a hash field by the given number +### HINCRBYFLOAT -### HINCRBYFLOAT - -``` {.wrap} +```{.wrap} HINCRBYFLOAT key field increment ``` + #### Example + ```shell script redis> HSET mykey field 10.50 (integer) 1 @@ -1407,15 +1515,17 @@ redis> HSET mykey field 5.0e3 redis> HINCRBYFLOAT mykey field 2.0e2 "5200" ``` + Increment the float value of a hash field by the given amount +### HKEYS -### HKEYS - -``` {.wrap} +```{.wrap} HKEYS key ``` + #### Example + ```shell script redis> HSET myhash field1 "Hello" (integer) 1 @@ -1425,15 +1535,17 @@ redis> HKEYS myhash 1) "field1" 2) "field2" ``` + Get all the fields in a hash +### HLEN -### HLEN - -``` {.wrap} +```{.wrap} HLEN key ``` + #### Example + ```shell script redis> HSET myhash field1 "Hello" (integer) 1 @@ -1442,15 +1554,17 @@ redis> HSET myhash field2 "World" redis> HLEN myhash (integer) 2 ``` + Get the number of fields in a hash +### HMGET -### HMGET - -``` {.wrap} +```{.wrap} HMGET key field [field ...] ``` + #### Example + ```shell script redis> HSET myhash field1 "Hello" (integer) 1 @@ -1461,15 +1575,17 @@ redis> HMGET myhash field1 field2 nofield 2) "World" 3) (nil) ``` + Get the values of all the given hash fields +### HMSET -### HMSET - -``` {.wrap} +```{.wrap} HMSET key field value [field value ...] ``` + #### Example + ```shell script redis> HMSET myhash field1 "Hello" field2 "World" "OK" @@ -1478,30 +1594,34 @@ redis> HGET myhash field1 redis> HGET myhash field2 "World" ``` + Set multiple hash fields to multiple values +### HSET -### HSET - -``` {.wrap} +```{.wrap} HSET key field value [field value ...] ``` + #### Example + ```shell script redis> HSET myhash field1 "Hello" (integer) 1 redis> HGET myhash field1 "Hello" ``` + Set the string value of a hash field +### HSETNX -### HSETNX - -``` {.wrap} +```{.wrap} HSETNX key field value ``` + #### Example + ```shell script redis> HSETNX myhash field "Hello" (integer) 1 @@ -1510,15 +1630,17 @@ redis> HSETNX myhash field "World" redis> HGET myhash field "Hello" ``` + Set the value of a hash field, only if the field does not exist +### HSTRLEN -### HSTRLEN - -``` {.wrap} +```{.wrap} HSTRLEN key field ``` + #### Example + ```shell script redis> HMSET myhash f1 HelloWorld f2 99 f3 -256 "OK" @@ -1529,15 +1651,17 @@ redis> HSTRLEN myhash f2 redis> HSTRLEN myhash f3 (integer) 4 ``` + Get the length of the value of a hash field +### HVALS -### HVALS - -``` {.wrap} +```{.wrap} HVALS key ``` + #### Example + ```shell script redis> HSET myhash field1 "Hello" (integer) 1 @@ -1547,21 +1671,19 @@ redis> HVALS myhash 1) "Hello" 2) "World" ``` + Get all the values in a hash - - - - -Redis Sorted set command ------------- +## Redis Sorted set command ### BZPOPMIN -``` {.wrap} +```{.wrap} BZPOPMIN key [key ...] timeout ``` + #### Example + ```shell script redis> DEL zset1 zset2 (integer) 0 @@ -1572,15 +1694,17 @@ redis> BZPOPMIN zset1 zset2 0 2) "a" 3) "0" ``` -Remove and return the member with the lowest score from one or more sorted sets, or block until one is available +Remove and return the member with the lowest score from one or more sorted sets, or block until one is available ### BZPOPMAX -``` {.wrap} +```{.wrap} BZPOPMAX key [key ...] timeout ``` + #### Example + ```shell script redis> DEL zset1 zset2 (integer) 0 @@ -1591,16 +1715,17 @@ redis> BZPOPMAX zset1 zset2 0 2) "c" 3) "2" ``` + Remove and return the member with the highest score from one or more sorted sets, or block until one is available +### ZADD {.row-span-2} - -### ZADD {.row-span-2} - -``` {.wrap} +```{.wrap} ZADD key [NX|XX] [GT|LT] [CH] [INCR] score member [score member ...] ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -1618,15 +1743,17 @@ redis> ZRANGE myzset 0 -1 WITHSCORES 7) "three" 8) "3" ``` + Add one or more members to a sorted set, or update its score if it already exists +### ZCARD -### ZCARD - -``` {.wrap} +```{.wrap} ZCARD key ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -1635,32 +1762,34 @@ redis> ZADD myzset 2 "two" redis> ZCARD myzset (integer) 2 ``` + Get the number of members in a sorted set +### ZSCORE - -### ZSCORE - -``` {.wrap} +```{.wrap} ZSCORE key member ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 redis> ZSCORE myzset "one" "1" ``` + Get the score associated with the given member in a sorted set +### ZCOUNT - -### ZCOUNT - -``` {.wrap} +```{.wrap} ZCOUNT key min max ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -1673,15 +1802,17 @@ redis> ZCOUNT myzset -inf +inf redis> ZCOUNT myzset (1 3 (integer) 2 ``` + Count the members in a sorted set with scores within the given values +### ZDIFF -### ZDIFF - -``` {.wrap} +```{.wrap} ZDIFF numkeys key [key ...] [WITHSCORES] ``` + #### Example + ```shell script redis> ZADD zset1 1 "one" (integer) 1 @@ -1699,15 +1830,17 @@ redis> ZDIFF 2 zset1 zset2 WITHSCORES 1) "three" 2) "3" ``` + Subtract multiple sorted sets +### ZDIFFSTORE -### ZDIFFSTORE - -``` {.wrap} +```{.wrap} ZDIFFSTORE destination numkeys key [key ...] ``` + #### Example + ```shell script redis> ZADD zset1 1 "one" (integer) 1 @@ -1725,15 +1858,17 @@ redis> ZRANGE out 0 -1 WITHSCORES 1) "three" 2) "3" ``` + Subtract multiple sorted sets and store the resulting sorted set in a new key +### ZINCRBY -### ZINCRBY - -``` {.wrap} +```{.wrap} ZINCRBY key increment member ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -1747,15 +1882,17 @@ redis> ZRANGE myzset 0 -1 WITHSCORES 3) "one" 4) "3" ``` + Increment the score of a member in a sorted set +### ZINTER -### ZINTER - -``` {.wrap} +```{.wrap} ZINTER numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] [WITHSCORES] ``` + #### Example + ```shell script redis> ZADD zset1 1 "one" (integer) 1 @@ -1776,15 +1913,17 @@ redis> ZINTER 2 zset1 zset2 WITHSCORES 3) "two" 4) "4" ``` + Intersect multiple sorted sets +### ZINTERSTORE -### ZINTERSTORE - -``` {.wrap} +```{.wrap} ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] ``` + #### Example + ```shell script redis> ZADD zset1 1 "one" (integer) 1 @@ -1804,15 +1943,17 @@ redis> ZRANGE out 0 -1 WITHSCORES 3) "two" 4) "10" ``` + Intersect multiple sorted sets and store the resulting sorted set in a new key +### ZLEXCOUNT -### ZLEXCOUNT - -``` {.wrap} +```{.wrap} ZLEXCOUNT key min max ``` + #### Example + ```shell script redis> ZADD myzset 0 a 0 b 0 c 0 d 0 e (integer) 5 @@ -1823,15 +1964,17 @@ redis> ZLEXCOUNT myzset - + redis> ZLEXCOUNT myzset [b [f (integer) 5 ``` + Count the number of members in a sorted set between a given lexicographical range +### ZPOPMAX -### ZPOPMAX - -``` {.wrap} +```{.wrap} ZPOPMAX key [count] ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -1843,15 +1986,17 @@ redis> ZPOPMAX myzset 1) "three" 2) "3" ``` + Remove and return members with the highest scores in a sorted set +### ZPOPMIN -### ZPOPMIN - -``` {.wrap} +```{.wrap} ZPOPMIN key [count] ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -1863,15 +2008,17 @@ redis> ZPOPMIN myzset 1) "one" 2) "1" ``` + Remove and return members with the lowest scores in a sorted set +### ZRANGE -### ZRANGE - -``` {.wrap} +```{.wrap} ZRANGE key start stop [WITHSCORES] ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -1889,15 +2036,17 @@ redis> ZRANGE myzset -2 -1 1) "two" 2) "three" ``` + Return a range of members in a sorted set, by index +### ZRANGEBYLEX -### ZRANGEBYLEX - -``` {.wrap} +```{.wrap} ZRANGEBYLEX key min max [LIMIT offset count] ``` + #### Example + ```shell script redis> ZADD myzset 0 a 0 b 0 c 0 d 0 e 0 f 0 g (integer) 7 @@ -1915,15 +2064,17 @@ redis> ZRANGEBYLEX myzset [aaa (g 4) "e" 5) "f" ``` + Return a range of members in a sorted set, by lexicographical range +### ZREVRANGEBYLEX -### ZREVRANGEBYLEX - -``` {.wrap} +```{.wrap} ZREVRANGEBYLEX key max min [LIMIT offset count] ``` + #### Example + ```shell script redis> ZADD myzset 0 a 0 b 0 c 0 d 0 e 0 f 0 g (integer) 7 @@ -1941,15 +2092,17 @@ redis> ZREVRANGEBYLEX myzset (g [aaa 4) "c" 5) "b" ``` + Return a range of members in a sorted set, by lexicographical range, ordered from higher to lower strings. +### ZRANGEBYSCORE -### ZRANGEBYSCORE - -``` {.wrap} +```{.wrap} ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count] ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -1969,15 +2122,17 @@ redis> ZRANGEBYSCORE myzset (1 2 redis> ZRANGEBYSCORE myzset (1 (2 (empty list or set) ``` + Return a range of members in a sorted set, by score +### ZRANK -### ZRANK - -``` {.wrap} +```{.wrap} ZRANK key member ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -1990,15 +2145,17 @@ redis> ZRANK myzset "three" redis> ZRANK myzset "four" (nil) ``` + Determine the index of a member in a sorted set +### ZREM -### ZREM - -``` {.wrap} +```{.wrap} ZREM key member [member ...] ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -2014,15 +2171,17 @@ redis> ZRANGE myzset 0 -1 WITHSCORES 3) "three" 4) "3" ``` + Remove one or more members from a sorted set +### ZREMRANGEBYLEX -### ZREMRANGEBYLEX - -``` {.wrap} +```{.wrap} ZREMRANGEBYLEX key min max ``` + #### Example + ```shell script redis> ZADD myzset 0 aaaa 0 b 0 c 0 d 0 e (integer) 5 @@ -2047,15 +2206,17 @@ redis> ZRANGE myzset 0 -1 3) "zap" 4) "zip" ``` + Remove all members in a sorted set between the given lexicographical range +### ZREMRANGEBYRANK -### ZREMRANGEBYRANK - -``` {.wrap} +```{.wrap} ZREMRANGEBYRANK key start stop ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -2069,15 +2230,17 @@ redis> ZRANGE myzset 0 -1 WITHSCORES 1) "three" 2) "3" ``` + Remove all members in a sorted set within the given indexes +### ZREMRANGEBYSCORE -### ZREMRANGEBYSCORE - -``` {.wrap} +```{.wrap} ZREMRANGEBYSCORE key min max ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -2093,15 +2256,17 @@ redis> ZRANGE myzset 0 -1 WITHSCORES 3) "three" 4) "3" ``` + Remove all members in a sorted set within the given scores +### ZREVRANGE -### ZREVRANGE - -``` {.wrap} +```{.wrap} ZREVRANGE key start stop [WITHSCORES] ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -2119,15 +2284,17 @@ redis> ZREVRANGE myzset -2 -1 1) "two" 2) "one" ``` + Return a range of members in a sorted set, by index, with scores ordered from high to low +### ZREVRANGEBYSCORE -### ZREVRANGEBYSCORE - -``` {.wrap} +```{.wrap} ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count] ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -2147,15 +2314,17 @@ redis> ZREVRANGEBYSCORE myzset 2 (1 redis> ZREVRANGEBYSCORE myzset (2 (1 (empty list or set) ``` + Return a range of members in a sorted set, by score, with scores ordered from high to low +### ZREVRANK -### ZREVRANK - -``` {.wrap} +```{.wrap} ZREVRANK key member ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -2168,17 +2337,17 @@ redis> ZREVRANK myzset "one" redis> ZREVRANK myzset "four" (nil) ``` + Determine the index of a member in a sorted set, with scores ordered from high to low +### ZUNION - - -### ZUNION - -``` {.wrap} +```{.wrap} ZUNION numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] [WITHSCORES] ``` + #### Example + ```shell script redis> ZADD zset1 1 "one" (integer) 1 @@ -2202,15 +2371,17 @@ redis> ZUNION 2 zset1 zset2 WITHSCORES 5) "two" 6) "4" ``` + Add multiple sorted sets +### ZMSCORE -### ZMSCORE - -``` {.wrap} +```{.wrap} ZMSCORE key member [member ...] ``` + #### Example + ```shell script redis> ZADD myzset 1 "one" (integer) 1 @@ -2221,15 +2392,17 @@ redis> ZMSCORE myzset "one" "two" "nofield" 2) "2" 3) (nil) ``` + Get the score associated with the given members in a sorted set +### ZUNIONSTORE -### ZUNIONSTORE - -``` {.wrap} +```{.wrap} ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX] ``` + #### Example + ```shell script redis> ZADD zset1 1 "one" (integer) 1 @@ -2251,23 +2424,19 @@ redis> ZRANGE out 0 -1 WITHSCORES 5) "two" 6) "10" ``` + Add multiple sorted sets and store the resulting sorted set in a new key +## Redis Geo command{.cols-2} +### GEOADD - - -Redis Geo command{.cols-2} ------------- - - - -### GEOADD - -``` {.wrap} +```{.wrap} GEOADD key longitude latitude member [longitude latitude member ...] ``` + #### Example + ```shell script redis> GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania" (integer) 2 @@ -2279,15 +2448,17 @@ redis> GEORADIUS Sicily 15 37 200 km 1) "Palermo" 2) "Catania" ``` + Add one or more geospatial items in the geospatial index represented using a sorted set +### GEOHASH -### GEOHASH - -``` {.wrap} +```{.wrap} GEOHASH key member [member ...] ``` + #### Example + ```shell script redis> GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania" (integer) 2 @@ -2295,15 +2466,17 @@ redis> GEOHASH Sicily Palermo Catania 1) "sqc8b49rny0" 2) "sqdtr74hyu0" ``` + Returns members of a geospatial index as standard geohash strings +### GEOPOS -### GEOPOS - -``` {.wrap} +```{.wrap} GEOPOS key member [member ...] ``` + #### Example + ```shell script redis> GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania" (integer) 2 @@ -2314,15 +2487,17 @@ redis> GEOPOS Sicily Palermo Catania NonExisting 2) "37.50266842333162032" 3) (nil) ``` + Returns longitude and latitude of members of a geospatial index +### GEODIST -### GEODIST - -``` {.wrap} +```{.wrap} GEODIST key member1 member2 [m|km|ft|mi] ``` + #### Example + ```shell script redis> GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania" (integer) 2 @@ -2335,15 +2510,17 @@ redis> GEODIST Sicily Palermo Catania mi redis> GEODIST Sicily Foo Bar (nil) ``` + Returns the distance between two members of a geospatial index +### GEORADIUS -### GEORADIUS - -``` {.wrap} +```{.wrap} GEORADIUS key longitude latitude radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key] ``` + #### Example + ```shell script redis> GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania" (integer) 2 @@ -2369,15 +2546,17 @@ redis> GEORADIUS Sicily 15 37 200 km WITHDIST WITHCOORD 3) 1) "15.08726745843887329" 2) "37.50266842333162032" ``` + Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a point +### GEORADIUSBYMEMBER -### GEORADIUSBYMEMBER - -``` {.wrap} +```{.wrap} GEORADIUSBYMEMBER key member radius m|km|ft|mi [WITHCOORD] [WITHDIST] [WITHHASH] [COUNT count] [ASC|DESC] [STORE key] [STOREDIST key] ``` + #### Example + ```shell script redis> GEOADD Sicily 13.583333 37.316667 "Agrigento" (integer) 1 @@ -2387,15 +2566,17 @@ redis> GEORADIUSBYMEMBER Sicily Agrigento 100 km 1) "Agrigento" 2) "Palermo" ``` + Query a sorted set representing a geospatial index to fetch members matching a given maximum distance from a member +### GEOSEARCH -### GEOSEARCH - -``` {.wrap} +```{.wrap} GEOSEARCH key [FROMMEMBER member] [FROMLONLAT longitude latitude] [BYRADIUS radius m|km|ft|mi] [BYBOX width height m|km|ft|mi] [ASC|DESC] [COUNT count] [WITHCOORD] [WITHDIST] [WITHHASH] ``` + #### Example + ```shell script redis> GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania" (integer) 2 @@ -2410,42 +2591,42 @@ redis> GEOSEARCH Sicily FROMLONLAT 15 37 BYBOX 400 400 km ASC 3) "edge2" 4) "edge1" ``` + Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle. ### Misc + | - | - | -|-------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------| +| ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | [GEOSEARCHSTORE ](https://redis.io/commands/geosearchstore) | Query a sorted set representing a geospatial index to fetch members inside an area of a box or a circle, and store the result in another key. | +## Redis Hyperloglog command{.cols-3} +### PFADD - -Redis Hyperloglog command{.cols-3} ------------- - - - -### PFADD - -``` {.wrap} +```{.wrap} PFADD key element [element ...] ``` + #### Example + ```shell script redis> PFADD hll a b c d e f g (integer) 1 redis> PFCOUNT hll (integer) 7 ``` + Adds the specified elements to the specified HyperLogLog. +### PFCOUNT -### PFCOUNT - -``` {.wrap} +```{.wrap} PFCOUNT key [key ...] ``` + #### Example + ```shell script redis> PFADD hll foo bar zap (integer) 1 @@ -2460,15 +2641,17 @@ redis> PFADD some-other-hll 1 2 3 redis> PFCOUNT hll some-other-hll (integer) 6 ``` + Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s). +### PFMERGE -### PFMERGE - -``` {.wrap} +```{.wrap} PFMERGE destkey sourcekey [sourcekey ...] ``` + #### Example + ```shell script redis> PFADD hll1 foo bar zap a (integer) 1 @@ -2479,19 +2662,19 @@ redis> PFMERGE hll3 hll1 hll2 redis> PFCOUNT hll3 (integer) 6 ``` + Merge N different HyperLogLogs into a single one. - - -Redis Server command{.cols-3} ------------- +## Redis Server command{.cols-3} ### COMMAND -``` {.wrap} +```{.wrap} COMMAND ``` + #### Example + ```shell script redis> COMMAND 1) 1) "georadius_ro" @@ -2510,13 +2693,13 @@ redis> COMMAND 2) "fast" ........ ``` -Get array of Redis command details +Get array of Redis command details ### Misc {.col-span-2 .row-span-4} | - | - | -|----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------| +| -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | | [ACL LOAD](https://redis.io/commands/acl-load) | Reload the ACLs from the configured ACL file | | [ACL SAVE](https://redis.io/commands/acl-save) | Save the current ACL rules in the configured ACL file | | [ACL LIST](https://redis.io/commands/acl-list) | List the current ACL rules in ACL config file format | @@ -2567,28 +2750,29 @@ Get array of Redis command details | [LATENCY RESET ](https://redis.io/commands/latency-reset) | Reset latency data for one or more events. | | [LATENCY HELP](https://redis.io/commands/latency-help) | Show helpful text about the different subcommands. | - - - ### COMMAND COUNT -``` {.wrap} +```{.wrap} COMMAND COUNT ``` + #### Example + ```shell script redis> COMMAND COUNT (integer) 217 ``` -Get total number of Redis commands +Get total number of Redis commands ### COMMAND GETKEYS -``` {.wrap} +```{.wrap} COMMAND GETKEYS ``` + #### Example + ```shell script redis> COMMAND GETKEYS MSET a b c d e f 1) "a" @@ -2602,15 +2786,17 @@ redis> COMMAND GETKEYS SORT mylist ALPHA STORE outlist 1) "mylist" 2) "outlist" ``` + Extract keys given a full Redis command +### COMMAND INFO -### COMMAND INFO - -``` {.wrap} +```{.wrap} COMMAND INFO command-name [command-name ...] ``` + #### Example + ```shell script redis> COMMAND INFO get set eval 1) 1) "get" @@ -2643,16 +2829,17 @@ redis> COMMAND INFO get set eval 7) 1) "@slow" 2) "@scripting" ``` + Get array of specific Redis command details +### INFO - -### INFO - -``` {.wrap} +```{.wrap} INFO [section] ``` + #### Example + ```shell script redis> INFO # Server @@ -2664,32 +2851,34 @@ redis_mode:standalone os:Linux 5.4.0-1017-aws x86_64 ...... ``` + Get information and statistics about the server - - ### ROLE -``` {.wrap} +```{.wrap} ROLE ``` + #### Example + ```shell script redis> ROLE 1) "master" 2) (integer) 0 3) (empty list or set) ``` + Return the role of the instance in the context of replication - - ### TIME -``` {.wrap} +```{.wrap} TIME ``` + #### Example + ```shell script redis> TIME 1) "1609040690" @@ -2698,16 +2887,15 @@ redis> TIME 1) "1609040690" 2) "559206" ``` + Return the current server time - -Redis Generic command{.cols-3} ------------- +## Redis Generic command{.cols-3} ### Misc | - | - | -|-----------------------------------------------|--------------------------------------------------------------------------------------------------------------| +| --------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | | [COPY ](https://redis.io/commands/copy) | Copy a key | | [MIGRATE ](https://redis.io/commands/migrate) | Atomically transfer a key from a Redis instance to another one. | | [MOVE ](https://redis.io/commands/move) | Move a key to another database | @@ -2717,14 +2905,14 @@ Redis Generic command{.cols-3} | [WAIT ](https://redis.io/commands/wait) | Wait for the synchronous replication of all the write commands sent in the context of the current connection | | [SCAN ](https://redis.io/commands/scan) | Incrementally iterate the keys space | +### DEL - -### DEL - -``` {.wrap} +```{.wrap} DEL key [key ...] ``` + #### Example + ```shell script redis> SET key1 "Hello" "OK" @@ -2733,30 +2921,34 @@ redis> SET key2 "World" redis> DEL key1 key2 key3 (integer) 2 ``` + Delete a key +### DUMP -### DUMP - -``` {.wrap} +```{.wrap} DUMP key ``` + #### Example + ```shell script redis> SET mykey 10 "OK" redis> DUMP mykey "\u0000\xC0\n\t\u0000\xBEm\u0006\x89Z(\u0000\n" ``` + Return a serialized version of the value stored at the specified key. +### EXISTS -### EXISTS - -``` {.wrap} +```{.wrap} EXISTS key [key ...] ``` + #### Example + ```shell script redis> SET key1 "Hello" "OK" @@ -2769,15 +2961,17 @@ redis> SET key2 "World" redis> EXISTS key1 key2 nosuchkey (integer) 2 ``` + Determine if a key exists +### EXPIRE -### EXPIRE - -``` {.wrap} +```{.wrap} EXPIRE key seconds ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -2790,15 +2984,17 @@ redis> SET mykey "Hello World" redis> TTL mykey (integer) -1 ``` + Set a key's time to live in seconds +### EXPIREAT -### EXPIREAT - -``` {.wrap} +```{.wrap} EXPIREAT key timestamp ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -2809,15 +3005,17 @@ redis> EXPIREAT mykey 1293840000 redis> EXISTS mykey (integer) 0 ``` + Set the expiration for a key as a UNIX timestamp +### KEYS -### KEYS - -``` {.wrap} +```{.wrap} KEYS pattern ``` + #### Example + ```shell script redis> MSET firstname Jack lastname Stuntman age 35 "OK" @@ -2831,15 +3029,17 @@ redis> KEYS * 2) "age" 3) "lastname" ``` + Find all keys matching the given pattern +### PERSIST -### PERSIST - -``` {.wrap} +```{.wrap} PERSIST key ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -2852,15 +3052,17 @@ redis> PERSIST mykey redis> TTL mykey (integer) -1 ``` + Remove the expiration from a key +### PEXPIRE -### PEXPIRE - -``` {.wrap} +```{.wrap} PEXPIRE key milliseconds ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -2871,15 +3073,17 @@ redis> TTL mykey redis> PTTL mykey (integer) 1499 ``` + Set a key's time to live in milliseconds +### PEXPIREAT -### PEXPIREAT - -``` {.wrap} +```{.wrap} PEXPIREAT key milliseconds-timestamp ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -2890,15 +3094,17 @@ redis> TTL mykey redis> PTTL mykey (integer) -2 ``` + Set the expiration for a key as a UNIX timestamp specified in milliseconds +### PTTL -### PTTL - -``` {.wrap} +```{.wrap} PTTL key ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -2907,16 +3113,17 @@ redis> EXPIRE mykey 1 redis> PTTL mykey (integer) 1000 ``` + Get the time to live for a key in milliseconds +### RENAME - -### RENAME - -``` {.wrap} +```{.wrap} RENAME key newkey ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -2925,15 +3132,17 @@ redis> RENAME mykey myotherkey redis> GET myotherkey "Hello" ``` + Rename a key +### RENAMENX -### RENAMENX - -``` {.wrap} +```{.wrap} RENAMENX key newkey ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -2944,16 +3153,17 @@ redis> RENAMENX mykey myotherkey redis> GET myotherkey "World" ``` + Rename a key, only if the new key does not exist +### TOUCH - -### TOUCH - -``` {.wrap} +```{.wrap} TOUCH key [key ...] ``` + #### Example + ```shell script redis> SET key1 "Hello" "OK" @@ -2962,15 +3172,17 @@ redis> SET key2 "World" redis> TOUCH key1 key2 (integer) 2 ``` + Alters the last access time of a key(s). Returns the number of existing keys specified. +### TTL -### TTL - -``` {.wrap} +```{.wrap} TTL key ``` + #### Example + ```shell script redis> SET mykey "Hello" "OK" @@ -2979,15 +3191,17 @@ redis> EXPIRE mykey 10 redis> TTL mykey (integer) 10 ``` + Get the time to live for a key +### TYPE -### TYPE - -``` {.wrap} +```{.wrap} TYPE key ``` + #### Example + ```shell script redis> SET key1 "value" "OK" @@ -3002,15 +3216,17 @@ redis> TYPE key2 redis> TYPE key3 "set" ``` + Determine the type stored at key +### UNLINK -### UNLINK - -``` {.wrap} +```{.wrap} UNLINK key [key ...] ``` + #### Example + ```shell script redis> SET key1 "Hello" "OK" @@ -3019,17 +3235,15 @@ redis> SET key2 "World" redis> UNLINK key1 key2 key3 (integer) 2 ``` + Delete a key asynchronously in another thread. Otherwise it is just as DEL, but non blocking. - - -Redis Connection command{.cols-3} ------------- +## Redis Connection command{.cols-3} ### Misc | - | - | -|---------------------------------------------------------------|----------------------------------------------------------------------------| +| ------------------------------------------------------------- | -------------------------------------------------------------------------- | | [AUTH ](https://redis.io/commands/auth) | Authenticate to the server | | [CLIENT CACHING ](https://redis.io/commands/client-caching) | Instruct the server about tracking or not keys in the next request | | [CLIENT KILL ](https://redis.io/commands/client-kill) | Kill the connection of a client | @@ -3046,75 +3260,74 @@ Redis Connection command{.cols-3} | [RESET](https://redis.io/commands/reset) | Reset the connection | | [SELECT ](https://redis.io/commands/select) | Change the selected database for the current connection | - - ### CLIENT ID -``` {.wrap} +```{.wrap} CLIENT ID ``` + #### Example + ```shell script redis> CLIENT ID ERR Unknown or disabled command 'CLIENT' ``` -Returns the client ID for the current connection +Returns the client ID for the current connection ### CLIENT INFO -``` {.wrap} +```{.wrap} CLIENT INFO ``` + #### Example + ```shell script redis> CLIENT INFO "id=55542 addr=127.0.0.1:58710 laddr=127.0.0.1:6379 fd=8 name= age=114920 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 qbuf=26 qbuf-free=40928 argv-mem=10 obl=0 oll=0 omem=0 tot-mem=61466 events=r cmd=client user=default redir=-1\n" ``` + Returns information about the current client connection. +### ECHO - -### ECHO - -``` {.wrap} +```{.wrap} ECHO message ``` + #### Example + ```shell script redis> ECHO "Hello World!" "Hello World!" ``` + Echo the given string +### PING - -### PING - -``` {.wrap} +```{.wrap} PING [message] ``` + #### Example + ```shell script redis> PING "PONG" redis> PING "hello world" "hello world" ``` + Ping the server - - - - - -Redis Stream command{.cols-2} ------------- +## Redis Stream command{.cols-2} ### Misc | - | - | -|-----------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [XINFO ](https://redis.io/commands/xinfo) | Get information on streams and consumer groups | | [XDEL ](https://redis.io/commands/xdel) | Removes the specified entries from the stream. Returns the number of items actually deleted, that may be different from the number of IDs passed in case certain IDs do not exist. | | [XREAD ](https://redis.io/commands/xread) | Return never seen elements in multiple streams, with IDs greater than the ones reported by the caller for each stream. Can block. | @@ -3123,16 +3336,14 @@ Redis Stream command{.cols-2} | [XCLAIM ](https://redis.io/commands/xclaim) | Changes (or acquires) ownership of a message in a consumer group, as if the message was delivered to the specified consumer. | | [XPENDING ](https://redis.io/commands/xpending) | Return information and entries from a stream consumer group pending entries list, that are messages fetched but never acknowledged. | +### XADD - - - -### XADD - -``` {.wrap} +```{.wrap} XADD key [MAXLEN [=|~] length] [NOMKSTREAM] *|ID field value [field value ...] ``` + #### Example + ```shell script redis> XADD mystream * name Sara surname OConnor "1609040574632-0" @@ -3154,15 +3365,17 @@ redis> XRANGE mystream - + 5) "field3" 6) "value3" ``` + Appends a new entry to a stream +### XTRIM -### XTRIM - -``` {.wrap} +```{.wrap} XTRIM key MAXLEN [=|~] length ``` + #### Example + ```shell script redis> XADD mystream * field1 A field2 B field3 C field4 D "1609040575750-0" @@ -3179,16 +3392,17 @@ redis> XRANGE mystream - + 7) "field4" 8) "D" ``` + Trims the stream to (approximately if '~' is passed) a certain size +### XRANGE - -### XRANGE - -``` {.wrap} +```{.wrap} XRANGE key start end [COUNT count] ``` + #### Example + ```shell script redis> XADD writers * name Virginia surname Woolf "1609040578002-0" @@ -3214,15 +3428,17 @@ redis> XRANGE writers - + COUNT 2 3) "surname" 4) "Austen" ``` + Return a range of elements in a stream, with IDs matching the specified IDs interval +### XREVRANGE -### XREVRANGE - -``` {.wrap} +```{.wrap} XREVRANGE key end start [COUNT count] ``` + #### Example + ```shell script redis> XADD writers * name Virginia surname Woolf "1609040579130-0" @@ -3243,15 +3459,18 @@ redis> XREVRANGE writers + - COUNT 1 3) "surname" 4) "Adichie" ``` -Return a range of elements in a stream, with IDs matching the specified IDs interval, in reverse order (from greater to smaller IDs) compared to XRANGE +Return a range of elements in a stream, with IDs matching the specified IDs interval, in reverse order (from greater to +smaller IDs) compared to XRANGE -### XLEN +### XLEN -``` {.wrap} +```{.wrap} XLEN key ``` + #### Example + ```shell script redis> XADD mystream * item 1 "1609040580250-0" @@ -3262,34 +3481,32 @@ redis> XADD mystream * item 3 redis> XLEN mystream (integer) 3 ``` + Return the number of entries in a stream +### XACK - -### XACK - -``` {.wrap} +```{.wrap} XACK key group ID [ID ...] ``` + #### Example + ```shell script redis> XACK mystream mygroup 1526569495631-0 ERR Unknown or disabled command 'XACK' ``` -Marks a pending message as correctly processed, effectively removing it from the pending entries list of the consumer group. Return value of the command is the number of messages successfully acknowledged, that is, the IDs we were actually able to resolve in the PEL. +Marks a pending message as correctly processed, effectively removing it from the pending entries list of the consumer +group. Return value of the command is the number of messages successfully acknowledged, that is, the IDs we were +actually able to resolve in the PEL. - - - -Miscellaneous {.cols-2} ------------- - +## Miscellaneous {.cols-2} ### Cluster | - | - | -|-------------------------------------------------------------------------------------------|------------------------------------------------------------------| +| ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | | [CLUSTER ADDSLOTS ](https://redis.io/commands/cluster-addslots) | Assign new hash slots to receiving node | | [CLUSTER BUMPEPOCH](https://redis.io/commands/cluster-bumpepoch) | Advance the cluster config epoch | | [CLUSTER COUNT-FAILURE-REPORTS ](https://redis.io/commands/cluster-count-failure-reports) | Return the number of failure reports active for a given node | @@ -3315,26 +3532,20 @@ Miscellaneous {.cols-2} | [READONLY](https://redis.io/commands/readonly) | Enables read queries for a connection to a cluster replica node | | [READWRITE](https://redis.io/commands/readwrite) | Disables read queries for a connection to a cluster replica node | - - - ### Transactions | - | - | -|----------------------------------------------|---------------------------------------------------------------------| +| -------------------------------------------- | ------------------------------------------------------------------- | | [DISCARD](https://redis.io/commands/discard) | Discard all commands issued after MULTI | | [EXEC](https://redis.io/commands/exec) | Execute all commands issued after MULTI | | [MULTI](https://redis.io/commands/multi) | Mark the start of a transaction block | | [UNWATCH](https://redis.io/commands/unwatch) | Forget about all watched keys | | [WATCH ](https://redis.io/commands/watch) | Watch the given keys to determine execution of the MULTI/EXEC block | - - - -### Scripting +### Scripting | - | - | -|-----------------------------------------------------------|------------------------------------------------------| +| --------------------------------------------------------- | ---------------------------------------------------- | | [EVAL ](https://redis.io/commands/eval) | Execute a Lua script server side | | [EVALSHA ](https://redis.io/commands/evalsha) | Execute a Lua script server side | | [SCRIPT DEBUG ](https://redis.io/commands/script-debug) | Set the debug mode for executed scripts. | @@ -3343,16 +3554,13 @@ Miscellaneous {.cols-2} | [SCRIPT KILL](https://redis.io/commands/script-kill) | Kill the script currently in execution. | | [SCRIPT LOAD ](https://redis.io/commands/script-load) | Load the specified Lua script into the script cache. | - - -### Pubsub +### Pubsub | - | - | -|---------------------------------------------------------|----------------------------------------------------------------------------| +| ------------------------------------------------------- | -------------------------------------------------------------------------- | | [PSUBSCRIBE ](https://redis.io/commands/psubscribe) | Listen for messages published to channels matching the given patterns | | [PUBSUB ](https://redis.io/commands/pubsub) | Inspect the state of the Pub/Sub subsystem | | [PUBLISH ](https://redis.io/commands/publish) | Post a message to a channel | | [PUNSUBSCRIBE ](https://redis.io/commands/punsubscribe) | Stop listening for messages posted to channels matching the given patterns | | [SUBSCRIBE ](https://redis.io/commands/subscribe) | Listen for messages published to the given channels | | [UNSUBSCRIBE ](https://redis.io/commands/unsubscribe) | Stop listening for messages posted to the given channels | - diff --git a/source/_posts/roam.md b/source/_posts/roam.md index bea4f63..181d1cf 100644 --- a/source/_posts/roam.md +++ b/source/_posts/roam.md @@ -2,98 +2,92 @@ title: Roam Research date: 2022-11-23 16:23:31.693680 background: bg-[#090a0a] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 45 keyboard shortcuts found on Roam Research + A visual cheat-sheet for the 45 keyboard shortcuts found on Roam Research --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General -Shortcut | Action ----|--- -`/` | Bring up a menu of many core functions -`Ctrl` `U` | Search the database -`Ctrl` `Enter` | Jump back to page after search -`Ctrl` `F` | Search on the current page -`Shift` `Enter` | Open a new page created in search in the sidebar -`Ctrl` `Shift` `D` | Jump to the Daily Notes page -`Shift` `(click)` | Open link in sidebar -`Ctrl` `B` | Toggle brackets +| Shortcut | Action | +| ------------------ | ------------------------------------------------ | +| `/` | Bring up a menu of many core functions | +| `Ctrl` `U` | Search the database | +| `Ctrl` `Enter` | Jump back to page after search | +| `Ctrl` `F` | Search on the current page | +| `Shift` `Enter` | Open a new page created in search in the sidebar | +| `Ctrl` `Shift` `D` | Jump to the Daily Notes page | +| `Shift` `(click)` | Open link in sidebar | +| `Ctrl` `B` | Toggle brackets | + {.shortcuts} +### Lists and Blocks {.row-span-2} -### Lists and Blocks {.row-span-2} +| Shortcut | Action | +| --------------------- | ------------------------------------------------- | +| `Tab` | Indent block | +| `Shift` `Tab` | Un-indent block | +| `Ctrl` `Shift` `Up` | Move block up | +| `Ctrl` `Shift` `Down` | Move block down | +| `Enter` | Create a new block, bullet point | +| `Ctrl` `Enter` | Create a TODO checkbox | +| `Shift` `Enter` | Create a new line inside of a block | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo | +| `Ctrl` `.` | Zoom in, show only the current block enlarged | +| `Ctrl` `,` | Zoom out, restores the normal view | +| `Ctrl` `O` | Follow link under cursor, when editing a block | +| `Ctrl` `Shift` `O` | Open a link under cursor in the sidebar | +| `Ctrl` `Up` | Collapse all child blocks under the current block | +| `Ctrl` `Down` | Expand all child blocks under the current block | +| `Shift` `Up` | Select the block above where the cursor is placed | +| `Shift` `Down` | Select the block below where the cursor is placed | +| `Ctrl` `Shift` `A` | Select all blocks | +| `Ctrl` `A` | Jump to the beginning of the current block | +| `Ctrl` `E` | Jump to the end of the current block | +| `Ctrl` `F` | Move one character to the right | +| `Ctrl` `B` | Move one character to the left | +| `Ctrl` `T` | Swap all characters on either side of the cursor | +| `Ctrl` `C` `Ctrl` `X` | Show avatar of the last user to edit the block | -Shortcut | Action ----|--- -`Tab` | Indent block -`Shift` `Tab` | Un-indent block -`Ctrl` `Shift` `Up` | Move block up -`Ctrl` `Shift` `Down` | Move block down -`Enter` | Create a new block, bullet point -`Ctrl` `Enter` | Create a TODO checkbox -`Shift` `Enter` | Create a new line inside of a block -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo -`Ctrl` `.` | Zoom in, show only the current block enlarged -`Ctrl` `,` | Zoom out, restores the normal view -`Ctrl` `O` | Follow link under cursor, when editing a block -`Ctrl` `Shift` `O` | Open a link under cursor in the sidebar -`Ctrl` `Up` | Collapse all child blocks under the current block -`Ctrl` `Down` | Expand all child blocks under the current block -`Shift` `Up` | Select the block above where the cursor is placed -`Shift` `Down` | Select the block below where the cursor is placed -`Ctrl` `Shift` `A` | Select all blocks -`Ctrl` `A` | Jump to the beginning of the current block -`Ctrl` `E` | Jump to the end of the current block -`Ctrl` `F` | Move one character to the right -`Ctrl` `B` | Move one character to the left -`Ctrl` `T` | Swap all characters on either side of the cursor -`Ctrl` `C` `Ctrl` `X` | Show avatar of the last user to edit the block {.shortcuts} - ### Version Control -Shortcut | Action ----|--- -`Ctrl` `,` | Add a version -`Ctrl` `Shift` `.` | Cycle versions to the right -`Ctrl` `Shift` `,` | Cycle versions to the left -`Ctrl` `.` | Expand all versions, all versions will appear in their own blocks -{.shortcuts} +| Shortcut | Action | +| ------------------ | ----------------------------------------------------------------- | +| `Ctrl` `,` | Add a version | +| `Ctrl` `Shift` `.` | Cycle versions to the right | +| `Ctrl` `Shift` `,` | Cycle versions to the left | +| `Ctrl` `.` | Expand all versions, all versions will appear in their own blocks | +{.shortcuts} ### Formatting -Shortcut | Action ----|--- -`Ctrl` `Alt` `1-3` | Toggle between heading styles -`Ctrl` `Alt` `0` | Reset heading, or set to paragraph -`Ctrl` `Enter` | Toggle TODO or DONE -`Ctrl` `B` | Bold -`Ctrl` `I` | Italic -`Ctrl` `K` | Create an HTML link -`Ctrl` `Y` | Strike-through -`Ctrl` `H` | Highlight -\` | Create an inline block of code +| Shortcut | Action | +| ------------------ | ---------------------------------- | +| `Ctrl` `Alt` `1-3` | Toggle between heading styles | +| `Ctrl` `Alt` `0` | Reset heading, or set to paragraph | +| `Ctrl` `Enter` | Toggle TODO or DONE | +| `Ctrl` `B` | Bold | +| `Ctrl` `I` | Italic | +| `Ctrl` `K` | Create an HTML link | +| `Ctrl` `Y` | Strike-through | +| `Ctrl` `H` | Highlight | +| \` | Create an inline block of code | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Roam Research](https://www.roamtips.com/home/the-complete-list-of-roam-research-keyboard-shortcuts) _(www.roamtips.com)_ +- [Keyboard shortcuts for Roam Research](https://www.roamtips.com/home/the-complete-list-of-roam-research-keyboard-shortcuts) + _(www.roamtips.com)_ diff --git a/source/_posts/sass.md b/source/_posts/sass.md index 95b8daf..312c160 100644 --- a/source/_posts/sass.md +++ b/source/_posts/sass.md @@ -4,28 +4,26 @@ date: 2020-12-20 22:15:43 background: bg-[#ba6993] label: CSS tags: - - css + - css categories: - - Programming + - Programming intro: | - This is a quick reference cheat sheet that lists the most useful features of [SASS](https://sass-lang.com). + This is a quick reference cheat sheet that lists the most useful features of [SASS](https://sass-lang.com). plugins: - - copyCode + - copyCode --- -Sass Basics --------- +## Sass Basics ### Introduction - [Documentation](https://sass-lang.com/documentation) _(sass-lang.com)_ - [Learn X in Y minutes](https://learnxinyminutes.com/docs/sass/) _(learnxinyminutes.com)_ - ### Variables ```scss -$defaultLinkColor: #46EAC2; +$defaultLinkColor: #46eac2; a { color: $defaultLinkColor; @@ -42,8 +40,6 @@ $wk: -webkit-; } ``` - - ### Comments ```scss @@ -56,48 +52,44 @@ $wk: -webkit-; // Line comments ``` - - - ### Mixins ```scss @mixin heading-font { - font-family: sans-serif; - font-weight: bold; + font-family: sans-serif; + font-weight: bold; } h1 { - @include heading-font; + @include heading-font; } ``` + See: [Mixins](#sass-mixins) - - ### Nesting {.row-span-2} ```scss .markdown-body { - a { - color: blue; - &:hover { - color: red; - } + a { + color: blue; + &:hover { + color: red; } + } } ``` #### to properties + ```scss text: { - // like text-align: center - align: center; - // like text-transform: uppercase - transform: uppercase; + // like text-align: center + align: center; + // like text-transform: uppercase + transform: uppercase; } ``` - ### Extend ```scss @@ -108,15 +100,15 @@ text: { ```scss .push-button { - @extend .button; + @extend .button; } ``` ### @import ```scss -@import './other_sass_file'; -@import '/code', 'lists'; +@import "./other_sass_file"; +@import "/code", "lists"; // Plain CSS @imports @import "theme.css"; @@ -125,22 +117,19 @@ text: { The `.sass` or `.sass` extension is optional. - -Sass Mixins ------- - +## Sass Mixins ### Parameters ```scss @mixin font-size($n) { - font-size: $n * 1.2em; + font-size: $n * 1.2em; } ``` ```scss body { - @include font-size(2); + @include font-size(2); } ``` @@ -148,13 +137,13 @@ body { ```scss @mixin pad($n: 10px) { - padding: $n; + padding: $n; } ``` ```scss body { - @include pad(15px); + @include pad(15px); } ``` @@ -164,17 +153,15 @@ body { $default-padding: 10px; @mixin pad($n: $default-padding) { - padding: $n; + padding: $n; } body { - @include pad(15px); + @include pad(15px); } ``` - -Sass Color functions {.cols-2} --------- +## Sass Color functions {.cols-2} ### rgba @@ -234,7 +221,8 @@ green($color) blue($color) ``` -See: [hue()](http://sass-lang.com/documentation/Sass/Script/Functions.html#hue-instance_method), [red()](http://sass-lang.com/documentation/Sass/Script/Functions.html#red-instance_method) +See: [hue()](http://sass-lang.com/documentation/Sass/Script/Functions.html#hue-instance_method), +[red()](http://sass-lang.com/documentation/Sass/Script/Functions.html#red-instance_method) ### Adjustments @@ -259,8 +247,7 @@ change-color($color, $blue: 250) Supported: `$red`, `$green`, `$blue`, `$hue`, `$saturation`, `$lightness`, `$alpha` -Sass Other functions {.cols-2} --------- +## Sass Other functions {.cols-2} ### Strings @@ -327,8 +314,7 @@ selector-replace(...) selector-unify(...) ``` -Sass Feature checks {.cols-2} --------- +## Sass Feature checks {.cols-2} ### Feature check @@ -338,19 +324,20 @@ feature-exists(global-variable-shadowing) ### Features -* global-variable-shadowing -* extend-selector-pseudoclass -* units-level-3 -* at-error +- global-variable-shadowing +- extend-selector-pseudoclass +- units-level-3 +- at-error -Sass Loops --------- +## Sass Loops ### For loops ```scss @for $i from 1 through 4 { - .item-#{$i} { left: 20px * $i; } + .item-#{$i} { + left: 20px * $i; + } } ``` @@ -360,21 +347,21 @@ Sass Loops $menu-items: home about contact; @each $item in $menu-items { - .photo-#{$item} { - background: url('#{$item}.jpg'); - } + .photo-#{$item} { + background: url("#{$item}.jpg"); + } } ``` ### Each loops (nested) + ```scss -$backgrounds: (home, 'home.jpg'), - (about, 'about.jpg'); +$backgrounds: (home, "home.jpg"), (about, "about.jpg"); @each $id, $image in $backgrounds { - .photo-#{$id} { - background: url($image); - } + .photo-#{$id} { + background: url($image); + } } ``` @@ -383,27 +370,26 @@ $backgrounds: (home, 'home.jpg'), ```scss $i: 6; @while $i > 0 { - .item-#{$i} { width: 2em * $i; } - $i: $i - 2; + .item-#{$i} { + width: 2em * $i; + } + $i: $i - 2; } ``` -Sass Other features --------- +## Sass Other features ### Conditionals {.row-span-2} ```scss -@if $position == 'left' { - position: absolute; - left: 0; -} -@else if $position == 'right' { - position: absolute; - right: 0; -} -@else { - position: static; +@if $position == "left" { + position: absolute; + left: 0; +} @else if $position == "right" { + position: absolute; + right: 0; +} @else { + position: static; } ``` @@ -436,5 +422,3 @@ $map: (key1: value1, key2: value2, key3: value3); map-get($map, key1) ``` - - diff --git a/source/_posts/screen.md b/source/_posts/screen.md index 0b0b008..ac83ba6 100644 --- a/source/_posts/screen.md +++ b/source/_posts/screen.md @@ -3,43 +3,45 @@ title: Screen date: 2021-01-02 20:03:55 background: bg-emerald-500 tags: - - terminal - - session - - utility + - terminal + - session + - utility categories: - - Linux Command + - Linux Command intro: | - This is a quick reference guide cheat sheet for the screen command. + This is a quick reference guide cheat sheet for the screen command. plugins: - - copyCode + - copyCode --- - -Getting Started ---------------- +## Getting Started ### Getting started ```shell script -$ screen +$ screen ``` + 1\. Press Ctrl-A D to detach session --- 2\. List all screen sessions + ```shell script $ screen -ls ``` + 3\. Re-attach a screen Session + ```shell script $ screen -r ``` - ### Options {.col-span-2} + | Options | Example | Description | -|---------|---------------------------------------|---------------------------------------------------------| +| ------- | ------------------------------------- | ------------------------------------------------------- | | `-S` | screen -S debug | Start a new session with session name | | `-ls` | screen -ls | List running sessions / screens | | `-x` | screen -x | Attach to a running session | @@ -47,23 +49,21 @@ $ screen -r | `-R` | screen -R debug | Attach to a session _(Will create if it doesn't exist)_ | | `-d` | screen -d -m wget xxxx.com/large.file | Start screen in detached mode | | `-X` | screen -X -S debug kill | Kill a running session | + {.show-header} - - - ### Help | Command | Description | -|--------------|--------------------------------| +| ------------ | ------------------------------ | | `Ctrl-A` `?` | See help _(Lists keybindings)_ | + {.shortcuts} - - ### Window Management {.col-span-2 .row-span-2} + | Command | Description | -|----------------------------------------|-----------------------------------------| +| -------------------------------------- | --------------------------------------- | | `Ctrl-A` `C` | Create new window | | `Ctrl-A` `Ctrl-A` | Change to last-visited active window | | `Ctrl-A` `0...9` | Change to window by number | @@ -75,41 +75,37 @@ $ screen -r | `Ctrl-A` `K` | Kill current window _(not recommended)_ | | `Ctrl-A` `\` | Kill all windows _(not recommended)_ | | `Ctrl-A` `A` | Rename current window | + {.shortcuts} - - ### Getting Out | Command | Description | -|------------------|-------------------------------------------| +| ---------------- | ----------------------------------------- | | `Ctrl-A` `D` | Detach | | `Ctrl-A` `D` `D` | Detach and logout
_(quick exit)_ | | `Ctrl-A` `:` | Exit all session | | `Ctrl-A` `C-\` | Force-exit screen
_(not recommended)_ | + {.shortcuts} - - - ### Split screen + | Command | Description | -|----------------|----------------------------------------| +| -------------- | -------------------------------------- | ------------------------ | | `Ctrl-A` `S` | Split display horizontally | | `Ctrl-A` `V` | Split display vertically | -| `Ctrl-A` `|` | Split display vertically | +| `Ctrl-A` ` | ` | Split display vertically | | `Ctrl-A` `TAB` | Jump to next display region | | `Ctrl-A` `X` | Remove current region | | `Ctrl-A` `Q` | Remove all regions but the current one | + {.shortcuts} - - - ### Misc {.col-span-2 .row-span-2} | Command | Description | -|-------------------|--------------------------------------------| +| ----------------- | ------------------------------------------ | | `Ctrl-A` `C-l` | Redraw window | | `Ctrl-A` `[` | Copy mode | | `Ctrl-A` `ESC` | Copy mode | @@ -120,11 +116,13 @@ $ screen -r | `Ctrl-A` `X` | Lock (password protect) display | | `Ctrl-A` `:` | Enter screen command | | `Ctrl-A` `H` | Enable logging in the screen session | + {.shortcuts} - ### Screen tricks + SSH and attach in one line + ```shell script $ ssh -t user@host screen -x ``` diff --git a/source/_posts/shopify.md b/source/_posts/shopify.md index 5c9e953..33e3a0c 100644 --- a/source/_posts/shopify.md +++ b/source/_posts/shopify.md @@ -2,116 +2,104 @@ title: Shopify date: 2022-11-23 16:23:31.704478 background: bg-[#8bbb55] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 50 keyboard shortcuts found on the Shopify website + A visual cheat-sheet for the 50 keyboard shortcuts found on the Shopify website --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General Shortcuts -Shortcut | Action ----|--- -`?` | Keyboard help -`S` | Focus search bar -`F` | Focus filter bar -`B` `Y` `E` | Log out -`M` `E` | Your profile -`O` `S` | Open the store switcher -{.shortcuts} +| Shortcut | Action | +| ----------- | ----------------------- | +| `?` | Keyboard help | +| `S` | Focus search bar | +| `F` | Focus filter bar | +| `B` `Y` `E` | Log out | +| `M` `E` | Your profile | +| `O` `S` | Open the store switcher | +{.shortcuts} ### Adding Items -Shortcut | Action ----|--- -`A` `P` | Add product -`A` `C` | Add collection -`A` `D` | Add discount -`A` `O` | Add order -`A` `U` | Add customer -`A` `B` | Add blog post -`A` `L` | Add blog -`A` `G` | Add page +| Shortcut | Action | +| -------- | -------------- | +| `A` `P` | Add product | +| `A` `C` | Add collection | +| `A` `D` | Add discount | +| `A` `O` | Add order | +| `A` `U` | Add customer | +| `A` `B` | Add blog post | +| `A` `L` | Add blog | +| `A` `G` | Add page | + {.shortcuts} - - - - ### Admin Panel I -Shortcut | Action ----|--- -`G` `H` | Go to home -`G` `P` `P` | Go to products -`G` `N` | Go to analytics -`G` `D` | Go to discounts -`G` `A` | Go to apps -`G` `B` `C` | Go to abandoned checkouts -`G` `P` `I` | Go to products, inventory -`G` `P` `G` | Go to products, gift cards -`G` `W` `B` | Go to online store, blog posts -`G` `W` `T` | Go to online store, themes -`G` `W` `D` | Go to online store, domains -`G` `T` `L` | Go to settings, locations +| Shortcut | Action | +| ----------- | ------------------------------ | +| `G` `H` | Go to home | +| `G` `P` `P` | Go to products | +| `G` `N` | Go to analytics | +| `G` `D` | Go to discounts | +| `G` `A` | Go to apps | +| `G` `B` `C` | Go to abandoned checkouts | +| `G` `P` `I` | Go to products, inventory | +| `G` `P` `G` | Go to products, gift cards | +| `G` `W` `B` | Go to online store, blog posts | +| `G` `W` `T` | Go to online store, themes | +| `G` `W` `D` | Go to online store, domains | +| `G` `T` `L` | Go to settings, locations | + {.shortcuts} - - - ### Admin Panel II -Shortcut | Action ----|--- -`G` `S` `P` | Go to settings, payments -`G` `S` `S` | Go to settings, shipping -`G` `S` `N` | Go to settings, notifications -`G` `S` `F` | Go to settings, files -`G` `S` `W` | Go to settings, online store -`G` `S` `L` | Go to settings, sales channels -`G` `O` | Go to orders -`G` `C` | Go to customers -`G` `M` | Go to marketing -`G` `L` | Go to sales channels -`G` `S` | Go to settings -`G` `P` `T` | Go to products, transfers -`G` `P` `C` | Go to products, collections +| Shortcut | Action | +| ----------- | ------------------------------ | +| `G` `S` `P` | Go to settings, payments | +| `G` `S` `S` | Go to settings, shipping | +| `G` `S` `N` | Go to settings, notifications | +| `G` `S` `F` | Go to settings, files | +| `G` `S` `W` | Go to settings, online store | +| `G` `S` `L` | Go to settings, sales channels | +| `G` `O` | Go to orders | +| `G` `C` | Go to customers | +| `G` `M` | Go to marketing | +| `G` `L` | Go to sales channels | +| `G` `S` | Go to settings | +| `G` `P` `T` | Go to products, transfers | +| `G` `P` `C` | Go to products, collections | + {.shortcuts} - - - ### Admin Panel III -Shortcut | Action ----|--- -`G` `W` `O` | Go to online store, overview -`G` `W` `P` | Go to online store, pages -`G` `W` `N` | Go to line store, navigation -`G` `T` `O` | Go to point of sale, overview -`G` `S` `G` | Go to settings, general -`G` `S` `C` | Go to settings, checkout -`G` `S` `X` | Go to settings, taxes -`G` `S` `I` | Go to settings, gift cards -`G` `S` `A` | Go to settings, account -`G` `S` `T` | Go to settings, point of sale -`G` `S` `B` | Go to settings, billing +| Shortcut | Action | +| ----------- | ----------------------------- | +| `G` `W` `O` | Go to online store, overview | +| `G` `W` `P` | Go to online store, pages | +| `G` `W` `N` | Go to line store, navigation | +| `G` `T` `O` | Go to point of sale, overview | +| `G` `S` `G` | Go to settings, general | +| `G` `S` `C` | Go to settings, checkout | +| `G` `S` `X` | Go to settings, taxes | +| `G` `S` `I` | Go to settings, gift cards | +| `G` `S` `A` | Go to settings, account | +| `G` `S` `T` | Go to settings, point of sale | +| `G` `S` `B` | Go to settings, billing | + {.shortcuts} +## Also see - -Also see --------- -- [Keyboard shortcuts for Shopify](https://help.shopify.com/en/manual/productivity-tools/keyboard-shortcuts) _(help.shopify.com)_ +- [Keyboard shortcuts for Shopify](https://help.shopify.com/en/manual/productivity-tools/keyboard-shortcuts) + _(help.shopify.com)_ diff --git a/source/_posts/sketch.md b/source/_posts/sketch.md index 1852195..3c6f65f 100644 --- a/source/_posts/sketch.md +++ b/source/_posts/sketch.md @@ -3,257 +3,250 @@ title: Sketch date: 2022-11-23 16:23:31.699427 background: bg-[#d36f2b] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 149 keyboard shortcuts found in Sketch. This application is MacOS-only. + A visual cheat-sheet for the 149 keyboard shortcuts found in Sketch. This application is MacOS-only. --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General {.row-span-2} -Shortcut | Action ----|--- -`Cmd` `C` | Copy -`Cmd` `X` | Cut -`Cmd` `V` | Paste -`Cmd` `Shift` `V` | Paste over selection -`Space` `(drag)` | Pan Canvas -`Cmd` `Shift` `N` | New page -`Fn` `Up` | Previous page -`Fn` `Down` | Next page -`Cmd` `+` | Zoom in -`Cmd` `-` | Zoom out -`Ctrl` `R` | Toggle rulers -`Ctrl` `P` | Toggle pixels -`Ctrl` `X` | Toggle pixel grid -`Ctrl` `G` | Toggle grid -`Ctrl` `L` | Toggle layout -`Ctrl` `E` | Toggle slices -`Ctrl` `F` | Toggle prototyping -`Cmd` `F` | Filter in Layer List -`Cmd` `Ctrl` `K` | Run custom plugin -`Cmd` `Z` | Undo -`Cmd` `Shift` `Z` | Redo -`Cmd` `N` | New document -`Cmd` `Shift` `N` | New Cloud document -`Cmd` `O` | Open document -`Cmd` `Shift` `O` | Open Cloud document -`Cmd` `W` | Close window -`Cmd` `S` | Save document -`Cmd` `Shift` `S` | Duplicate document -`Cmd` `Shift` `Opt` `S` | Save document as... -`Cmd` `Shift` `P` | Page setup -`Cmd` `,` | Open Preferences window -`Cmd` `H` | Hide Sketch -`Cmd` `Q` | Quit Sketch -`Cmd` `Shift` `?` | Open the Help menu -`Cmd` `P` | Open Preview window -{.shortcuts} +| Shortcut | Action | +| ----------------------- | ----------------------- | +| `Cmd` `C` | Copy | +| `Cmd` `X` | Cut | +| `Cmd` `V` | Paste | +| `Cmd` `Shift` `V` | Paste over selection | +| `Space` `(drag)` | Pan Canvas | +| `Cmd` `Shift` `N` | New page | +| `Fn` `Up` | Previous page | +| `Fn` `Down` | Next page | +| `Cmd` `+` | Zoom in | +| `Cmd` `-` | Zoom out | +| `Ctrl` `R` | Toggle rulers | +| `Ctrl` `P` | Toggle pixels | +| `Ctrl` `X` | Toggle pixel grid | +| `Ctrl` `G` | Toggle grid | +| `Ctrl` `L` | Toggle layout | +| `Ctrl` `E` | Toggle slices | +| `Ctrl` `F` | Toggle prototyping | +| `Cmd` `F` | Filter in Layer List | +| `Cmd` `Ctrl` `K` | Run custom plugin | +| `Cmd` `Z` | Undo | +| `Cmd` `Shift` `Z` | Redo | +| `Cmd` `N` | New document | +| `Cmd` `Shift` `N` | New Cloud document | +| `Cmd` `O` | Open document | +| `Cmd` `Shift` `O` | Open Cloud document | +| `Cmd` `W` | Close window | +| `Cmd` `S` | Save document | +| `Cmd` `Shift` `S` | Duplicate document | +| `Cmd` `Shift` `Opt` `S` | Save document as... | +| `Cmd` `Shift` `P` | Page setup | +| `Cmd` `,` | Open Preferences window | +| `Cmd` `H` | Hide Sketch | +| `Cmd` `Q` | Quit Sketch | +| `Cmd` `Shift` `?` | Open the Help menu | +| `Cmd` `P` | Open Preview window | +{.shortcuts} ### Inserting Layers -Shortcut | Action ----|--- -`R` | Rectangle -`O` | Oval -`L` | Line -`U` | Rounded rectangle -`V` | Vector tool -`P` | Pencil tool -`T` | Text tool -`A` | Artboard tool -`S` | Slice tool -`H` | Hotspot tool -{.shortcuts} +| Shortcut | Action | +| -------- | ----------------- | +| `R` | Rectangle | +| `O` | Oval | +| `L` | Line | +| `U` | Rounded rectangle | +| `V` | Vector tool | +| `P` | Pencil tool | +| `T` | Text tool | +| `A` | Artboard tool | +| `S` | Slice tool | +| `H` | Hotspot tool | +{.shortcuts} ### Selecting Layers -Shortcut | Action ----|--- -`Cmd` `A` | Select all -`Cmd` `Shift` `A` | Select all Artboards -`Fn` `Right` | Select next Artboard -`Fn` `Left` | Select previous Artboard -`Cmd` `Shift` `J` | Reveal selection in Layer List -{.shortcuts} +| Shortcut | Action | +| ----------------- | ------------------------------ | +| `Cmd` `A` | Select all | +| `Cmd` `Shift` `A` | Select all Artboards | +| `Fn` `Right` | Select next Artboard | +| `Fn` `Left` | Select previous Artboard | +| `Cmd` `Shift` `J` | Reveal selection in Layer List | +{.shortcuts} ### Moving and Resizing Layers -Shortcut | Action ----|--- -`Opt` | Display distance between other layers (while hovering) -`Cmd` `D` | Duplicate -`(arrows)` | Nudge layer any direction by 1px -`Shift` `(arrows)` | Nudge layer any direction by 10px -`Cmd` `K` | Scale layer -`Cmd` `Right/Down` | Expand by 1px -`Cmd` `Left/Up` | Contract by 1px -`Cmd` `Shift` `Right/Down` | Expand by 10px -`Cmd` `Shift` `Left/Up` | Contract by 10px -`Ctrl` `Opt` | Show distance to baseline or cap height on text layers (while hovering) -{.shortcuts} +| Shortcut | Action | +| -------------------------- | ----------------------------------------------------------------------- | +| `Opt` | Display distance between other layers (while hovering) | +| `Cmd` `D` | Duplicate | +| `(arrows)` | Nudge layer any direction by 1px | +| `Shift` `(arrows)` | Nudge layer any direction by 10px | +| `Cmd` `K` | Scale layer | +| `Cmd` `Right/Down` | Expand by 1px | +| `Cmd` `Left/Up` | Contract by 1px | +| `Cmd` `Shift` `Right/Down` | Expand by 10px | +| `Cmd` `Shift` `Left/Up` | Contract by 10px | +| `Ctrl` `Opt` | Show distance to baseline or cap height on text layers (while hovering) | +{.shortcuts} ### Editing Layers -Shortcut | Action ----|--- -`Enter` | Edit layer -`Esc` | Finish editing -`Opt` `Tab` | Focus X position input field in the Inspector -`Del` | Delete layer -`Cmd` `Opt` `C` | Copy style -`Cmd` `Opt` `V` | Paste style -`Ctrl` `S` | Sync shared style -`Opt` `Ctrl` `S` | Reset shared style -`W` | Add link to Artboard -`F` | Toggle fill -`B` | Toggle border -`Ctrl` `C` | Pick color -`0-9` | Edit layer opacity -`Cmd` `Shift` `T` | Transform shape -`Cmd` `Shift` `R` | Rotate layer -`Cmd` `Ctrl` `M` | Use as mask -`Cmd` `Esc` | Return to instance -`Cmd` `Opt` `U` | Union multiple layers -`Cmd` `Opt` `S` | Subtract multiple layers -`Cmd` `Opt` `I` | Intersect multiple layers -`Cmd` `Opt` `X` | Difference multiple layers -{.shortcuts} +| Shortcut | Action | +| ----------------- | --------------------------------------------- | +| `Enter` | Edit layer | +| `Esc` | Finish editing | +| `Opt` `Tab` | Focus X position input field in the Inspector | +| `Del` | Delete layer | +| `Cmd` `Opt` `C` | Copy style | +| `Cmd` `Opt` `V` | Paste style | +| `Ctrl` `S` | Sync shared style | +| `Opt` `Ctrl` `S` | Reset shared style | +| `W` | Add link to Artboard | +| `F` | Toggle fill | +| `B` | Toggle border | +| `Ctrl` `C` | Pick color | +| `0-9` | Edit layer opacity | +| `Cmd` `Shift` `T` | Transform shape | +| `Cmd` `Shift` `R` | Rotate layer | +| `Cmd` `Ctrl` `M` | Use as mask | +| `Cmd` `Esc` | Return to instance | +| `Cmd` `Opt` `U` | Union multiple layers | +| `Cmd` `Opt` `S` | Subtract multiple layers | +| `Cmd` `Opt` `I` | Intersect multiple layers | +| `Cmd` `Opt` `X` | Difference multiple layers | +{.shortcuts} ### Vector Editing -Shortcut | Action ----|--- -`Cmd` `Opt` `O` | Open or close path -`Tab` | Selects next point -`Opt` | Show all handle control points -`1` | Straight point type -`2` | Mirrored point type -`3` | Disconnected point type -`4` | Asymmetric point type -{.shortcuts} +| Shortcut | Action | +| --------------- | ------------------------------ | +| `Cmd` `Opt` `O` | Open or close path | +| `Tab` | Selects next point | +| `Opt` | Show all handle control points | +| `1` | Straight point type | +| `2` | Mirrored point type | +| `3` | Disconnected point type | +| `4` | Asymmetric point type | +{.shortcuts} ### Text Editing {.row-span-2} -Shortcut | Action ----|--- -`Cmd` `Shift` `Opt` `V` | Paste as rich text -`Cmd` `T` | Change typeface -`Cmd` `B` | Bold -`Cmd` `I` | Italic -`Cmd` `U` | Underline -`Cmd` `Opt` `+` | Increase font size -`Cmd` `Opt` `-` | Decrease font size -`Ctrl` `Opt` `L` | Increase character spacing -`Ctrl` `Opt` `T` | Decrease character spacing -`Cmd` `Shift` `[` | Align left -`Cmd` `Shift` `\` | Align center -`Cmd` `Shift` `]` | Align right -`Cmd` `Opt` `Space` | Emoji and symbols -`Cmd` `Opt` `O` | Convert to outlines -`Shift` `Enter` | Insert a line break +| Shortcut | Action | +| ----------------------- | -------------------------- | +| `Cmd` `Shift` `Opt` `V` | Paste as rich text | +| `Cmd` `T` | Change typeface | +| `Cmd` `B` | Bold | +| `Cmd` `I` | Italic | +| `Cmd` `U` | Underline | +| `Cmd` `Opt` `+` | Increase font size | +| `Cmd` `Opt` `-` | Decrease font size | +| `Ctrl` `Opt` `L` | Increase character spacing | +| `Ctrl` `Opt` `T` | Decrease character spacing | +| `Cmd` `Shift` `[` | Align left | +| `Cmd` `Shift` `\` | Align center | +| `Cmd` `Shift` `]` | Align right | +| `Cmd` `Opt` `Space` | Emoji and symbols | +| `Cmd` `Opt` `O` | Convert to outlines | +| `Shift` `Enter` | Insert a line break | + {.shortcuts} +### Arranging Layers {.row-span-2} -### Arranging Layers {.row-span-2} +| Shortcut | Action | +| ------------------------ | --------------------------------- | +| `Cmd` `G` | Group | +| `Cmd` `Shift` `G` | Ungroup | +| `Cmd` `R` | Rename layer | +| `Tab` | Select next layer in group | +| `Shift` `Tab` | Select previous layer in group | +| `Enter` | Selects layer inside group | +| `Esc` | Selects parent group | +| `Cmd` `]` | Bring forward | +| `Cmd` `Opt` `]` | Bring to front | +| `Cmd` `[` | Send backward | +| `Cmd` `Opt` `[` | Send to back | +| `Cmd` `Shift` `Opt` `Up` | Move up, out of group or Artboard | +| `Cmd` `Ctrl` `H` | Distribute horizontally | +| `Cmd` `Ctrl` `V` | Distribute vertically | +| `Cmd` `Shift` `H` | Hide or show layer | +| `Cmd` `Shift` `L` | Lock or unlock layer | -Shortcut | Action ----|--- -`Cmd` `G` | Group -`Cmd` `Shift` `G` | Ungroup -`Cmd` `R` | Rename layer -`Tab` | Select next layer in group -`Shift` `Tab` | Select previous layer in group -`Enter` | Selects layer inside group -`Esc` | Selects parent group -`Cmd` `]` | Bring forward -`Cmd` `Opt` `]` | Bring to front -`Cmd` `[` | Send backward -`Cmd` `Opt` `[` | Send to back -`Cmd` `Shift` `Opt` `Up` | Move up, out of group or Artboard -`Cmd` `Ctrl` `H` | Distribute horizontally -`Cmd` `Ctrl` `V` | Distribute vertically -`Cmd` `Shift` `H` | Hide or show layer -`Cmd` `Shift` `L` | Lock or unlock layer {.shortcuts} - ### Exporting Layers -Shortcut | Action ----|--- -`Cmd` `Shift` `E` | Export -`Cmd` `E` | Export selected layer(s) -{.shortcuts} +| Shortcut | Action | +| ----------------- | ------------------------ | +| `Cmd` `Shift` `E` | Export | +| `Cmd` `E` | Export selected layer(s) | +{.shortcuts} ### Zoom and Focus -Shortcut | Action ----|--- -`Cmd` `0` | Zoom to 100% -`Cmd` `1` | Zoom to all elements on Canvas -`Cmd` `2` | Zoom to selected layer(s) -`Cmd` `3` | Center selected layer(s) in Canvas -`Shift` \` | Temporarily zoom out to 100% -`Cmd` `Ctrl` `F` | Toggle full screen -`Cmd` `Opt` `1` | Show or hide Layer list -`Cmd` `Opt` `2` | Show or hide Inspector -`Cmd` `.` | Enter presentation mode -`Cmd` `Opt` `T` | Show or hide Toolbar -{.shortcuts} +| Shortcut | Action | +| ----------------------- | ---------------------------------- | +| `Cmd` `0` | Zoom to 100% | +| `Cmd` `1` | Zoom to all elements on Canvas | +| `Cmd` `2` | Zoom to selected layer(s) | +| `Cmd` `3` | Center selected layer(s) in Canvas | +| `Shift` \` | Temporarily zoom out to 100% | +| `Cmd` `Ctrl` `F` | Toggle full screen | +| `Cmd` `Opt` `1` | Show or hide Layer list | +| `Cmd` `Opt` `2` | Show or hide Inspector | +| `Cmd` `.` | Enter presentation mode | +| `Cmd` `Opt` `T` | Show or hide Toolbar | +{.shortcuts} ### Text Fields -Shortcut | Action ----|--- -`Opt` `Tab` | Focus Inspector -`Tab` | Select next field -`Shift` `Tab` | Select previous field -`Enter` | Confirm change -`Esc` | Clear change -`Up` | Increase value by 1 -`Down` | Decrease value by 1 -`Shift` `Up` | Increase value by 10 -`Shift` `Down` | Decrease value by 10 -`Opt` `Up` | Increase value by 0.1 -`Opt` `Down` | Decrease value by 0.1 -{.shortcuts} +| Shortcut | Action | +| -------------- | --------------------- | +| `Opt` `Tab` | Focus Inspector | +| `Tab` | Select next field | +| `Shift` `Tab` | Select previous field | +| `Enter` | Confirm change | +| `Esc` | Clear change | +| `Up` | Increase value by 1 | +| `Down` | Decrease value by 1 | +| `Shift` `Up` | Increase value by 10 | +| `Shift` `Down` | Decrease value by 10 | +| `Opt` `Up` | Increase value by 0.1 | +| `Opt` `Down` | Decrease value by 0.1 | +{.shortcuts} ### Miscellaneous -Shortcut | Action ----|--- -`Shift` | Launch Sketch with all plugins disabled (hold on startup) -`Cmd` `Ctrl` `D` | Detach from Symbol -`Cmd` `Ctrl` `Opt` `D` | Detach all contents from Symbol -`Cmd` `Shift` `D` | Refresh Data -`Cmd` `Ctrl` `R` | Run last-used plugin again -`0-9` | With a gradient stop selected, position it between 0% and 100% -`=` | Position selected gradient stop directly between two existing stops +| Shortcut | Action | +| ---------------------- | ------------------------------------------------------------------- | +| `Shift` | Launch Sketch with all plugins disabled (hold on startup) | +| `Cmd` `Ctrl` `D` | Detach from Symbol | +| `Cmd` `Ctrl` `Opt` `D` | Detach all contents from Symbol | +| `Cmd` `Shift` `D` | Refresh Data | +| `Cmd` `Ctrl` `R` | Run last-used plugin again | +| `0-9` | With a gradient stop selected, position it between 0% and 100% | +| `=` | Position selected gradient stop directly between two existing stops | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Sketch](https://www.sketch.com/docs/shortcuts/) _(www.sketch.com)_ diff --git a/source/_posts/sketchup.md b/source/_posts/sketchup.md index 4ca84ea..1700102 100644 --- a/source/_posts/sketchup.md +++ b/source/_posts/sketchup.md @@ -2,83 +2,76 @@ title: SketchUp Pro date: 2022-11-23 16:23:31.693091 background: bg-[#265a94] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 135 default keyboard shortcuts found in SketchUp Pro + A visual cheat-sheet for the 135 default keyboard shortcuts found in SketchUp Pro --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### General I -Shortcut | Action ----|--- -`A` | 2 point arc tool -`C` | Circle tool -`Shift` `C` | Circle tool - lock current inferences -`E` | Eraser tool -`Alt` `E` | Eraser tool - soften or smooth (use on edges to make adjacent faces appear curved) -`Shift` `E` | Eraser tool - hide -`Alt` `Shift` `E` | Eraser tool - unsoften or unsmooth -`L` | Line tool -`Shift` `L` | Line tool - lock in current inference direction -`(arrows)` `L` | Line tool - lock direction -`M` | Move tool -`Alt` `M` | Move tool - move a copy -`Shift` `M` | Move tool - hold down to lock in current inference direction -`Ctrl` `M` | Move tool - auto-fold (allow move even if it means adding extra edges and faces) -`(arrows)` `M` | Move tool - lock direction -`F` | Offset tool -`O` | Orbit tool -`Alt` `O` | Orbit tool - disable 'gravity-weighted' orbiting -`Shift` `O` | Orbit tool - activate pan tool -`B` | Paint bucket tool -`Alt` `B` | Paint bucket tool - fill material, paint all matching adjacent faces -`Shift` `B` | Paint bucket tool - replace material, paint all matching faces in the model +| Shortcut | Action | +| ----------------- | ---------------------------------------------------------------------------------- | +| `A` | 2 point arc tool | +| `C` | Circle tool | +| `Shift` `C` | Circle tool - lock current inferences | +| `E` | Eraser tool | +| `Alt` `E` | Eraser tool - soften or smooth (use on edges to make adjacent faces appear curved) | +| `Shift` `E` | Eraser tool - hide | +| `Alt` `Shift` `E` | Eraser tool - unsoften or unsmooth | +| `L` | Line tool | +| `Shift` `L` | Line tool - lock in current inference direction | +| `(arrows)` `L` | Line tool - lock direction | +| `M` | Move tool | +| `Alt` `M` | Move tool - move a copy | +| `Shift` `M` | Move tool - hold down to lock in current inference direction | +| `Ctrl` `M` | Move tool - auto-fold (allow move even if it means adding extra edges and faces) | +| `(arrows)` `M` | Move tool - lock direction | +| `F` | Offset tool | +| `O` | Orbit tool | +| `Alt` `O` | Orbit tool - disable 'gravity-weighted' orbiting | +| `Shift` `O` | Orbit tool - activate pan tool | +| `B` | Paint bucket tool | +| `Alt` `B` | Paint bucket tool - fill material, paint all matching adjacent faces | +| `Shift` `B` | Paint bucket tool - replace material, paint all matching faces in the model | + {.shortcuts} - - ### General II -Shortcut | Action ----|--- -`Shift` `B` | Paint bucket tool - replace material, paint all matching faces in the model -`Alt` `Shift` `B` | Paint bucket tool - replace material on object, paint all matching faces on the same object -`Ctrl` `B` | Paint bucket tool - sample material -`P` | Push and pull tool -`Alt` `P` | Push and pull tool - push or pull a copy of the face, leaving original in place -`R` | Rectangle tool -`Alt` `R` | Rectangle tool - start drawing from center -`Q` | Rotate tool -`Alt` `Q` | Rotate tool - rotate a copy -`S` | Scale tool -`Alt` `S` | Scale tool - scale about center -`Shift` `S` | Scale tool - scale uniformly, don't distort -`Space` | Select tool -`Alt` `Space` | Select tool - add to selection -`Shift` | Select tool - add or subtract from selection -`Alt` `Shift` `Space` | Select tool - subtract from selection -`T` | Tape measure tool -`Alt` `T` | Tape measure tool - toggle create guide or measure only -`(arrows)` `T` | Tape measure tool - lock direction -`Z` | Zoom tool -`Shift` `Z` | Zoom tool - combine with click-drag mouse to change field of view +| Shortcut | Action | +| --------------------- | ------------------------------------------------------------------------------------------- | +| `Shift` `B` | Paint bucket tool - replace material, paint all matching faces in the model | +| `Alt` `Shift` `B` | Paint bucket tool - replace material on object, paint all matching faces on the same object | +| `Ctrl` `B` | Paint bucket tool - sample material | +| `P` | Push and pull tool | +| `Alt` `P` | Push and pull tool - push or pull a copy of the face, leaving original in place | +| `R` | Rectangle tool | +| `Alt` `R` | Rectangle tool - start drawing from center | +| `Q` | Rotate tool | +| `Alt` `Q` | Rotate tool - rotate a copy | +| `S` | Scale tool | +| `Alt` `S` | Scale tool - scale about center | +| `Shift` `S` | Scale tool - scale uniformly, don't distort | +| `Space` | Select tool | +| `Alt` `Space` | Select tool - add to selection | +| `Shift` | Select tool - add or subtract from selection | +| `Alt` `Shift` `Space` | Select tool - subtract from selection | +| `T` | Tape measure tool | +| `Alt` `T` | Tape measure tool - toggle create guide or measure only | +| `(arrows)` `T` | Tape measure tool - lock direction | +| `Z` | Zoom tool | +| `Shift` `Z` | Zoom tool - combine with click-drag mouse to change field of view | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for SketchUp](https://help.sketchup.com/en/sketchup/getting-started-sketchup#qrc) _(help.sketchup.com)_ +- [Keyboard shortcuts for SketchUp](https://help.sketchup.com/en/sketchup/getting-started-sketchup#qrc) + _(help.sketchup.com)_ diff --git a/source/_posts/skype.md b/source/_posts/skype.md index b1b85f2..e8b7a46 100644 --- a/source/_posts/skype.md +++ b/source/_posts/skype.md @@ -2,70 +2,64 @@ title: Skype date: 2022-11-23 16:23:31.698711 background: bg-[#52ace2] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 31 keyboard shortcuts found in Skype + A visual cheat-sheet for the 31 keyboard shortcuts found in Skype --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### General I -Shortcut | Action ----|--- -`Ctrl` `Shift` `O` | Open Notification panel -`Ctrl` `,` | Open app settings -`Ctrl` `2` | Launch main dial pad -`Ctrl` `N` | Start new conversation -`Ctrl` `G` | New group -`Ctrl` `F` | Find in current conversation -`Shift` `Enter` | Select next message in search results -`Enter` | Select previous message in search results -`Ctrl` `Shift` `E` | Focus Message Composer -`Ctrl` `Option` `S` | Search for People, Groups, and Messages -`Alt` `1` | Navigate to recent chats -`Ctrl` `Shift` `C` | Open contacts -`Ctrl` `Shift` `B` | Open contact screen to bots -`Ctrl` `Alt` `O` | Send feedback -`Ctrl` `R` | Refresh the app -`Ctrl` `T` | Open themes +| Shortcut | Action | +| ------------------- | ----------------------------------------- | +| `Ctrl` `Shift` `O` | Open Notification panel | +| `Ctrl` `,` | Open app settings | +| `Ctrl` `2` | Launch main dial pad | +| `Ctrl` `N` | Start new conversation | +| `Ctrl` `G` | New group | +| `Ctrl` `F` | Find in current conversation | +| `Shift` `Enter` | Select next message in search results | +| `Enter` | Select previous message in search results | +| `Ctrl` `Shift` `E` | Focus Message Composer | +| `Ctrl` `Option` `S` | Search for People, Groups, and Messages | +| `Alt` `1` | Navigate to recent chats | +| `Ctrl` `Shift` `C` | Open contacts | +| `Ctrl` `Shift` `B` | Open contact screen to bots | +| `Ctrl` `Alt` `O` | Send feedback | +| `Ctrl` `R` | Refresh the app | +| `Ctrl` `T` | Open themes | + {.shortcuts} - - ### General II -Shortcut | Action ----|--- -`Ctrl` `Shift` `T` | Toggle between light and dark mode -`Ctrl` `+/-/0` | Zoom in, out, or actual size -`Ctrl` `Shift` `E` | Edit the last message sent -`Ctrl` `I` | Show conversation profile -`Ctrl` `Shift` `A` | Add people to conversation or call -`Ctrl` `E` | Hide conversation -`Ctrl` `Shift` `U` | Mark as unread -`Ctrl` `Shift` `K` | Start video call or toggle video on/off -`Ctrl` `Shift` `L` | Select multiple messages in conversation -`Ctrl` `Shift` `R` | Start or answer audio call -`Ctrl` `Shift` `F` | Send a file -`Ctrl` `Shift` `G` | Open gallery -`Ctrl` `S` | Take a snapshot -`Ctrl` `Shift` `H` | Hang up -`Ctrl` `Shift` `M` | Toggle mute +| Shortcut | Action | +| ------------------ | ---------------------------------------- | +| `Ctrl` `Shift` `T` | Toggle between light and dark mode | +| `Ctrl` `+/-/0` | Zoom in, out, or actual size | +| `Ctrl` `Shift` `E` | Edit the last message sent | +| `Ctrl` `I` | Show conversation profile | +| `Ctrl` `Shift` `A` | Add people to conversation or call | +| `Ctrl` `E` | Hide conversation | +| `Ctrl` `Shift` `U` | Mark as unread | +| `Ctrl` `Shift` `K` | Start video call or toggle video on/off | +| `Ctrl` `Shift` `L` | Select multiple messages in conversation | +| `Ctrl` `Shift` `R` | Start or answer audio call | +| `Ctrl` `Shift` `F` | Send a file | +| `Ctrl` `Shift` `G` | Open gallery | +| `Ctrl` `S` | Take a snapshot | +| `Ctrl` `Shift` `H` | Hang up | +| `Ctrl` `Shift` `M` | Toggle mute | + {.shortcuts} +## Also see - -Also see --------- -- [Keyboard shortcuts for Skype](https://support.skype.com/en/faq/FA12025/what-are-keyboard-shortcuts-and-how-do-i-use-them-in-skype) _(support.skype.com)_ +- [Keyboard shortcuts for Skype](https://support.skype.com/en/faq/FA12025/what-are-keyboard-shortcuts-and-how-do-i-use-them-in-skype) + _(support.skype.com)_ diff --git a/source/_posts/soundcloud.md b/source/_posts/soundcloud.md index 36693ff..16f98a6 100644 --- a/source/_posts/soundcloud.md +++ b/source/_posts/soundcloud.md @@ -2,62 +2,54 @@ title: SoundCloud date: 2022-11-23 16:23:31.705804 background: bg-[#ec622b] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 22 keyboard shortcuts found on SoundCloud + A visual cheat-sheet for the 22 keyboard shortcuts found on SoundCloud --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - - +## Keyboard Shortcuts {.cols-2} ### General I -Shortcut | Action ----|--- -`Space` | Play or pause -`Shift` `Right` | Play next track -`Shift` `L` | Repeat playing track -`Shift` `Left` | Play previous track -`Right` | Seek forward -`L` | Like playing track -`R` | Repost playing track -`S` | Search -`G` `L` | Navigate to likes -`G` `C` | Navigate to library +| Shortcut | Action | +| --------------- | -------------------- | +| `Space` | Play or pause | +| `Shift` `Right` | Play next track | +| `Shift` `L` | Repeat playing track | +| `Shift` `Left` | Play previous track | +| `Right` | Seek forward | +| `L` | Like playing track | +| `R` | Repost playing track | +| `S` | Search | +| `G` `L` | Navigate to likes | +| `G` `C` | Navigate to library | + {.shortcuts} - - - ### General II -Shortcut | Action ----|--- -`G` `H` | Navigate to history -`Shift` `S` | Shuffle -`Shift` `Down` | Decrease volume -`Shift` `Up` | Increase volume -`M` | Mute volume -`Left` | Seek backwards -`0-9` | Seek to position -`P` | Navigate to playing track -`H` | Show keyboard shortcuts -`G` `S` | Navigate to stream -`G` `P` | Navigate to profile -`Q` | Show next up +| Shortcut | Action | +| -------------- | ------------------------- | +| `G` `H` | Navigate to history | +| `Shift` `S` | Shuffle | +| `Shift` `Down` | Decrease volume | +| `Shift` `Up` | Increase volume | +| `M` | Mute volume | +| `Left` | Seek backwards | +| `0-9` | Seek to position | +| `P` | Navigate to playing track | +| `H` | Show keyboard shortcuts | +| `G` `S` | Navigate to stream | +| `G` `P` | Navigate to profile | +| `Q` | Show next up | + {.shortcuts} +## Also see -Also see --------- - [Keyboard shortcuts for SoundCloud](https://i.imgur.com/ZQf24je.png) _(i.imgur.com)_ diff --git a/source/_posts/ssh.md b/source/_posts/ssh.md index 5953aab..e77d1b7 100644 --- a/source/_posts/ssh.md +++ b/source/_posts/ssh.md @@ -3,83 +3,104 @@ title: SSH date: 2021-01-27 11:48:05 background: bg-blue-400 tags: - - protocol - - remote - - network - - 22 + - protocol + - remote + - network + - 22 categories: - - Linux Command + - Linux Command intro: | - This quick reference cheat sheet provides various for using SSH. + This quick reference cheat sheet provides various for using SSH. plugins: - - copyCode + - copyCode --- -Getting Started ---------------- +## Getting Started ### Connecting + Connect to a server (default port 22) + ```shell script $ ssh root@192.168.1.5 ``` + Connect on a specific port + ```shell script $ ssh root@192.168.1.5 -p 6222 ``` + Connect via pem file (0400 permissions) + ```shell script $ ssh -i /path/file.pem root@192.168.1.5 ``` + See: [SSH Permissions](/chmod#ssh-permissions) ### Executing + Executes remote command + ```shell script $ ssh root@192.168.1.5 'ls -l' ``` + Invoke a local script + ```shell script $ ssh root@192.168.1.5 bash < script.sh ``` + Compresses and downloads from a server + ```shell script {.wrap} $ ssh root@192.168.1.5 "tar cvzf - ~/source" > output.tgz ``` - - ### SCP {.row-span-2} Copies from remote to local + ```shell script $ scp user@server:/dir/file.ext dest/ ``` + Copies between two servers + ```shell script $ scp user@server:/file user@server:/dir ``` -Copies from local to remote + +Copies from local to remote + ```shell script $ scp dest/file.ext user@server:/dir ``` + Copies a whole folder + ```shell script $ scp -r user@server:/dir dest/ ``` + Copies all files from a folder + ```shell script $ scp user@server:/dir/* dest/ ``` + Copies from a server folder to the current folder + ```shell script $ scp user@server:/dir/* . ``` - ### Config location + | File Path | Description | -|--------------------------|----------------------| +| ------------------------ | -------------------- | | `/etc/ssh/ssh_config` | System-wide config | | `~/.ssh/config` | User-specific config | | `~/.ssh/id_{type}` | Private key | @@ -87,11 +108,10 @@ $ scp user@server:/dir/* . | `~/.ssh/known_hosts` | Known Servers | | `~/.ssh/authorized_keys` | Authorized login key | - ### SCP Options | Options | Description | -|---------------|------------------------------------------------| +| ------------- | ---------------------------------------------- | | scp `-r` | Recursively copy entire directories | | scp `-C` | Compresses data | | scp `-v` | Prints verbose info | @@ -99,11 +119,10 @@ $ scp user@server:/dir/* . | scp `-B` | Batch mode _(Prevents password)_ | | scp `-p` | Preserves times and modes | - ### Config sample ```toml -Host server1 +Host server1 HostName 192.168.1.5 User root Port 22 @@ -111,13 +130,13 @@ Host server1 ``` Launch by alias + ```shell script $ ssh server1 ``` + See: Full [Config Options](https://linux.die.net/man/5/ssh_config) - - ### ProxyJump ```shell script @@ -129,74 +148,81 @@ $ ssh -J user@proxy_host1 user@remote_host2 ``` Multiple jumps + ```shell script {.wrap} $ ssh -J user@proxy_host1:port1,user@proxy_host2:port2 user@remote_host3 ``` ### ssh-copy-id + ```shell script {.wrap} $ ssh-copy-id user@server ``` Copy to alias server + ```shell script {.wrap} $ ssh-copy-id server1 ``` Copy specific key + ```shell script {.wrap} $ ssh-copy-id -i ~/.ssh/id_rsa.pub user@server ``` - - -SSH keygen {.cols-5} ---------------- +## SSH keygen {.cols-5} ### ssh-keygen {.col-span-2} ```shell script -$ ssh-keygen -t rsa -b 4096 -C "your@mail.com" +$ ssh-keygen -t rsa -b 4096 -C "your@mail.com" ``` ----- -| - | - | - | -|---|------|-------------------------------| -| | `-t` | [Type](#key-type) of key | -| | `-b` | The number of bits in the key | -| | `-C` | Provides a new comment | + +--- + +| - | - | - | +| --- | ---- | ----------------------------- | +| | `-t` | [Type](#key-type) of key | +| | `-b` | The number of bits in the key | +| | `-C` | Provides a new comment | + {.left-text} Generate an RSA 4096 bit key with email as a comment - ### Generate {.col-span-2 .row-span-2} Generate a key interactively + ```shell script $ ssh-keygen ``` Specify filename + ```shell script $ ssh-keygen -f ~/.ssh/filename ``` Generate public key from private key + ```shell script $ ssh-keygen -y -f private.key > public.pub ``` Change comment + ```shell script $ ssh-keygen -c -f ~/.ssh/id_rsa ``` -Change private key passphrase +Change private key passphrase + ```shell script $ ssh-keygen -p -f ~/.ssh/id_rsa ``` - ### Key type - rsa @@ -204,32 +230,26 @@ $ ssh-keygen -p -f ~/.ssh/id_rsa - dsa - ecdsa - - ### known_hosts {.col-span-2} Search from known_hosts + ```shell script $ ssh-keygen -F ``` Remove from known_hosts + ```shell script $ ssh-keygen -R ``` - ### Key format -- PEM +- PEM - PKCS8 - - - -Also see --------- +## Also see - [OpenSSH Config File Examples](https://www.cyberciti.biz/faq/create-ssh-config-file-on-linux-unix/) _(cyberciti.biz)_ - [ssh_config](https://linux.die.net/man/5/ssh_config) _(linux.die.net)_ - diff --git a/source/_posts/sublime-text.md b/source/_posts/sublime-text.md index 98c8887..be694e3 100644 --- a/source/_posts/sublime-text.md +++ b/source/_posts/sublime-text.md @@ -2,123 +2,117 @@ title: Sublime Text date: 2022-11-23 16:23:31.695666 background: bg-[#e8973e] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 49 keyboard shortcuts found in Sublime Text + A visual cheat-sheet for the 49 keyboard shortcuts found in Sublime Text --- +## Keyboard Shortcuts +### Editing {.row-span-3} -Keyboard Shortcuts ------------------- +| Shortcut | Action | +| ---------------------- | ------------------------------------------------------------------------- | +| `Ctrl` `X` | Cut line | +| `Ctrl` `Enter` | Insert line after | +| `Ctrl` `Shift` `Enter` | Insert line before | +| `Ctrl` `Shift` `Up` | Move line/selection up | +| `Ctrl` `Shift` `Down` | Move line/selection down | +| `Ctrl` `L` | Select line - Repeat to select next lines | +| `Ctrl` `D` | Select word - Repeat selects other occurrences | +| `Ctrl` `M` | Jump to closing parentheses - Repeat to jump to opening parentheses | +| `Ctrl` `Shift` `M` | Select all contents of the current parentheses | +| `Ctrl` `Shift` `K` | Delete line | +| `Ctrl` `K, K` | Delete from cursor to end of line | +| `Ctrl` `K` `Backspace` | Delete from cursor to start of line | +| `Ctrl` `]` | Indent current line(s) | +| `Ctrl` `[` | Un-indent current line(s) | +| `Ctrl` `Shift` `D` | Duplicate line(s) | +| `Ctrl` `J` | Join line below to the end of the current line | +| `Ctrl` `/` | Comment/un-comment current line | +| `Ctrl` `Shift` `/` | Block comment current selection | +| `Ctrl` `Y` | Redo, or repeat last keyboard shortcut command | +| `Ctrl` `Shift` `V` | Paste and indent correctly | +| `Ctrl` `Space` | Select next auto-complete suggestion | +| `Ctrl` `U` | Soft undo; jumps to your last change before undoing, change when repeated | +| `Alt` `Shift` `W` | Wrap selection in HTML tag | +| `Alt` `.` | Close current HTML tag | +| `Alt` `Q` | Hard wrap line to ruler column setting | - - -### Editing {.row-span-3} - -Shortcut | Action ----|--- -`Ctrl` `X` | Cut line -`Ctrl` `Enter` | Insert line after -`Ctrl` `Shift` `Enter` | Insert line before -`Ctrl` `Shift` `Up` | Move line/selection up -`Ctrl` `Shift` `Down` | Move line/selection down -`Ctrl` `L` | Select line - Repeat to select next lines -`Ctrl` `D` | Select word - Repeat selects other occurrences -`Ctrl` `M` | Jump to closing parentheses - Repeat to jump to opening parentheses -`Ctrl` `Shift` `M` | Select all contents of the current parentheses -`Ctrl` `Shift` `K` | Delete line -`Ctrl` `K, K` | Delete from cursor to end of line -`Ctrl` `K` `Backspace` | Delete from cursor to start of line -`Ctrl` `]` | Indent current line(s) -`Ctrl` `[` | Un-indent current line(s) -`Ctrl` `Shift` `D` | Duplicate line(s) -`Ctrl` `J` | Join line below to the end of the current line -`Ctrl` `/` | Comment/un-comment current line -`Ctrl` `Shift` `/` | Block comment current selection -`Ctrl` `Y` | Redo, or repeat last keyboard shortcut command -`Ctrl` `Shift` `V` | Paste and indent correctly -`Ctrl` `Space` | Select next auto-complete suggestion -`Ctrl` `U` | Soft undo; jumps to your last change before undoing, change when repeated -`Alt` `Shift` `W` | Wrap selection in HTML tag -`Alt` `.` | Close current HTML tag -`Alt` `Q` | Hard wrap line to ruler column setting {.shortcuts} - ### Navigation -Shortcut | Action ----|--- -`Ctrl` `P` | Quick-open files by name -`Ctrl` `R` | Goto symbol -`Ctrl` `;` | Goto word in current file -`Ctrl` `G` | Goto line in current file -{.shortcuts} +| Shortcut | Action | +| ---------- | ------------------------- | +| `Ctrl` `P` | Quick-open files by name | +| `Ctrl` `R` | Goto symbol | +| `Ctrl` `;` | Goto word in current file | +| `Ctrl` `G` | Goto line in current file | +{.shortcuts} ### General -Shortcut | Action ----|--- -`Ctrl` `Shift` `P` | Command prompt -`Ctrl` `K, B` | Toggle sidebar -`Ctrl` `Shift` `Alt` `P` | Show scope in status bar -{.shortcuts} +| Shortcut | Action | +| ------------------------ | ------------------------ | +| `Ctrl` `Shift` `P` | Command prompt | +| `Ctrl` `K, B` | Toggle sidebar | +| `Ctrl` `Shift` `Alt` `P` | Show scope in status bar | +{.shortcuts} ### Find/Replace -Shortcut | Action ----|--- -`Ctrl` `F` | Find -`Ctrl` `H` | Replace -`Ctrl` `Shift` `F` | Find in files -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------- | +| `Ctrl` `F` | Find | +| `Ctrl` `H` | Replace | +| `Ctrl` `Shift` `F` | Find in files | +{.shortcuts} ### Split window -Shortcut | Action ----|--- -`Alt` `Shift` `1` | Revert view to single column -`Alt` `Shift` `2` | Split view into two columns -`Alt` `Shift` `3` | Split view into three columns -`Alt` `Shift` `4` | Split view into four columns -`Alt` `Shift` `5` | Set view to grid (4 groups) -`Alt` `Shift` `8` | Split view into two rows -`Ctrl` `1-4` | Jump to group where number is 1-4 -`Ctrl` `Shift` `1-4` | Move file to specified group where number is 1-4 -{.shortcuts} +| Shortcut | Action | +| -------------------- | ------------------------------------------------ | +| `Alt` `Shift` `1` | Revert view to single column | +| `Alt` `Shift` `2` | Split view into two columns | +| `Alt` `Shift` `3` | Split view into three columns | +| `Alt` `Shift` `4` | Split view into four columns | +| `Alt` `Shift` `5` | Set view to grid (4 groups) | +| `Alt` `Shift` `8` | Split view into two rows | +| `Ctrl` `1-4` | Jump to group where number is 1-4 | +| `Ctrl` `Shift` `1-4` | Move file to specified group where number is 1-4 | +{.shortcuts} ### Bookmarks -Shortcut | Action ----|--- -`Ctrl` `F2` | Toggle bookmark -`F2` | Next bookmark -`Shift` `F2` | Previous bookmark -`Ctrl` `Shift` `F2` | Clear bookmarks -{.shortcuts} +| Shortcut | Action | +| ------------------- | ----------------- | +| `Ctrl` `F2` | Toggle bookmark | +| `F2` | Next bookmark | +| `Shift` `F2` | Previous bookmark | +| `Ctrl` `Shift` `F2` | Clear bookmarks | +{.shortcuts} ### Text manipulation -Shortcut | Action ----|--- -`Ctrl` `K, U` | Transform to uppercase -`Ctrl` `K, L` | Transform to lowercase +| Shortcut | Action | +| ------------- | ---------------------- | +| `Ctrl` `K, U` | Transform to uppercase | +| `Ctrl` `K, L` | Transform to lowercase | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Sublime Text](http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_win.html) _(docs.sublimetext.info)_ +- [Keyboard shortcuts for Sublime Text](http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_win.html) + _(docs.sublimetext.info)_ diff --git a/source/_posts/superhuman.md b/source/_posts/superhuman.md index adfcf35..7d7ee39 100644 --- a/source/_posts/superhuman.md +++ b/source/_posts/superhuman.md @@ -3,208 +3,200 @@ title: Superhuman date: 2022-11-23 16:23:31.694365 background: bg-[#6bafe2] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 105 keyboard shortcuts found in Superhuman. This application is MacOS-only. + A visual cheat-sheet for the 105 keyboard shortcuts found in Superhuman. This application is MacOS-only. --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Actions -Shortcut | Action ----|--- -`Cmd` `K` | Superhuman command -`/` | Search -`Z` | Undo -`?` | Shortcuts -`X` | Select conversation -`Shift` `J/K` | Add to selection -{.shortcuts} +| Shortcut | Action | +| ------------- | ------------------- | +| `Cmd` `K` | Superhuman command | +| `/` | Search | +| `Z` | Undo | +| `?` | Shortcuts | +| `X` | Select conversation | +| `Shift` `J/K` | Add to selection | +{.shortcuts} ### Filters -Shortcut | Action ----|--- -`Shift` `U` | Unread -`Shift` `S` | Starred -`Shift` `I` | Important -`Shift` `R` | No reply -{.shortcuts} +| Shortcut | Action | +| ----------- | --------- | +| `Shift` `U` | Unread | +| `Shift` `S` | Starred | +| `Shift` `I` | Important | +| `Shift` `R` | No reply | +{.shortcuts} ### Messages -Shortcut | Action ----|--- -`C` | Compose -`Enter` | Reply all -`R` | Reply -`F` | Forward -`Cmd` `O` | Open links and attachments -`Tab` | Cycle through links and dates -`O` | Expand message -`Shift` `O` | Expand all messages -{.shortcuts} +| Shortcut | Action | +| ----------- | ----------------------------- | +| `C` | Compose | +| `Enter` | Reply all | +| `R` | Reply | +| `F` | Forward | +| `Cmd` `O` | Open links and attachments | +| `Tab` | Cycle through links and dates | +| `O` | Expand message | +| `Shift` `O` | Expand all messages | +{.shortcuts} ### Conversations -Shortcut | Action ----|--- -`E` | Mark done (archive) -`Shift` `E` | Mark as not done -`H` | Remind me (snooze) -`S` | Star -`U` | Mark as read or unread -`Shift` `3` | Trash -`Shift` `1` | Mark as spam -`Shift` `M` | Mute -`Cmd` `U` | Unsubscribe -{.shortcuts} +| Shortcut | Action | +| ----------- | ---------------------- | +| `E` | Mark done (archive) | +| `Shift` `E` | Mark as not done | +| `H` | Remind me (snooze) | +| `S` | Star | +| `U` | Mark as read or unread | +| `Shift` `3` | Trash | +| `Shift` `1` | Mark as spam | +| `Shift` `M` | Mute | +| `Cmd` `U` | Unsubscribe | +{.shortcuts} ### Folders (Press keys separately) -Shortcut | Action ----|--- -`G` `I` | Go to inbox or important -`G` `O` | Go to other -`G` `S` | Go to starred -`G` `D` | Go to drafts -`G` `T` | Go to sent mail -`G` `E` | Go to done -`G` `H` | Go to reminders -`G` `M` | Go to muted -`G` `;` | Go to snippets -`G` `!` | Go to spam -`G` `#` | Go to trash -`G` `A` | Go to all mail -`G` `L` | Go to label -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------------ | +| `G` `I` | Go to inbox or important | +| `G` `O` | Go to other | +| `G` `S` | Go to starred | +| `G` `D` | Go to drafts | +| `G` `T` | Go to sent mail | +| `G` `E` | Go to done | +| `G` `H` | Go to reminders | +| `G` `M` | Go to muted | +| `G` `;` | Go to snippets | +| `G` `!` | Go to spam | +| `G` `#` | Go to trash | +| `G` `A` | Go to all mail | +| `G` `L` | Go to label | +{.shortcuts} ### Format -Shortcut | Action ----|--- -`Cmd` `B` | Bold -`Cmd` `I` | Italics -`Cmd` `U` | Underline -`Cmd` `K` | Hyperlink -`Cmd` `O` | Color -`Cmd` `Shift` `X` | Strikethrough -`Cmd` `Shift` `7` | Numbers -`Cmd` `Shift` `8` | Bullets -`Cmd` `Shift` `9` | Quote -`Tab` | Indent list -`Shift` `Tab` | Outdent list -`Cmd` `]` | Increase indent -`Cmd` `[` | Decrease indent -{.shortcuts} +| Shortcut | Action | +| ----------------- | --------------- | +| `Cmd` `B` | Bold | +| `Cmd` `I` | Italics | +| `Cmd` `U` | Underline | +| `Cmd` `K` | Hyperlink | +| `Cmd` `O` | Color | +| `Cmd` `Shift` `X` | Strikethrough | +| `Cmd` `Shift` `7` | Numbers | +| `Cmd` `Shift` `8` | Bullets | +| `Cmd` `Shift` `9` | Quote | +| `Tab` | Indent list | +| `Shift` `Tab` | Outdent list | +| `Cmd` `]` | Increase indent | +| `Cmd` `[` | Decrease indent | +{.shortcuts} ### Labels -Shortcut | Action ----|--- -`L` | Add or remove a label -`Y` | Remove label -`[` | Remove label, next -`]` | Remove label, previous -`Shift` `Y` | Remove all labels -`V` | Move -{.shortcuts} +| Shortcut | Action | +| ----------- | ---------------------- | +| `L` | Add or remove a label | +| `Y` | Remove label | +| `[` | Remove label, next | +| `]` | Remove label, previous | +| `Shift` `Y` | Remove all labels | +| `V` | Move | +{.shortcuts} ### Calendar -Shortcut | Action ----|--- -`0` | Toggle calendar -`-` | Previous day -`=` | Next day -{.shortcuts} +| Shortcut | Action | +| -------- | --------------- | +| `0` | Toggle calendar | +| `-` | Previous day | +| `=` | Next day | +{.shortcuts} ### Navigation {.row-span-2} -Shortcut | Action ----|--- -`Up/Down/Left/Right` | Superhuman focus -`Tab` | Next split -`Shift` `Tab` | Previous split -`Enter` | Open conversation -`J/K` | Next or previous conversation -`N/P` | Next or previous message -`Space` | Scroll down -`Shift` `Space` | Scroll up -`Cmd` `Up/Down` | Jump to the top or bottom -`Cmd` `N` | New window -`Cmd` `T` | New tab -`Cmd` `Shift` `]` | Next tab -`Cmd` `Shift` `[` | Previous tab -`Cmd` `1/2/3` | Switch tabs -`Cmd` `W` | Close tab -`Ctrl` `1/2/3` | Switch accounts -`Cmd` `=` | Increase font size -`Cmd` `-` | Decrease font size -`Cmd` `0` | Reset font size -`Ctrl` `/` | Copy page link -`Esc` | Back +| Shortcut | Action | +| -------------------- | ----------------------------- | +| `Up/Down/Left/Right` | Superhuman focus | +| `Tab` | Next split | +| `Shift` `Tab` | Previous split | +| `Enter` | Open conversation | +| `J/K` | Next or previous conversation | +| `N/P` | Next or previous message | +| `Space` | Scroll down | +| `Shift` `Space` | Scroll up | +| `Cmd` `Up/Down` | Jump to the top or bottom | +| `Cmd` `N` | New window | +| `Cmd` `T` | New tab | +| `Cmd` `Shift` `]` | Next tab | +| `Cmd` `Shift` `[` | Previous tab | +| `Cmd` `1/2/3` | Switch tabs | +| `Cmd` `W` | Close tab | +| `Ctrl` `1/2/3` | Switch accounts | +| `Cmd` `=` | Increase font size | +| `Cmd` `-` | Decrease font size | +| `Cmd` `0` | Reset font size | +| `Ctrl` `/` | Copy page link | +| `Esc` | Back | + {.shortcuts} - - ### Pop Out Compose -Shortcut | Action ----|--- -`Cmd` `Shift` `P` | Pop draft in or out -`Shift` `R` | Pop out reply -`Shift` `Enter` | Pop out reply-all -`Shift` `C` | Pop out new message -`Shift` `F` | Pop out forward -`Cmd` `/` | Pop out a draft and search -`Cmd` `D` | Switch to or from a draft +| Shortcut | Action | +| ----------------- | -------------------------- | +| `Cmd` `Shift` `P` | Pop draft in or out | +| `Shift` `R` | Pop out reply | +| `Shift` `Enter` | Pop out reply-all | +| `Shift` `C` | Pop out new message | +| `Shift` `F` | Pop out forward | +| `Cmd` `/` | Pop out a draft and search | +| `Cmd` `D` | Switch to or from a draft | + {.shortcuts} - - ### Compose -Shortcut | Action ----|--- -`Cmd` `Shift` `O` | To -`Cmd` `Shift` `C` | CC -`Cmd` `Shift` `B` | BCC -`Cmd` `Shift` `F` | From -`Cmd` `Shift` `S` | Edit subject -`Cmd` `Shift` `M` | Edit message -`Cmd` `Shift` `A` | Attach -`Cmd` `Shift` `,` | Discard draft -`Cmd` `Shift` `I` | Move contacts to BCC -`Cmd` `Shift` `H` | Remind me -`Cmd` `Shift` `L` | Send later -`Cmd` `;` | Use snippet -`Cmd` `Enter` | Send -`Cmd` `Shift` `Enter` | Send and mark done -`Cmd` `Shift` `Z` | Instant send +| Shortcut | Action | +| --------------------- | -------------------- | +| `Cmd` `Shift` `O` | To | +| `Cmd` `Shift` `C` | CC | +| `Cmd` `Shift` `B` | BCC | +| `Cmd` `Shift` `F` | From | +| `Cmd` `Shift` `S` | Edit subject | +| `Cmd` `Shift` `M` | Edit message | +| `Cmd` `Shift` `A` | Attach | +| `Cmd` `Shift` `,` | Discard draft | +| `Cmd` `Shift` `I` | Move contacts to BCC | +| `Cmd` `Shift` `H` | Remind me | +| `Cmd` `Shift` `L` | Send later | +| `Cmd` `;` | Use snippet | +| `Cmd` `Enter` | Send | +| `Cmd` `Shift` `Enter` | Send and mark done | +| `Cmd` `Shift` `Z` | Instant send | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Superhuman](https://download.superhuman.com/Superhuman%20Keyboard%20Shortcuts.pdf) _(download.superhuman.com)_ +- [Keyboard shortcuts for Superhuman](https://download.superhuman.com/Superhuman%20Keyboard%20Shortcuts.pdf) + _(download.superhuman.com)_ diff --git a/source/_posts/table-plus.md b/source/_posts/table-plus.md index ef910fe..70638d1 100644 --- a/source/_posts/table-plus.md +++ b/source/_posts/table-plus.md @@ -2,80 +2,73 @@ title: TablePlus date: 2022-11-23 16:23:31.706905 background: bg-[#ecc550] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 34 keyboard shortcuts found in TablePlus + A visual cheat-sheet for the 34 keyboard shortcuts found in TablePlus --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Global -Shortcut | Action ----|--- -`Ctrl` `N` | Open a new connection -`Ctrl` `Q` | Quit app -`Ctrl` `Shift` `O` | Open SQL file -`Ctrl` `,` | Open Preferences -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------------- | +| `Ctrl` `N` | Open a new connection | +| `Ctrl` `Q` | Quit app | +| `Ctrl` `Shift` `O` | Open SQL file | +| `Ctrl` `,` | Open Preferences | +{.shortcuts} ### Workspace -Shortcut | Action ----|--- -`Ctrl` `W` | Close a tab/window -`Ctrl` `S` | Commit the changes -`Ctrl` `T` | Open a new tab -`Ctrl` `L` | Open plugin manager -`Ctrl` `.` | Run custom script -`Ctrl` `R` | Reload workspace -`Ctrl` `[` | Navigate to left tab -`Ctrl` `]` | Navigate to right tab -`Ctrl` `Shift` `[` | Navigate to left Pane -`Ctrl` `Shift` `]` | Navigate to right Pane -`Ctrl` `D` | Split Pane horizontally -`Ctrl` `1-9` | Navigate to number tab -`Ctrl` `K` | Switch database -`Ctrl` `Shift` `K` | Switch connection -`Ctrl` `I` | Indent selected SQL Code -`Ctrl` `E` | Execute SQL Code -`Ctrl` `O` | Open file SQL -`Ctrl` `Shift` `Enter` | Uglify selected SQL statements -`Ctrl` `\` | Comment/Uncomment lines of SQL -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo -`Ctrl` `P` | Open anything -`Ctrl` `E` | Open SQL Query -`Ctrl` `(click)` | Open item in new tab -`Tab` | Move focus while editing -{.shortcuts} +| Shortcut | Action | +| ---------------------- | ------------------------------ | +| `Ctrl` `W` | Close a tab/window | +| `Ctrl` `S` | Commit the changes | +| `Ctrl` `T` | Open a new tab | +| `Ctrl` `L` | Open plugin manager | +| `Ctrl` `.` | Run custom script | +| `Ctrl` `R` | Reload workspace | +| `Ctrl` `[` | Navigate to left tab | +| `Ctrl` `]` | Navigate to right tab | +| `Ctrl` `Shift` `[` | Navigate to left Pane | +| `Ctrl` `Shift` `]` | Navigate to right Pane | +| `Ctrl` `D` | Split Pane horizontally | +| `Ctrl` `1-9` | Navigate to number tab | +| `Ctrl` `K` | Switch database | +| `Ctrl` `Shift` `K` | Switch connection | +| `Ctrl` `I` | Indent selected SQL Code | +| `Ctrl` `E` | Execute SQL Code | +| `Ctrl` `O` | Open file SQL | +| `Ctrl` `Shift` `Enter` | Uglify selected SQL statements | +| `Ctrl` `\` | Comment/Uncomment lines of SQL | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo | +| `Ctrl` `P` | Open anything | +| `Ctrl` `E` | Open SQL Query | +| `Ctrl` `(click)` | Open item in new tab | +| `Tab` | Move focus while editing | +{.shortcuts} ### Table Data -Shortcut | Action ----|--- -`Space` | Toggle row detail when row selected -`Ctrl` `C` | Copy rows -`Ctrl` `V` | Paste rows -`Ctrl` `Alt` `I` | Insert a new row -`Tab` | Move focus while editing +| Shortcut | Action | +| ---------------- | ----------------------------------- | +| `Space` | Toggle row detail when row selected | +| `Ctrl` `C` | Copy rows | +| `Ctrl` `V` | Paste rows | +| `Ctrl` `Alt` `I` | Insert a new row | +| `Tab` | Move focus while editing | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for TablePlus app](https://tableplus.com/blog/2018/02/shortcut-keys.html) _(tableplus.com)_ diff --git a/source/_posts/telegram.md b/source/_posts/telegram.md index 9f317ad..902a935 100644 --- a/source/_posts/telegram.md +++ b/source/_posts/telegram.md @@ -2,113 +2,107 @@ title: Telegram Desktop date: 2022-11-23 16:23:31.700963 background: bg-[#50a1dc] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 37 keyboard shortcuts found on the Telegram Desktop app + A visual cheat-sheet for the 37 keyboard shortcuts found on the Telegram Desktop app --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Chats -Shortcut | Action ----|--- -`Up/Down` | In-Chat Navigation -`Up/Down/Left/Right` | Suggested Stickers Navigation -`Left/Right` | Suggested Emojis Navigation -`Ctrl` `Tab` | Move to the Chat Below -`Ctrl` `Shift` `Tab` | Move to the Chat Above -`Esc` | Exit -`Esc` | Go Back -`Esc` | Cancel Current Action -`Ctrl` `O` | Send File -{.shortcuts} +| Shortcut | Action | +| -------------------- | ----------------------------- | +| `Up/Down` | In-Chat Navigation | +| `Up/Down/Left/Right` | Suggested Stickers Navigation | +| `Left/Right` | Suggested Emojis Navigation | +| `Ctrl` `Tab` | Move to the Chat Below | +| `Ctrl` `Shift` `Tab` | Move to the Chat Above | +| `Esc` | Exit | +| `Esc` | Go Back | +| `Esc` | Cancel Current Action | +| `Ctrl` `O` | Send File | +{.shortcuts} ### Messages -Shortcut | Action ----|--- -`Ctrl` `Up/Down` | Reply to a Message -`Ctrl` `Down` | Cancel Reply -`Up` | Edit Last Message Sent -`Del` | Delete Currently Selected Message -`Ctrl` `E` | Edit Media -`Ctrl` `(click gif)` | Send GIF Directly -`Ctrl` `(click name)` | Open Bot Profile via Inline Message -{.shortcuts} +| Shortcut | Action | +| --------------------- | ----------------------------------- | +| `Ctrl` `Up/Down` | Reply to a Message | +| `Ctrl` `Down` | Cancel Reply | +| `Up` | Edit Last Message Sent | +| `Del` | Delete Currently Selected Message | +| `Ctrl` `E` | Edit Media | +| `Ctrl` `(click gif)` | Send GIF Directly | +| `Ctrl` `(click name)` | Open Bot Profile via Inline Message | +{.shortcuts} ### Search -Shortcut | Action ----|--- -`Ctrl` `F` | Search Selected Chat -`Esc` | Exit Search -{.shortcuts} +| Shortcut | Action | +| ---------- | -------------------- | +| `Ctrl` `F` | Search Selected Chat | +| `Esc` | Exit Search | +{.shortcuts} ### QuickShare Panel -Shortcut | Action ----|--- -`Up/Down` | Navigate -`Enter` | Select Chat -`Backspace` | Remove Chat -`Ctrl` `Enter` | Send Message -{.shortcuts} +| Shortcut | Action | +| -------------- | ------------ | +| `Up/Down` | Navigate | +| `Enter` | Select Chat | +| `Backspace` | Remove Chat | +| `Ctrl` `Enter` | Send Message | +{.shortcuts} ### Jump to -Shortcut | Action ----|--- -`Alt` `Enter` | Jump to the bottom of the chat -`Alt` `Enter` | Scroll the chat list to the top -`Ctrl` `0` | Jump to your saved messages -`Ctrl` `1-5` | Jump between folders -`Ctrl` `Shift` `Down` | Jump to the next folder -`Ctrl` `Shift` `Up` | Jump to the previous folder -{.shortcuts} +| Shortcut | Action | +| --------------------- | ------------------------------- | +| `Alt` `Enter` | Jump to the bottom of the chat | +| `Alt` `Enter` | Scroll the chat list to the top | +| `Ctrl` `0` | Jump to your saved messages | +| `Ctrl` `1-5` | Jump between folders | +| `Ctrl` `Shift` `Down` | Jump to the next folder | +| `Ctrl` `Shift` `Up` | Jump to the previous folder | +{.shortcuts} ### Window Related -Shortcut | Action ----|--- -`Ctrl` `W` | Minimize to System Tray -`Ctrl` `Q` | Quit Telegram -`Ctrl` `L` | Lock Telegram -`Ctrl` `M` | Minimize Telegram -{.shortcuts} +| Shortcut | Action | +| ---------- | ----------------------- | +| `Ctrl` `W` | Minimize to System Tray | +| `Ctrl` `Q` | Quit Telegram | +| `Ctrl` `L` | Lock Telegram | +| `Ctrl` `M` | Minimize Telegram | +{.shortcuts} ### Selected Text -Shortcut | Action ----|--- -`Ctrl` `B` | Bold -`Ctrl` `I` | Italic -`Ctrl` `K` | Create Link -`Ctrl` `U` | Underline -`Ctrl` `Shift` `M` | Monospace -`Ctrl` `Shift` `N` | Null / Plain Text -`Ctrl` `Shift` `X` | Strikethrough +| Shortcut | Action | +| ------------------ | ----------------- | +| `Ctrl` `B` | Bold | +| `Ctrl` `I` | Italic | +| `Ctrl` `K` | Create Link | +| `Ctrl` `U` | Underline | +| `Ctrl` `Shift` `M` | Monospace | +| `Ctrl` `Shift` `N` | Null / Plain Text | +| `Ctrl` `Shift` `X` | Strikethrough | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Telegram Desktop](https://github.com/telegramdesktop/tdesktop/wiki/Keyboard-Shortcuts) _(github.com)_ +- [Keyboard shortcuts for Telegram Desktop](https://github.com/telegramdesktop/tdesktop/wiki/Keyboard-Shortcuts) + _(github.com)_ diff --git a/source/_posts/tmux.md b/source/_posts/tmux.md index 633277d..c90f68d 100644 --- a/source/_posts/tmux.md +++ b/source/_posts/tmux.md @@ -3,138 +3,149 @@ title: Tmux date: 2021-02-20 14:31:24 background: bg-emerald-600 tags: - - utility - - terminal - - session + - utility + - terminal + - session categories: - - Linux Command + - Linux Command intro: | - The tmux cheat sheet quick reference of most commonly used shortcuts and commands + The tmux cheat sheet quick reference of most commonly used shortcuts and commands plugins: - - copyCode + - copyCode --- +## Tmux CLI +### New session {.row-span-2} -Tmux CLI -------- - -### New session {.row-span-2} Start a new session + ```shell script $ tmux ``` + Start a new named session + ```shell script $ tmux new -s myname ``` + Show all sessions + ```shell script $ tmux ls ``` ### Attach session + Attach to last session + ```shell script $ tmux a ``` + Attach to named + ```shell script $ tmux a -t myname ``` +### Kill session {.row-span-2} -### Kill session {.row-span-2} Kill a session by name + ```shell script $ tmux kill-ses -t myname ``` + Kill sessions but the current + ```shell script $ tmux kill-ses -a ``` + Kill sessions but 'myname' + ```shell script $ tmux kill-ses -a -t myname ``` - ### Tmux help + ```shell script $ tmux info ``` ### Config + Reload config + ```shell script $ tmux source-file ~/.tmu­x.conf ``` + Show config + ```shell script $ tmux show-options -g ``` +### Copy Mode - -### Copy Mode | Command | Description | -|--------------|----------------------------| +| ------------ | -------------------------- | | `Ctrl+b` `[` | Enter copy mode | | `` | Start selection | | `Enter` | Copy selection | | `q` | Quit copy mode | | `Ctrl+b` `]` | Paste contents of buffer_0 | -{.shortcuts} +{.shortcuts} Mainly works like selecting text in [Vim](/vim#motions) - - - - -Tmux shortcuts --------------- +## Tmux shortcuts ### Getting started {.secondary} + | Shortcuts | Description | -|--------------|--------------------| +| ------------ | ------------------ | | `Ctrl+b` `?` | List all shortcuts | + {.shortcuts .show-header}
----- +--- Show every session, window, pane, etc. + ```shell script $ tmux info ``` - - ### Panes (Splits) {.row-span-2} | Shortcuts | Description | -|------------------------|--------------------| +| ---------------------- | ------------------ | | `Ctrl+b` `"` _/_ `%` | Split Horiz/Vert | | `Ctrl+b` `!` | Pane -> Window | | `Ctrl+b` `x` | Kill pane | | `Ctrl+b` | Navigate panes | | `Ctrl+b` | Toggle layouts | | `Ctrl+b` `{` _/_ `}` | Move to Left/Right | -| `Ctrl+b` `o` | Go to next panes | +| `Ctrl+b` `o` | Go to next panes | | `Ctrl+b` `z` | Toggle full-screen | | `Ctrl+b` `;` | Toggle Last pane | | `Ctrl+b` `q` | Show numbers | -| `Ctrl+b` `q` `0`...`9` | Go to # pane | +| `Ctrl+b` `q` `0`...`9` | Go to # pane | + {.shortcuts} - - ### Window (Tabs) {.row-span-2} + | - | - | -|----------------------|----------------------| +| -------------------- | -------------------- | | `Ctrl+b` `c` | Create window | | `Ctrl+b` `p` _/_ `n` | Previous/Next window | | `Ctrl+b` `"` _/_ `%` | Split Horiz/Vert | @@ -144,55 +155,52 @@ $ tmux info | `Ctrl+b` `l` | Last window | | `Ctrl+b` `.` | Move window | | `Ctrl+b` `&` | Close window | -| `Ctrl+b` `0`...`9` | Go to # window | +| `Ctrl+b` `0`...`9` | Go to # window | + {.shortcuts} - - ### Session (Set of Windows) + | - | - | -|----------------------|--------------------------------| +| -------------------- | ------------------------------ | | `Ctrl+b` `d` | Detach from session | | `Ctrl+b` `s` | Show all sessions | | `Ctrl+b` `$` | Rename session | | `Ctrl+b` `(` _/_ `)` | Previous/Next session | + {.shortcuts} - - -Tmux Command Mode ------------ +## Tmux Command Mode ### Usage {.secondary} + | Command | Description | -|--------------|--------------------| +| ------------ | ------------------ | | `Ctrl+b` `:` | Enter command mode | + {.shortcuts} - -### Resizing +### Resizing | Command | Description | -|---------------------|--------------| +| ------------------- | ------------ | | `resize-pane -D 20` | Resize down | | `resize-pane -U 20` | Resize up | | `resize-pane -L 20` | Resize left | | `resize-pane -R 20` | Resize right | - ### Listing | Command | Description | -|----------------|--------------| +| -------------- | ------------ | | `list-keys` | All commands | | `list-panes` | All panes | | `list-windows` | All Windows | - ### Copying | Command | Description | -|----------------------|------------------| +| -------------------- | ---------------- | | `list-buffers` | List all buffers | | `show-buffer` | Show #0 contents | | `capture-pane` | Copy of pane | @@ -200,19 +208,19 @@ Tmux Command Mode | `save-buffer a.txt` | Save to file | | `delete-buffer -b 1` | Delete buffer 1 | - ### Setting -| Command | Description | -|-----------------------|-----------------------| -`set -g OPTION` | Set for all sessions -`setw -g OPTION` | Set for all windows -`setw -g mode-keys vi` | Enable vi-mode -`set -g prefix C-a` | Set prefix +| Command | Description | +| ---------------------- | -------------------- | +| `set -g OPTION` | Set for all sessions | +| `setw -g OPTION` | Set for all windows | +| `setw -g mode-keys vi` | Enable vi-mode | +| `set -g prefix C-a` | Set prefix | ### Misc + | Command | Description | -|--------------------------|--------------| +| ------------------------ | ------------ | | `swap-pane -s 3 -t 1` | Swap pane | | `swap-window -t -1` | Move to left | | `setw synchronize-panes` | Sync Panes | diff --git a/source/_posts/todoist.md b/source/_posts/todoist.md index a7168dd..f5a4ffd 100644 --- a/source/_posts/todoist.md +++ b/source/_posts/todoist.md @@ -2,104 +2,98 @@ title: Todoist date: 2022-11-23 16:23:31.696934 background: bg-[#cc4d3b] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 37 keyboard shortcuts found in Todoist + A visual cheat-sheet for the 37 keyboard shortcuts found in Todoist --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Task Quick Add -Shortcut | Action ----|--- -`@` | Add a label -`#` | Pick a project -`+` | Add an assignee -`p1/p2/p3/p4` | Set a priority level -`Ctrl` `M` | Add a comment to a newly created task -`Alt` `Enter` | Save and go to comments (Win 10 only) -`Tab` | Open full task editor (Win 10 only) -{.shortcuts} +| Shortcut | Action | +| ------------- | ------------------------------------- | +| `@` | Add a label | +| `#` | Pick a project | +| `+` | Add an assignee | +| `p1/p2/p3/p4` | Set a priority level | +| `Ctrl` `M` | Add a comment to a newly created task | +| `Alt` `Enter` | Save and go to comments (Win 10 only) | +| `Tab` | Open full task editor (Win 10 only) | +{.shortcuts} ### General -Shortcut | Action ----|--- -`Ctrl` `Click` | Select and change multiple tasks at once -`Q` | Add task -`A` | Add new task at the bottom of the list -`Shift` `A` | Add new task at the top of the list -`/` | Open search -`U` | Undo last action -`F5` | Manually sync -`Home` | Navigate to default page -`PgUp` | Navigate back in 1-pane/2-pane view -`PgDown` | Navigate forward in 1-pane/2-pane view -{.shortcuts} +| Shortcut | Action | +| -------------- | ---------------------------------------- | +| `Ctrl` `Click` | Select and change multiple tasks at once | +| `Q` | Add task | +| `A` | Add new task at the bottom of the list | +| `Shift` `A` | Add new task at the top of the list | +| `/` | Open search | +| `U` | Undo last action | +| `F5` | Manually sync | +| `Home` | Navigate to default page | +| `PgUp` | Navigate back in 1-pane/2-pane view | +| `PgDown` | Navigate forward in 1-pane/2-pane view | +{.shortcuts} ### Adding or editing tasks -Shortcut | Action ----|--- -`Esc` | Cancel current changes -`Enter` | Save a newly created task and create a new one below it -`Shift` `Enter` | Save changes to an existing task and create a new task below it -`Ctrl` `Enter` | Save a new task or save changes to an existing one and create a new task above it -`Ctrl` `Up` | Move to the task above the task currently being edited -`Ctrl` `Down` | Move to the task below the task currently being edited -{.shortcuts} +| Shortcut | Action | +| --------------- | --------------------------------------------------------------------------------- | +| `Esc` | Cancel current changes | +| `Enter` | Save a newly created task and create a new one below it | +| `Shift` `Enter` | Save changes to an existing task and create a new task below it | +| `Ctrl` `Enter` | Save a new task or save changes to an existing one and create a new task above it | +| `Ctrl` `Up` | Move to the task above the task currently being edited | +| `Ctrl` `Down` | Move to the task below the task currently being edited | +{.shortcuts} ### Creating and completing sub-tasks -Shortcut | Action ----|--- -`Ctrl` `Alt` `Right` | Increase task indent -`Ctrl` `Alt` `Left` | Decrease task indent -`Shift` `(click)` | Complete a sub-task or recurring task and archive it -{.shortcuts} +| Shortcut | Action | +| -------------------- | ---------------------------------------------------- | +| `Ctrl` `Alt` `Right` | Increase task indent | +| `Ctrl` `Alt` `Left` | Decrease task indent | +| `Shift` `(click)` | Complete a sub-task or recurring task and archive it | +{.shortcuts} ### Sorting tasks inside a project -Shortcut | Action ----|--- -`S` | Sort by date -`P` | Sort by priority -`R` | Sort by assignee -{.shortcuts} +| Shortcut | Action | +| -------- | ---------------- | +| `S` | Sort by date | +| `P` | Sort by priority | +| `R` | Sort by assignee | +{.shortcuts} ### Navigation -Shortcut | Action ----|--- -`Ctrl` `1` | Inbox -`Ctrl` `Shift` `1` | Team Inbox (Todoist Business only) -`Ctrl` `2` | Today -`Ctrl` `3` | Next 7 days -`Ctrl` `4` | Projects -`Ctrl` `5` | Labels -`Ctrl` `6` | Filters -`Ctrl` `,` | Settings +| Shortcut | Action | +| ------------------ | ---------------------------------- | +| `Ctrl` `1` | Inbox | +| `Ctrl` `Shift` `1` | Team Inbox (Todoist Business only) | +| `Ctrl` `2` | Today | +| `Ctrl` `3` | Next 7 days | +| `Ctrl` `4` | Projects | +| `Ctrl` `5` | Labels | +| `Ctrl` `6` | Filters | +| `Ctrl` `,` | Settings | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Todoist](https://get.todoist.help/hc/en-us/articles/205063212-Keyboard-Shortcuts) _(get.todoist.help)_ +- [Keyboard shortcuts for Todoist](https://get.todoist.help/hc/en-us/articles/205063212-Keyboard-Shortcuts) + _(get.todoist.help)_ diff --git a/source/_posts/toml.md b/source/_posts/toml.md index 973b852..f976a18 100644 --- a/source/_posts/toml.md +++ b/source/_posts/toml.md @@ -3,29 +3,27 @@ title: TOML date: 2020-12-29 20:36:35 background: bg-[#848484] tags: - - config - - format + - config + - format categories: - - Programming + - Programming intro: | - This is a quick reference cheat sheet to the TOML format configuration file syntax. + This is a quick reference cheat sheet to the TOML format configuration file syntax. plugins: - - copyCode + - copyCode --- - -Getting Started ---------------- +## Getting Started ### Introduction -[TOML](https://toml.io/en/) is a minimal configuration file format that's easy to read due to obvious semantics. + +[TOML](https://toml.io/en/) is a minimal configuration file format that's easy to read due to obvious semantics. + - [Document](https://toml.io/en/latest) _(toml.io)_ - [Learn X in Y minutes](https://learnxinyminutes.com/docs/toml/) _(learnxinyminutes.com)_ - - - ### Examples + ```toml bool = true date = 2006-05-27T07:32:00Z @@ -35,9 +33,8 @@ float = 3.14 scientificNotation = 1e+12 ``` - - ### Comments + ```yaml # A single line comment example @@ -47,9 +44,8 @@ scientificNotation = 1e+12 # comment line 3 ``` - - ### Integer + ```toml int1 = +42 int2 = 0 @@ -57,24 +53,24 @@ int3 = -21 integerRange = 64 ``` - ### Float + ```toml float2 = 3.1415 float4 = 5e+22 float7 = 6.626e-34 ``` - ### Boolean + ```toml bool1 = true bool2 = false boolMustBeLowercase = true ``` - ### Datetime + ```toml date1 = 1989-05-27T07:32:00Z date2 = 1989-05-26T15:32:00-07:00 @@ -84,28 +80,28 @@ time1 = 07:32:00 time2 = 00:32:00.999999 ``` - ### String + ```toml str1 = "I'm a string." str2 = "You can \"quote\" me." str3 = "Name\tJos\u00E9\nLoc\tSF." ``` + See: [Strings](#toml-strings) - - - ### Table + ```toml [owner] name = "Tom Preston-Werner" dob = 1979-05-27T07:32:00-08:00 ``` + See: [Tables](#toml-tables) - ### Array + ```toml array1 = [1, 2, 3] array2 = ["Commas", "are", "delimiter"] @@ -113,45 +109,41 @@ array3 = [8001, 8001, 8002] ``` ### Friendly Array {.col-span-2} + ```toml array1 = [ "Don't mix", "different", "types" ] array2 = [ [ 1.2, 2.4 ], ["all", 'strings', """are the same""", '''type'''] ] array3 = [ - "Whitespace", "is", + "Whitespace", "is", "ignored" ] ``` - - - - -TOML Strings ------ - - +## TOML Strings ### Multiline String + ```toml multiLineString = """ Multi-line basic strings are surrounded by three quotation marks on each side -and allow newlines. +and allow newlines. """ ``` - ### Literal String + ```toml {.wrap} path = 'C:\Users\nodejs\templates' path2 = '\\User\admin$\system32' quoted = 'Tom "Dubs" Preston-Werner' regex = '<\i\c*\s*>' ``` + Surrounded by single quotes. Escaping are not allowed. - ### MultiLine Literal String + ```toml re = '''\d{2} apps is t[wo]o many''' lines = ''' @@ -162,21 +154,20 @@ is preserved. ''' ``` +## TOML Tables - - -TOML Tables ------ ### Basic + ```toml [name] foo = 1 bar = 2 ``` + `foo` and `bar` are keys in the table called `name` - ### Nested + ```toml [table1] foo = "bar" @@ -185,10 +176,8 @@ bar = 2 baz = "bat" ``` - - - ### Array-like {.row-span-2} + ```toml [[comments]] author = "Nate" @@ -198,29 +187,33 @@ text = "Great Article!" author = "Anonymous" text = "Love it!" ``` + #### ↓ Equivalent JSON + ```json { - "comments" : [ - { - "author" : "Nate", - "text" : "Great Article!" - }, - { - "author" : "Anonymous", - "text" : "Love It!" - } - ] + "comments": [ + { + "author": "Nate", + "text": "Great Article!" + }, + { + "author": "Anonymous", + "text": "Love It!" + } + ] } ``` - ### Dot separated + ```toml [dog."tater.man"] type = "pug" ``` + #### ↓ Equivalent JSON + ```json { "dog": { @@ -231,28 +224,29 @@ type = "pug" } ``` - - - ### Multi-nested + ```toml [foo.bar.baz] bat = "hi" ``` + #### ↓ Equivalent JSON + ```json { - "foo" : { - "bar" : { - "baz" : { - "bat" : "hi" - } - } - } + "foo": { + "bar": { + "baz": { + "bat": "hi" + } + } + } } ``` ### Ignore whitespace + ```toml [a.b.c] # this is best practice [ d.e.f ] # same as [d.e.f] @@ -261,11 +255,9 @@ bat = "hi" ``` ### Inline Table {.col-span-2} -```toml + +```toml name = { first = "Tom", last = "Preston-Werner" } point = { x = 1, y = 2 } animal = { type.name = "pug" } ``` - - - diff --git a/source/_posts/transmit.md b/source/_posts/transmit.md index 89ddfe7..bf060fa 100644 --- a/source/_posts/transmit.md +++ b/source/_posts/transmit.md @@ -3,142 +3,136 @@ title: Transmit date: 2022-11-23 16:23:31.695841 background: bg-[#646fed] label: Mac -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 62 keyboard shortcuts found in Transmit. This application is MacOS-only. + A visual cheat-sheet for the 62 keyboard shortcuts found in Transmit. This application is MacOS-only. --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Transmit Menu -Shortcut | Action ----|--- -`Cmd` `,` | Preferences... -`Cmd` `H` | Hide Transmit -`Cmd` `Opt` `H` | Hide others -`Cmd` `Q` | Quit Transmit -`Cmd` `Opt` `Q` | Quit and close all windows +| Shortcut | Action | +| --------------- | -------------------------- | +| `Cmd` `,` | Preferences... | +| `Cmd` `H` | Hide Transmit | +| `Cmd` `Opt` `H` | Hide others | +| `Cmd` `Q` | Quit Transmit | +| `Cmd` `Opt` `Q` | Quit and close all windows | + {.shortcuts} +### File Menu {.row-span-2} -### File Menu {.row-span-2} +| Shortcut | Action | +| ----------------- | --------------------------- | +| `Cmd` `N` | New window | +| `Cmd` `T` | New tab | +| `Cmd` `Shift` `N` | New folder | +| `Cmd` `Opt` `N` | New file | +| `Cmd` `W` | Close tab | +| `Cmd` `Shift` `W` | Close window | +| `Cmd` `Opt` `W` | Close all | +| `Cmd` `E` | Disconnect | +| `Cmd` `O` | Open | +| `Cmd` `S` | Save | +| `Cmd` `B` | Preview in browser | +| `Cmd` `I` | Get info | +| `Cmd` `Opt` `I` | Show inspector | +| `Cmd` `D` | Duplicate | +| `Cmd` `Y` | Quick look at selected-file | +| `Cmd` `P` | Print... | -Shortcut | Action ----|--- -`Cmd` `N` | New window -`Cmd` `T` | New tab -`Cmd` `Shift` `N` | New folder -`Cmd` `Opt` `N` | New file -`Cmd` `W` | Close tab -`Cmd` `Shift` `W` | Close window -`Cmd` `Opt` `W` | Close all -`Cmd` `E` | Disconnect -`Cmd` `O` | Open -`Cmd` `S` | Save -`Cmd` `B` | Preview in browser -`Cmd` `I` | Get info -`Cmd` `Opt` `I` | Show inspector -`Cmd` `D` | Duplicate -`Cmd` `Y` | Quick look at selected-file -`Cmd` `P` | Print... {.shortcuts} - ### Edit Menu -Shortcut | Action ----|--- -`Cmd` `Z` | Undo -`Cmd` `Shift` `Z` | Redo -`Cmd` `X` | Cut -`Cmd` `C` | Copy -`Cmd` `V` | Paste -`Cmd` `A` | Select all -`Cmd` `J` | Jump to selection -`Cmd` `:` | Show spelling and grammar -`Cmd` `;` | Check spelling -{.shortcuts} +| Shortcut | Action | +| ----------------- | ------------------------- | +| `Cmd` `Z` | Undo | +| `Cmd` `Shift` `Z` | Redo | +| `Cmd` `X` | Cut | +| `Cmd` `C` | Copy | +| `Cmd` `V` | Paste | +| `Cmd` `A` | Select all | +| `Cmd` `J` | Jump to selection | +| `Cmd` `:` | Show spelling and grammar | +| `Cmd` `;` | Check spelling | +{.shortcuts} ### View Menu -Shortcut | Action ----|--- -`Cmd` `L` | Show transfers -`Cmd` `Opt` `L` | Show transfers window -`Cmd` `1` | View as thumbnails -`Cmd` `2` | View as list -`Cmd` `3` | View as columns -`Cmd` `4` | View as cover flow -`Cmd` `R` | Refresh -`Cmd` `Shift` `B` | Show invisible files -`Cmd` `Shift` `S` | Hide places bar -`Cmd` `Shift` `J` | Show view options -`Cmd` `Ctrl` `F` | Enter full screen -`Cmd` `Opt` `Left` | Focus on local -`Cmd` `Opt` `Right` | Focus on remote -{.shortcuts} +| Shortcut | Action | +| ------------------- | --------------------- | +| `Cmd` `L` | Show transfers | +| `Cmd` `Opt` `L` | Show transfers window | +| `Cmd` `1` | View as thumbnails | +| `Cmd` `2` | View as list | +| `Cmd` `3` | View as columns | +| `Cmd` `4` | View as cover flow | +| `Cmd` `R` | Refresh | +| `Cmd` `Shift` `B` | Show invisible files | +| `Cmd` `Shift` `S` | Hide places bar | +| `Cmd` `Shift` `J` | Show view options | +| `Cmd` `Ctrl` `F` | Enter full screen | +| `Cmd` `Opt` `Left` | Focus on local | +| `Cmd` `Opt` `Right` | Focus on remote | +{.shortcuts} ### Go Menu -Shortcut | Action ----|--- -`Cmd` `[` | Back -`Cmd` `]` | Forward -`Cmd` `Up` | Enclosing folder -`Cmd` `Opt` `G` | Go to folder... -`Cmd` `Opt` `T` | Open in terminal -`Cmd` `Shift` `L` | Link folder navigation -`Cmd` `K` | Connect to last used protocol -{.shortcuts} +| Shortcut | Action | +| ----------------- | ----------------------------- | +| `Cmd` `[` | Back | +| `Cmd` `]` | Forward | +| `Cmd` `Up` | Enclosing folder | +| `Cmd` `Opt` `G` | Go to folder... | +| `Cmd` `Opt` `T` | Open in terminal | +| `Cmd` `Shift` `L` | Link folder navigation | +| `Cmd` `K` | Connect to last used protocol | +{.shortcuts} ### Transfer Menu -Shortcut | Action ----|--- -`Cmd` `Shift` `R` | Transfer selected items -`Cmd` `Opt` `Shift` `R` | Transfer selected items without rules -`Cmd` `.` | Cancel -{.shortcuts} +| Shortcut | Action | +| ----------------------- | ------------------------------------- | +| `Cmd` `Shift` `R` | Transfer selected items | +| `Cmd` `Opt` `Shift` `R` | Transfer selected items without rules | +| `Cmd` `.` | Cancel | +{.shortcuts} ### Servers Menu -Shortcut | Action ----|--- -`Cmd` `Shift` `A` | Add new server -`Cmd` `Shift` `F` | Show quick connect -`Cmd` `Shift` `I` | Edit server -{.shortcuts} +| Shortcut | Action | +| ----------------- | ------------------ | +| `Cmd` `Shift` `A` | Add new server | +| `Cmd` `Shift` `F` | Show quick connect | +| `Cmd` `Shift` `I` | Edit server | +{.shortcuts} ### Window Menu -Shortcut | Action ----|--- -`Cmd` `M` | Minimize -`Cmd` `Opt` `M` | Minimize all -`Ctrl` `Tab` | Select next tab -`Ctrl` `Shift` `Tab` | Select previous tab -`Cmd` `Ctrl` `T` | Transcript -`Cmd` `Opt` `I` | Show inspector +| Shortcut | Action | +| -------------------- | ------------------- | +| `Cmd` `M` | Minimize | +| `Cmd` `Opt` `M` | Minimize all | +| `Ctrl` `Tab` | Select next tab | +| `Ctrl` `Shift` `Tab` | Select previous tab | +| `Cmd` `Ctrl` `T` | Transcript | +| `Cmd` `Opt` `I` | Show inspector | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for the Transmit app](https://library.panic.com/transmit/transmit5/shortcuts/) _(library.panic.com)_ +- [Keyboard shortcuts for the Transmit app](https://library.panic.com/transmit/transmit5/shortcuts/) + _(library.panic.com)_ diff --git a/source/_posts/trello.md b/source/_posts/trello.md index f87cff0..fb7a165 100644 --- a/source/_posts/trello.md +++ b/source/_posts/trello.md @@ -2,69 +2,61 @@ title: Trello date: 2022-11-23 16:23:31.702599 background: bg-[#417eef] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 29 keyboard shortcuts found on Trello + A visual cheat-sheet for the 29 keyboard shortcuts found on Trello --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### General I -Shortcut | Action ----|--- -`Up/Down/Left/Right` | Navigate Cards -`B` | Open Header Boards Menu -`/` | Focus Search Box -`C` | Archive Card -`D` | Due Date -`E` | Quick Edit Mode -`Esc` | Close Menu/Cancel Editing -`Ctrl` `Enter` | Save Text -`Enter` | Open Card -`F` | Open Card Filter Menu -`L` | Label -`;` | Toggle Label Names -`M` | Add/Remove Members -`N` | Insert New Card -`,/./` | Move Card to Adjacent List +| Shortcut | Action | +| -------------------- | -------------------------- | +| `Up/Down/Left/Right` | Navigate Cards | +| `B` | Open Header Boards Menu | +| `/` | Focus Search Box | +| `C` | Archive Card | +| `D` | Due Date | +| `E` | Quick Edit Mode | +| `Esc` | Close Menu/Cancel Editing | +| `Ctrl` `Enter` | Save Text | +| `Enter` | Open Card | +| `F` | Open Card Filter Menu | +| `L` | Label | +| `;` | Toggle Label Names | +| `M` | Add/Remove Members | +| `N` | Insert New Card | +| `,/./` | Move Card to Adjacent List | + {.shortcuts} - - ### General II -Shortcut | Action ----|--- -`Q` | My Cards Filter -`S` | Watch -`Space` | Assign Self -`T` | Edit Title -`V` | Vote -`W` | Toggle Board Menu -`X` | Clear All Filters -`?` | Open Shortcuts Page -`Shift` `2` | Autocomplete Members -`Shift` `3` | Autocomplete Labels -`Shift` `6` | Autocomplete Position -`Ctrl` `C` | Copy Card -`Ctrl` `V` | Paste Card -`Ctrl` `X` | Move Card +| Shortcut | Action | +| ----------- | --------------------- | +| `Q` | My Cards Filter | +| `S` | Watch | +| `Space` | Assign Self | +| `T` | Edit Title | +| `V` | Vote | +| `W` | Toggle Board Menu | +| `X` | Clear All Filters | +| `?` | Open Shortcuts Page | +| `Shift` `2` | Autocomplete Members | +| `Shift` `3` | Autocomplete Labels | +| `Shift` `6` | Autocomplete Position | +| `Ctrl` `C` | Copy Card | +| `Ctrl` `V` | Paste Card | +| `Ctrl` `X` | Move Card | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Trello](https://trello.com/shortcuts) _(trello.com)_ diff --git a/source/_posts/twitter.md b/source/_posts/twitter.md index f0e6ef0..7cbfab0 100644 --- a/source/_posts/twitter.md +++ b/source/_posts/twitter.md @@ -2,72 +2,65 @@ title: Twitter date: 2022-11-23 16:23:31.705009 background: bg-[#4894e2] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 26 keyboard shortcuts found on Twitter + A visual cheat-sheet for the 26 keyboard shortcuts found on Twitter --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Actions -Shortcut | Action ----|--- -`N` | New tweet -`L` | Like tweet -`R` | Reply to tweet -`T` | Retweet -`M` | Direct message -`U` | Mute account -`B` | Block account -`Enter` | Open tweet details -`O` | Expand photos -`/` | Search -`Ctrl` `Enter` | Send tweet -{.shortcuts} +| Shortcut | Action | +| -------------- | ------------------ | +| `N` | New tweet | +| `L` | Like tweet | +| `R` | Reply to tweet | +| `T` | Retweet | +| `M` | Direct message | +| `U` | Mute account | +| `B` | Block account | +| `Enter` | Open tweet details | +| `O` | Expand photos | +| `/` | Search | +| `Ctrl` `Enter` | Send tweet | +{.shortcuts} ### Navigation -Shortcut | Action ----|--- -`?` | Full keyboard menu -`J` | Next tweet -`K` | Previous tweet -`Space` | Page down -`.` | Load new tweets -{.shortcuts} +| Shortcut | Action | +| -------- | ------------------ | +| `?` | Full keyboard menu | +| `J` | Next tweet | +| `K` | Previous tweet | +| `Space` | Page down | +| `.` | Load new tweets | +{.shortcuts} ### Timelines -Shortcut | Action ----|--- -`G` `N` | Home timeline -`G` `O` | Moments -`G` `N` | Notifications tab -`G` `R` | Mentions -`G` `P` | Profile -`G` `L` | Likes tab -`G` `I` | Lists tab -`G` `M` | Direct messages -`G` `S` | Settings and privacy -`G` `U` | Go to someone's profile +| Shortcut | Action | +| -------- | ----------------------- | +| `G` `N` | Home timeline | +| `G` `O` | Moments | +| `G` `N` | Notifications tab | +| `G` `R` | Mentions | +| `G` `P` | Profile | +| `G` `L` | Likes tab | +| `G` `I` | Lists tab | +| `G` `M` | Direct messages | +| `G` `S` | Settings and privacy | +| `G` `U` | Go to someone's profile | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Twitter](https://help.twitter.com/en/using-twitter/how-to-tweet) _(help.twitter.com)_ diff --git a/source/_posts/unity-3d.md b/source/_posts/unity-3d.md index c05daf6..931db9a 100644 --- a/source/_posts/unity-3d.md +++ b/source/_posts/unity-3d.md @@ -2,124 +2,118 @@ title: Unity 3D date: 2022-11-23 16:23:31.692703 background: bg-[#7c7c7c] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 50 keyboard shortcuts found in Unity 3D + A visual cheat-sheet for the 50 keyboard shortcuts found in Unity 3D --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Tools -Shortcut | Action ----|--- -`Q` | Pan -`W` | Move -`E` | Rotate -`R` | Scale -`T` | Rect tool -`Z` | Pivot mode toggle -`X` | Pivot rotation toggle -`V` | Vertex snap -`Ctrl` `(left click)` | Snap -{.shortcuts} +| Shortcut | Action | +| --------------------- | --------------------- | +| `Q` | Pan | +| `W` | Move | +| `E` | Rotate | +| `R` | Scale | +| `T` | Rect tool | +| `Z` | Pivot mode toggle | +| `X` | Pivot rotation toggle | +| `V` | Vertex snap | +| `Ctrl` `(left click)` | Snap | +{.shortcuts} ### GameObject -Shortcut | Action ----|--- -`Ctrl` `Shift` `N` | New empty game object -`Alt` `Shift` `N` | New empty child to selected game object -`Ctrl` `Alt` `F` | Move to view -`Ctrl` `Shift` `F` | Align with view -`Shift` `F` | Locks the scene view camera to the selected GameObject -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------------------------------ | +| `Ctrl` `Shift` `N` | New empty game object | +| `Alt` `Shift` `N` | New empty child to selected game object | +| `Ctrl` `Alt` `F` | Move to view | +| `Ctrl` `Shift` `F` | Align with view | +| `Shift` `F` | Locks the scene view camera to the selected GameObject | +{.shortcuts} ### Window -Shortcut | Action ----|--- -`Ctrl` `1` | Scene -`Ctrl` `2` | Game -`Ctrl` `3` | Inspector -`Ctrl` `4` | Hierarchy -`Ctrl` `5` | Project -`Ctrl` `6` | Animation -`Ctrl` `7` | Profiler -`Ctrl` `9` | Asset store -`Ctrl` `0` | Version control -`Ctrl` `Shift` `C` | Console -{.shortcuts} +| Shortcut | Action | +| ------------------ | --------------- | +| `Ctrl` `1` | Scene | +| `Ctrl` `2` | Game | +| `Ctrl` `3` | Inspector | +| `Ctrl` `4` | Hierarchy | +| `Ctrl` `5` | Project | +| `Ctrl` `6` | Animation | +| `Ctrl` `7` | Profiler | +| `Ctrl` `9` | Asset store | +| `Ctrl` `0` | Version control | +| `Ctrl` `Shift` `C` | Console | +{.shortcuts} ### Edit {.row-span-2} -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo (MacOS) -`Ctrl` `Y` | Redo (Windows) -`Ctrl` `X` | Cut -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `D` | Duplicate -`Shift` `Del` | Delete -`F` | Frame center selection -`Ctrl` `F` | Find -`Ctrl` `A` | Select all -`Ctrl` `P` | Play -`Ctrl` `Shift` `P` | Pause -`Ctrl` `Alt` `P` | Step -{.shortcuts} +| Shortcut | Action | +| ------------------ | ---------------------- | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo (MacOS) | +| `Ctrl` `Y` | Redo (Windows) | +| `Ctrl` `X` | Cut | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `D` | Duplicate | +| `Shift` `Del` | Delete | +| `F` | Frame center selection | +| `Ctrl` `F` | Find | +| `Ctrl` `A` | Select all | +| `Ctrl` `P` | Play | +| `Ctrl` `Shift` `P` | Pause | +| `Ctrl` `Alt` `P` | Step | +{.shortcuts} ### Selection -Shortcut | Action ----|--- -`Ctrl` `Shift` `1-9` | Load selection 1-9 -`Ctrl` `Alt` `1-9` | Save selection 1-9 -{.shortcuts} +| Shortcut | Action | +| -------------------- | ------------------ | +| `Ctrl` `Shift` `1-9` | Load selection 1-9 | +| `Ctrl` `Alt` `1-9` | Save selection 1-9 | +{.shortcuts} ### Assets -Shortcut | Action ----|--- -`Ctrl` `R` | Refresh -{.shortcuts} +| Shortcut | Action | +| ---------- | ------- | +| `Ctrl` `R` | Refresh | +{.shortcuts} ### Animation -Shortcut | Action ----|--- -`Shift` `,` | First keyframe -`Shift` `K` | Key modified -`K` | Key selected -`Shift` `.` | Last keyframe -`.` | Next frame -`Alt` `.` | Next keyframe -`Space` | Play animation -`,` | Previous frame -`Alt` `,` | Previous keyframe +| Shortcut | Action | +| ----------- | ----------------- | +| `Shift` `,` | First keyframe | +| `Shift` `K` | Key modified | +| `K` | Key selected | +| `Shift` `.` | Last keyframe | +| `.` | Next frame | +| `Alt` `.` | Next keyframe | +| `Space` | Play animation | +| `,` | Previous frame | +| `Alt` `,` | Previous keyframe | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Unity 3D](https://docs.unity3d.com/2018.1/Documentation/Manual/UnityHotkeys.html) _(docs.unity3d.com)_ +- [Keyboard shortcuts for Unity 3D](https://docs.unity3d.com/2018.1/Documentation/Manual/UnityHotkeys.html) + _(docs.unity3d.com)_ diff --git a/source/_posts/vivaldi.md b/source/_posts/vivaldi.md index e7066d4..9b9e99b 100644 --- a/source/_posts/vivaldi.md +++ b/source/_posts/vivaldi.md @@ -2,122 +2,115 @@ title: Vivaldi Browser date: 2022-11-23 16:23:31.694597 background: bg-[#d54840] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 69 default keyboard shortcuts found in the Vivaldi browser + A visual cheat-sheet for the 69 default keyboard shortcuts found in the Vivaldi browser --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### Window -Shortcut | Action ----|--- -`Ctrl` `N` | New window -`Ctrl` `Shift` `N` | New private window -`Ctrl` `Shift` `W` | Close window -`Ctrl` `E` | Quick commands -`Ctrl` `,` | Settings -`Ctrl` `Alt` `E` | Extensions -`Ctrl` `H` | History -`Ctrl` `Alt` `B` | Bookmarks -`Ctrl` `Shift` `Delete` | Delete browsing data -`Ctrl` `Q` | Quit Vivaldi -`Ctrl` `Shift` `?` | Help -`Ctrl` `F1` | Keyboard cheat sheet -`Ctrl` `P` | Print -`Ctrl` `U` | View page source -`Ctrl` `Shift` `I` | Developer tools -`Ctrl` `Shift` `J` | Developer tools console -`Ctrl` `Shift` `V` | Paste and go -`Ctrl` `M` | Minimize -{.shortcuts} +| Shortcut | Action | +| ----------------------- | ----------------------- | +| `Ctrl` `N` | New window | +| `Ctrl` `Shift` `N` | New private window | +| `Ctrl` `Shift` `W` | Close window | +| `Ctrl` `E` | Quick commands | +| `Ctrl` `,` | Settings | +| `Ctrl` `Alt` `E` | Extensions | +| `Ctrl` `H` | History | +| `Ctrl` `Alt` `B` | Bookmarks | +| `Ctrl` `Shift` `Delete` | Delete browsing data | +| `Ctrl` `Q` | Quit Vivaldi | +| `Ctrl` `Shift` `?` | Help | +| `Ctrl` `F1` | Keyboard cheat sheet | +| `Ctrl` `P` | Print | +| `Ctrl` `U` | View page source | +| `Ctrl` `Shift` `I` | Developer tools | +| `Ctrl` `Shift` `J` | Developer tools console | +| `Ctrl` `Shift` `V` | Paste and go | +| `Ctrl` `M` | Minimize | +{.shortcuts} ### View -Shortcut | Action ----|--- -`Ctrl` `Shift` `F` | Fullscreen mode -`Ctrl` `Shift` `B` | Bookmarks bar -`Ctrl` `/` | Status bar -`Ctrl` `F10` | Toggle UI -`Ctrl` `+` | Page zoom in -`Ctrl` `-` | Page zoom out -`Ctrl` `0` | Page zoom reset -`Ctrl` `Alt` `P` | Panel -`F7` | Focus panel -`Ctrl` `Alt` `Down` | Open next panel -`Ctrl` `Alt` `Up` | Open previous panel -`Ctrl` `Alt` `B` | Bookmarks panel -`Ctrl` `Alt` `L` | Downloads panel -`Ctrl` `Alt` `N` | Notes panel -`Ctrl` `Alt` `Y` | History panel -{.shortcuts} +| Shortcut | Action | +| ------------------- | ------------------- | +| `Ctrl` `Shift` `F` | Fullscreen mode | +| `Ctrl` `Shift` `B` | Bookmarks bar | +| `Ctrl` `/` | Status bar | +| `Ctrl` `F10` | Toggle UI | +| `Ctrl` `+` | Page zoom in | +| `Ctrl` `-` | Page zoom out | +| `Ctrl` `0` | Page zoom reset | +| `Ctrl` `Alt` `P` | Panel | +| `F7` | Focus panel | +| `Ctrl` `Alt` `Down` | Open next panel | +| `Ctrl` `Alt` `Up` | Open previous panel | +| `Ctrl` `Alt` `B` | Bookmarks panel | +| `Ctrl` `Alt` `L` | Downloads panel | +| `Ctrl` `Alt` `N` | Notes panel | +| `Ctrl` `Alt` `Y` | History panel | +{.shortcuts} ### Tab -Shortcut | Action ----|--- -`Ctrl` `T` | New tab -`Ctrl` `W` | Close tab -`Ctrl` `Shift` `Tab` | Tab cycler back -`Ctrl` `Tab` | Tab cycler forward -`Ctrl` `Shift` `[` | Previous tab (by order) -`Ctrl` `Shift` `]` | Next tab (by order) -`Ctrl` `Shift` `Up` | Move active tab backward -`Ctrl` `Shift` `Down` | Move active tab forward -`Ctrl` `1-8` | Switch to tab 1-8 -`Ctrl` `9` | Switch to the last tab -`Ctrl` `Shift` `T` | Reopen last tab -`Ctrl` `F9` | Tile vertically -`Ctrl` `F8` | Tile horizontally -`Ctrl` `F7` | Tile to grid -`Ctrl` `F6` | Untile tabs -`Ctrl` `Alt` `I` | Load images -{.shortcuts} +| Shortcut | Action | +| --------------------- | ------------------------ | +| `Ctrl` `T` | New tab | +| `Ctrl` `W` | Close tab | +| `Ctrl` `Shift` `Tab` | Tab cycler back | +| `Ctrl` `Tab` | Tab cycler forward | +| `Ctrl` `Shift` `[` | Previous tab (by order) | +| `Ctrl` `Shift` `]` | Next tab (by order) | +| `Ctrl` `Shift` `Up` | Move active tab backward | +| `Ctrl` `Shift` `Down` | Move active tab forward | +| `Ctrl` `1-8` | Switch to tab 1-8 | +| `Ctrl` `9` | Switch to the last tab | +| `Ctrl` `Shift` `T` | Reopen last tab | +| `Ctrl` `F9` | Tile vertically | +| `Ctrl` `F8` | Tile horizontally | +| `Ctrl` `F7` | Tile to grid | +| `Ctrl` `F6` | Untile tabs | +| `Ctrl` `Alt` `I` | Load images | +{.shortcuts} ### Page -Shortcut | Action ----|--- -`Ctrl` `D` | Create bookmark -`Ctrl` `L` | Focus address field -`Ctrl` `R` | Reload page -`Ctrl` `Shift` `R` | Force reload page -`F9` | Focus page -`Ctrl` `K` | Focus search field -`Ctrl` `F` | Find in page -`Ctrl` `G` | Find next in page -`Ctrl` `Shift` `G` | Find previous in page -`Ctrl` `Left` | History back -`Ctrl` `Right` | History forward -`Esc` | Stop loading -`Ctrl` `O` | Open file -`Ctrl` `S` | Save page as -`Ctrl` `Shift` `H` | Home -`Ctrl` `Alt` `C` | Copy selected text to note -`Shift` `Left` | Spatial navigation left -`Shift` `Up` | Spatial navigation up -`Shift` `Right` | Spatial navigation right -`Shift` `Down` | Spatial navigation down +| Shortcut | Action | +| ------------------ | -------------------------- | +| `Ctrl` `D` | Create bookmark | +| `Ctrl` `L` | Focus address field | +| `Ctrl` `R` | Reload page | +| `Ctrl` `Shift` `R` | Force reload page | +| `F9` | Focus page | +| `Ctrl` `K` | Focus search field | +| `Ctrl` `F` | Find in page | +| `Ctrl` `G` | Find next in page | +| `Ctrl` `Shift` `G` | Find previous in page | +| `Ctrl` `Left` | History back | +| `Ctrl` `Right` | History forward | +| `Esc` | Stop loading | +| `Ctrl` `O` | Open file | +| `Ctrl` `S` | Save page as | +| `Ctrl` `Shift` `H` | Home | +| `Ctrl` `Alt` `C` | Copy selected text to note | +| `Shift` `Left` | Spatial navigation left | +| `Shift` `Up` | Spatial navigation up | +| `Shift` `Right` | Spatial navigation right | +| `Shift` `Down` | Spatial navigation down | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for Vivaldi](https://help.vivaldi.com/article/keyboard-shortcuts/) _(help.vivaldi.com)_ diff --git a/source/_posts/vlc.md b/source/_posts/vlc.md index a3bcc04..07a78c1 100644 --- a/source/_posts/vlc.md +++ b/source/_posts/vlc.md @@ -2,132 +2,121 @@ title: VLC Player date: 2022-11-23 16:23:31.696412 background: bg-[#e7792e] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 82 keyboard shortcuts found in VLC Player + A visual cheat-sheet for the 82 keyboard shortcuts found in VLC Player --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General I -Shortcut | Action ----|--- -`F` | Fullscreen -`Esc` | Leave fullscreen -`Space` | Play/Pause -`]` | Pause only -`[` | Play only -`+` | Faster -`-` | Slower -`=` | Normal rate -`N` | Next -`P` | Previous -`S` | Stop -`T` | Position -`Shift` `Left` | Very short backwards jump -`Shift` `Right` | Very short forwards jump -`Alt` `Left` | Short backwards jump -`Alt` `Right` | Short forwards jump -`Ctrl` `Left` | Medium backwards jump -`Ctrl` `Right` | Medium forwards jump -`Ctrl` `Alt` `Left` | Long backwards jump -`Ctrl` `Alt` `Right` | Long forwards jump -`E` | Next frame -`Enter` | Activate -`Up` | Navigate up -`Down` | Navigate down -`Left` | Navigate left -`Right` | Navigate right -`Shift` `M` | Go to the DVD menu -`Shift` `O` | Select previous DVD title +| Shortcut | Action | +| -------------------- | ------------------------- | +| `F` | Fullscreen | +| `Esc` | Leave fullscreen | +| `Space` | Play/Pause | +| `]` | Pause only | +| `[` | Play only | +| `+` | Faster | +| `-` | Slower | +| `=` | Normal rate | +| `N` | Next | +| `P` | Previous | +| `S` | Stop | +| `T` | Position | +| `Shift` `Left` | Very short backwards jump | +| `Shift` `Right` | Very short forwards jump | +| `Alt` `Left` | Short backwards jump | +| `Alt` `Right` | Short forwards jump | +| `Ctrl` `Left` | Medium backwards jump | +| `Ctrl` `Right` | Medium forwards jump | +| `Ctrl` `Alt` `Left` | Long backwards jump | +| `Ctrl` `Alt` `Right` | Long forwards jump | +| `E` | Next frame | +| `Enter` | Activate | +| `Up` | Navigate up | +| `Down` | Navigate down | +| `Left` | Navigate left | +| `Right` | Navigate right | +| `Shift` `M` | Go to the DVD menu | +| `Shift` `O` | Select previous DVD title | + {.shortcuts} - - - ### General II -Shortcut | Action ----|--- -`Shift` `B` | Select next DVD title -`Shift` `P` | Select previous DVD chapter -`Shift` `N` | Select next DVD chapter -`Ctrl` `Q` | Quit -`Ctrl` `Up` | Volume up -`Ctrl` `Down` | Volume down -`M` | Mute -`H` | Subtitle delay up -`G` | Subtitle delay down -`K` | Audio delay up -`J` | Audio delay down -`B` | Cycle audio track -`Shift` `A` | Cycle through audio devices -`V` | Cycle subtitle track -`A` | Cycle source aspect ratio -`C` | Cycle video crop -`O` | Toggle autoscaling -`Alt` `O` | Increase scale factor -`Shift` `Alt` `O` | Decrease scale factor -`D` | Cycle deinterlace modes -`I` | Show interface -`Shift` `I` | Hide interface -`Shift` `S` | Take video snapshot -`Shift` `G` | Go back in browsing history -`Shift` `H` | Go forward in browsing history -`Shift` `R` | Record -`Shift` `D` | Dump -`Z` | Zoom +| Shortcut | Action | +| ----------------- | ------------------------------ | +| `Shift` `B` | Select next DVD title | +| `Shift` `P` | Select previous DVD chapter | +| `Shift` `N` | Select next DVD chapter | +| `Ctrl` `Q` | Quit | +| `Ctrl` `Up` | Volume up | +| `Ctrl` `Down` | Volume down | +| `M` | Mute | +| `H` | Subtitle delay up | +| `G` | Subtitle delay down | +| `K` | Audio delay up | +| `J` | Audio delay down | +| `B` | Cycle audio track | +| `Shift` `A` | Cycle through audio devices | +| `V` | Cycle subtitle track | +| `A` | Cycle source aspect ratio | +| `C` | Cycle video crop | +| `O` | Toggle autoscaling | +| `Alt` `O` | Increase scale factor | +| `Shift` `Alt` `O` | Decrease scale factor | +| `D` | Cycle deinterlace modes | +| `I` | Show interface | +| `Shift` `I` | Hide interface | +| `Shift` `S` | Take video snapshot | +| `Shift` `G` | Go back in browsing history | +| `Shift` `H` | Go forward in browsing history | +| `Shift` `R` | Record | +| `Shift` `D` | Dump | +| `Z` | Zoom | + {.shortcuts} - - - - ### General III -Shortcut | Action ----|--- -`Shift` `Z` | Un-Zoom -`W` | Toggle wallpaper mode -`Alt` `Shift` `M` | Display OSD menu on top -`Alt` `Ctrl` `M` | Do not display OSD menu -`Alt` `Shift` `Right` | Highlight widget on the right -`Alt` `Shift` `Left` | Highlight widget on the left -`Alt` `Shift` `Up` | Highlight widget on top -`Alt` `Shift` `Down` | Highlight widget on bottom -`Alt` `Shift` `Enter` | Select current widget -`Alt` `R` | Crop one pixel from the top -`Alt` `Shift` `R` | Uncrop one pixel from the top -`Alt` `D` | Crop one pixel from the left -`Alt` `Shift` `D` | Uncrop one pixel from the left -`Alt` `C` | Crop one pixel from the bottom -`Alt` `Shift` `C` | Uncrop one pixel from the bottom -`Alt` `F` | Crop one pixel from the right -`Alt` `Shift` `F` | Uncrop one pixel from the right -`R` | Random -`L` | Normal/Repeat/Loop -`Ctrl` `1` | 1:4 Quarter -`Ctrl` `2` | 1:2 Half -`Ctrl` `3` | 1:1 Original -`Ctrl` `4` | 2:1 Double -`3` | Very short jump length (integer) -`Ctrl` `F1-F10` | Set playlist bookmark 1-10 -`F1-F10` | Play playlist bookmark 1-10 +| Shortcut | Action | +| --------------------- | -------------------------------- | +| `Shift` `Z` | Un-Zoom | +| `W` | Toggle wallpaper mode | +| `Alt` `Shift` `M` | Display OSD menu on top | +| `Alt` `Ctrl` `M` | Do not display OSD menu | +| `Alt` `Shift` `Right` | Highlight widget on the right | +| `Alt` `Shift` `Left` | Highlight widget on the left | +| `Alt` `Shift` `Up` | Highlight widget on top | +| `Alt` `Shift` `Down` | Highlight widget on bottom | +| `Alt` `Shift` `Enter` | Select current widget | +| `Alt` `R` | Crop one pixel from the top | +| `Alt` `Shift` `R` | Uncrop one pixel from the top | +| `Alt` `D` | Crop one pixel from the left | +| `Alt` `Shift` `D` | Uncrop one pixel from the left | +| `Alt` `C` | Crop one pixel from the bottom | +| `Alt` `Shift` `C` | Uncrop one pixel from the bottom | +| `Alt` `F` | Crop one pixel from the right | +| `Alt` `Shift` `F` | Uncrop one pixel from the right | +| `R` | Random | +| `L` | Normal/Repeat/Loop | +| `Ctrl` `1` | 1:4 Quarter | +| `Ctrl` `2` | 1:2 Half | +| `Ctrl` `3` | 1:1 Original | +| `Ctrl` `4` | 2:1 Double | +| `3` | Very short jump length (integer) | +| `Ctrl` `F1-F10` | Set playlist bookmark 1-10 | +| `F1-F10` | Play playlist bookmark 1-10 | + {.shortcuts} +## Also see - -Also see --------- - [Keyboard shortcuts for VLC](https://wiki.videolan.org/hotkeys_table/) _(wiki.videolan.org)_ diff --git a/source/_posts/webflow.md b/source/_posts/webflow.md index 3588334..f83956f 100644 --- a/source/_posts/webflow.md +++ b/source/_posts/webflow.md @@ -2,136 +2,130 @@ title: Webflow date: 2022-11-23 16:23:31.703217 background: bg-[#4450ee] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 41 keyboard shortcuts found in Webflow + A visual cheat-sheet for the 41 keyboard shortcuts found in Webflow --- - - -Keyboard Shortcuts ------------------- - - +## Keyboard Shortcuts ### General -Shortcut | Action ----|--- -`Shift` `/` | Show shortcut cheatsheet -`Ctrl` `Shift` `S` | Save as a snapshot -`Esc` | Deselect or abort -`Del` | Delete element -`Shift` `P` | Show publish dialog -`Shift` `E` | Show export code dialog -`Enter` | Edit element -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------ | +| `Shift` `/` | Show shortcut cheatsheet | +| `Ctrl` `Shift` `S` | Save as a snapshot | +| `Esc` | Deselect or abort | +| `Del` | Delete element | +| `Shift` `P` | Show publish dialog | +| `Shift` `E` | Show export code dialog | +| `Enter` | Edit element | +{.shortcuts} ### View -Shortcut | Action ----|--- -`Ctrl` `Shift` `P` | Preview mode -`Ctrl` `Shift` `G` | Guide overlay -`Ctrl` `Shift` `E` | Show element edges -`Ctrl` `Shift` `X` | X-ray mode -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------ | +| `Ctrl` `Shift` `P` | Preview mode | +| `Ctrl` `Shift` `G` | Guide overlay | +| `Ctrl` `Shift` `E` | Show element edges | +| `Ctrl` `Shift` `X` | X-ray mode | +{.shortcuts} ### Left-hand Toolbar -Shortcut | Action ----|--- -`A` | Show add panel -`Z` | Show navigator tab -`P` | Show pages panel -`Shift` `A` | Show symbols panel -`Ctrl` `Shift` `A` | Make selected element a symbol -`J` | Show asset manager -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------------------------------ | +| `A` | Show add panel | +| `Z` | Show navigator tab | +| `P` | Show pages panel | +| `Shift` `A` | Show symbols panel | +| `Ctrl` `Shift` `A` | Make selected element a symbol | +| `J` | Show asset manager | +{.shortcuts} ### Right-hand Tabs -Shortcut | Action ----|--- -`S` | Show style tab -`D` | Show settings tab -`G` | Show style manager tab -`H` | Show interactions tab -{.shortcuts} +| Shortcut | Action | +| -------- | ---------------------- | +| `S` | Show style tab | +| `D` | Show settings tab | +| `G` | Show style manager tab | +| `H` | Show interactions tab | +{.shortcuts} ### Copy/Paste -Shortcut | Action ----|--- -`Ctrl` `C` | Copy -`Ctrl` `X` | Cut -`Ctrl` `V` | Paste -`Alt` `(drag)` | Duplicate -{.shortcuts} +| Shortcut | Action | +| -------------- | --------- | +| `Ctrl` `C` | Copy | +| `Ctrl` `X` | Cut | +| `Ctrl` `V` | Paste | +| `Alt` `(drag)` | Duplicate | +{.shortcuts} ### Undo/Redo -Shortcut | Action ----|--- -`Ctrl` `Z` | Undo -`Ctrl` `Shift` `Z` | Redo -{.shortcuts} +| Shortcut | Action | +| ------------------ | ------ | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Shift` `Z` | Redo | +{.shortcuts} ### Device View -Shortcut | Action ----|--- -`1` | Desktop -`2` | Tablet -`3` | Phone (landscape) -`4` | Phone (portrait) -{.shortcuts} +| Shortcut | Action | +| -------- | ----------------- | +| `1` | Desktop | +| `2` | Tablet | +| `3` | Phone (landscape) | +| `4` | Phone (portrait) | +{.shortcuts} ### Style Panel -Shortcut | Action ----|--- -`Shift` `(drag)` | Margin or padding (on all sides) -`Alt` `(drag)` | Margin or padding (top and bottom, or left and right) -`Ctrl` `Enter` | Add class to selected element -`Ctrl` `Shift` `Enter` | Rename last class on selected element -{.shortcuts} +| Shortcut | Action | +| ---------------------- | ----------------------------------------------------- | +| `Shift` `(drag)` | Margin or padding (on all sides) | +| `Alt` `(drag)` | Margin or padding (top and bottom, or left and right) | +| `Ctrl` `Enter` | Add class to selected element | +| `Ctrl` `Shift` `Enter` | Rename last class on selected element | +{.shortcuts} ### Find -Shortcut | Action ----|--- -`Ctrl` `K` | Quick find -{.shortcuts} +| Shortcut | Action | +| ---------- | ---------- | +| `Ctrl` `K` | Quick find | +{.shortcuts} ### Other -Shortcut | Action ----|--- -`Alt` `(click)` | Expand or collapse panel sections -`Up/Down` | Select parent or child element -`Left/Right` | Select sibling element -`Alt` `Left/Right` | Select next or previous element -`Ctrl` `Shift` `L` | Toggle collaborators on selected element +| Shortcut | Action | +| ------------------ | ---------------------------------------- | +| `Alt` `(click)` | Expand or collapse panel sections | +| `Up/Down` | Select parent or child element | +| `Left/Right` | Select sibling element | +| `Alt` `Left/Right` | Select next or previous element | +| `Ctrl` `Shift` `L` | Toggle collaborators on selected element | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Webflow](https://university.webflow.com/article/keyboard-shortcuts-in-the-webflow-designer) _(university.webflow.com)_ +- [Keyboard shortcuts for Webflow](https://university.webflow.com/article/keyboard-shortcuts-in-the-webflow-designer) + _(university.webflow.com)_ diff --git a/source/_posts/webstorm.md b/source/_posts/webstorm.md index 5226b58..9301e8d 100644 --- a/source/_posts/webstorm.md +++ b/source/_posts/webstorm.md @@ -3,213 +3,205 @@ title: WebStorm date: 2020-12-17 21:51:44 background: bg-gradient-to-r from-emerald-300 to-blue-400 hover:from-emerald-400 hover:to-blue-500 tags: - - jetbrains - - web - - shortcut + - jetbrains + - web + - shortcut categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - This quick reference cheat sheet lists the default keyboard shortcuts for WebStorm running on Windows/Linux or Mac + This quick reference cheat sheet lists the default keyboard shortcuts for WebStorm running on Windows/Linux or Mac --- -Webstorm Windows & Linux Keymap --------- - +## Webstorm Windows & Linux Keymap ### Editing {.row-span-5} -| shortcut | description | -|----|---------| -`Ctrl` `Space`| Basic code completion -`Alt` `Enter`| Show intention actions, quick fixes -`Ctrl` `P`| Parameter info -`Ctrl` `Q`| Quick documentation lookup -`Ctrl` `mouse over`| Brief Info -`Ctrl` `F1`| Error or warning at caret -`Alt` `Insert`| Generate code... -`Ctrl` `Alt` `T`| Surround with... -`Ctrl` `J`| Insert Live template -`Ctrl` `/`| Comment/uncomment with line -`Ctrl` `Shift` `/`| Comment/uncomment with block -`Ctrl` `W`| Select successively increasing code blocks -`Ctrl` `Shift` `W`| Decrease current selection to previous state -`Alt+Q`| Context Info -`Ctrl` `Alt` `L`| Reformat code -`Ctrl` `Alt` `I`| Auto-indent line(s) -`Tab`| Indent selected lines -`Shift` `Tab`| Unindent selected lines -`Ctrl` `Shift` `V`| Paste from recent buffers... -`Ctrl` `D`| Duplicate current line or selected block -`Ctrl` `Y`| Delete line at caret -`Alt` `Shift` `Up`| Move line up -`Alt` `Shift` `Down`| Move line down -`Ctrl` `Shift` `J`| Join lines -`Ctrl` `Enter`| Split lines -`Shift` `Enter`| Start new line -`Ctrl` `Shift` `U`| Toggle case for word at caret or selected block -`Ctrl` `Shift` `]`| Select till code block end -`Ctrl` `Shift` `[`| Select till code block start -`Ctrl` `Delete`| Delete to word end -`Ctrl` `Backspace`| Delete to word start -`Ctrl` `+`| Expand code block -`Ctrl` `-`| Collapse code block -`Ctrl` `Shift` `+`| Expand all -`Ctrl` `Shift` `-`| Collapse all -`Ctrl` `F4`| Close active editor tab -{.shortcuts} +| shortcut | description | +| -------------------- | ----------------------------------------------- | +| `Ctrl` `Space` | Basic code completion | +| `Alt` `Enter` | Show intention actions, quick fixes | +| `Ctrl` `P` | Parameter info | +| `Ctrl` `Q` | Quick documentation lookup | +| `Ctrl` `mouse over` | Brief Info | +| `Ctrl` `F1` | Error or warning at caret | +| `Alt` `Insert` | Generate code... | +| `Ctrl` `Alt` `T` | Surround with... | +| `Ctrl` `J` | Insert Live template | +| `Ctrl` `/` | Comment/uncomment with line | +| `Ctrl` `Shift` `/` | Comment/uncomment with block | +| `Ctrl` `W` | Select successively increasing code blocks | +| `Ctrl` `Shift` `W` | Decrease current selection to previous state | +| `Alt+Q` | Context Info | +| `Ctrl` `Alt` `L` | Reformat code | +| `Ctrl` `Alt` `I` | Auto-indent line(s) | +| `Tab` | Indent selected lines | +| `Shift` `Tab` | Unindent selected lines | +| `Ctrl` `Shift` `V` | Paste from recent buffers... | +| `Ctrl` `D` | Duplicate current line or selected block | +| `Ctrl` `Y` | Delete line at caret | +| `Alt` `Shift` `Up` | Move line up | +| `Alt` `Shift` `Down` | Move line down | +| `Ctrl` `Shift` `J` | Join lines | +| `Ctrl` `Enter` | Split lines | +| `Shift` `Enter` | Start new line | +| `Ctrl` `Shift` `U` | Toggle case for word at caret or selected block | +| `Ctrl` `Shift` `]` | Select till code block end | +| `Ctrl` `Shift` `[` | Select till code block start | +| `Ctrl` `Delete` | Delete to word end | +| `Ctrl` `Backspace` | Delete to word start | +| `Ctrl` `+` | Expand code block | +| `Ctrl` `-` | Collapse code block | +| `Ctrl` `Shift` `+` | Expand all | +| `Ctrl` `Shift` `-` | Collapse all | +| `Ctrl` `F4` | Close active editor tab | +{.shortcuts} ### General -| shortcut | description | -|----|---------| -`Double Shift`|Search everywhere -`Ctrl` `Shift` `A`|Find Action -`Alt` `0...9`|Open corresponding tool window -`Ctrl` `Shift` `F12`|Toggle maximizing editor -`Alt` `Shift` `F`|Add to Favorites -`Alt` `Shift` `I`|Inspect current file -`Ctrl` \`|Quick switch current scheme -`Ctrl` `Alt` `S`|Open Settings dialog -`Ctrl` `Tab`|Switch between tool and tabs +| shortcut | description | +| -------------------- | ------------------------------ | +| `Double Shift` | Search everywhere | +| `Ctrl` `Shift` `A` | Find Action | +| `Alt` `0...9` | Open corresponding tool window | +| `Ctrl` `Shift` `F12` | Toggle maximizing editor | +| `Alt` `Shift` `F` | Add to Favorites | +| `Alt` `Shift` `I` | Inspect current file | +| `Ctrl` \` | Quick switch current scheme | +| `Ctrl` `Alt` `S` | Open Settings dialog | +| `Ctrl` `Tab` | Switch between tool and tabs | + {.shortcuts} - - ### Navigation {.row-span-4} -| shortcut | description | -|----|---------| -`Ctrl` `B` _\|_ `Ctrl + Click`|Go to declaration -`Ctrl` `N`|Go to class -`Ctrl` `Shift` `N`|Go to file -`Ctrl` `Alt` `Shift` `N`|Go to symbol -`Alt` `Right`|Go to next editor tab -`Alt` `Left`|Go to previous editor tab -`F12`|Go back to previous tool window -`Esc`|Go to editor -`Ctrl` `G`|Go to line -`Ctrl` `E`|Recent files popup -`Ctrl` `Alt` `Right`|Navigate forward -`Ctrl` `Alt` `Left`|Navigate back -`Ctrl` `Shift` `Backspace`|Navigate to last edit location -`Alt` `F1`|Select current file or symbol in any view -`Ctrl` `Alt` `B`|Go to implementation(s) -`Ctrl` `Shift` `I`|Open quick definition lookup -`Ctrl` `Shift` `B`|Go to type declaration -`Ctrl` `U`|Go to super-method/super-class -`Alt` `Up`|Go to previous method -`Alt` `Down`|Go to next method -`Ctrl` `]` _/_ `[`|Move to code block end/start -`Cltrl` `Shift` `M`|Move caret to matching brace -`Ctrl` `F12`|File structure popup -`Ctrl` `H`|Type hierarchy -`Ctrl` `Alt` `H`|Call hierarchy -`F2` _/_ `Shift` `F2`|Next/previous highlighted error -`F4` _/_ `Ctrl` `Enter`|Jump to source -`Alt` `Home`|Jump to navigation bar -`F11`|Toggle bookmark -`Ctrl` `Shift` `F11`|Toggle bookmark with mnemonic -`Ctrl` `0...9`|Go to numbered bookmark -`Shift` `F11`|Show bookmarks -{.shortcuts} +| shortcut | description | +| ------------------------------ | ----------------------------------------- | +| `Ctrl` `B` _\|_ `Ctrl + Click` | Go to declaration | +| `Ctrl` `N` | Go to class | +| `Ctrl` `Shift` `N` | Go to file | +| `Ctrl` `Alt` `Shift` `N` | Go to symbol | +| `Alt` `Right` | Go to next editor tab | +| `Alt` `Left` | Go to previous editor tab | +| `F12` | Go back to previous tool window | +| `Esc` | Go to editor | +| `Ctrl` `G` | Go to line | +| `Ctrl` `E` | Recent files popup | +| `Ctrl` `Alt` `Right` | Navigate forward | +| `Ctrl` `Alt` `Left` | Navigate back | +| `Ctrl` `Shift` `Backspace` | Navigate to last edit location | +| `Alt` `F1` | Select current file or symbol in any view | +| `Ctrl` `Alt` `B` | Go to implementation(s) | +| `Ctrl` `Shift` `I` | Open quick definition lookup | +| `Ctrl` `Shift` `B` | Go to type declaration | +| `Ctrl` `U` | Go to super-method/super-class | +| `Alt` `Up` | Go to previous method | +| `Alt` `Down` | Go to next method | +| `Ctrl` `]` _/_ `[` | Move to code block end/start | +| `Cltrl` `Shift` `M` | Move caret to matching brace | +| `Ctrl` `F12` | File structure popup | +| `Ctrl` `H` | Type hierarchy | +| `Ctrl` `Alt` `H` | Call hierarchy | +| `F2` _/_ `Shift` `F2` | Next/previous highlighted error | +| `F4` _/_ `Ctrl` `Enter` | Jump to source | +| `Alt` `Home` | Jump to navigation bar | +| `F11` | Toggle bookmark | +| `Ctrl` `Shift` `F11` | Toggle bookmark with mnemonic | +| `Ctrl` `0...9` | Go to numbered bookmark | +| `Shift` `F11` | Show bookmarks | +{.shortcuts} ### Multiple carets and selections -| shortcut | description | -|----|---------| -`Alt` `Click`| Add or remove caret -`Shift` `Ctrl + Alt-J`| Select all occurrences -`Alt` `J`| Select next occurrence -`Alt` `Shift` `J`| Unselect occurrence -`Esc`| Unselect all occurrences or carets -{.shortcuts} +| shortcut | description | +| ---------------------- | ---------------------------------- | +| `Alt` `Click` | Add or remove caret | +| `Shift` `Ctrl + Alt-J` | Select all occurrences | +| `Alt` `J` | Select next occurrence | +| `Alt` `Shift` `J` | Unselect occurrence | +| `Esc` | Unselect all occurrences or carets | +{.shortcuts} ### Debugging -| shortcut | description | -|----|---------| -`F8`| Step over -`F7`| Step into -`Shift` `F7`| Smart step into -`Shift` `F8`| Step out -`Alt` `F9`| Run to cursor -`Alt` `F8`| Evaluate expression -`F9`| Resume program -`Ctrl` `F8`| Toggle breakpoint -`Ctrl` `Shift` `F8`| View breakpoints -{.shortcuts} +| shortcut | description | +| ------------------- | ------------------- | +| `F8` | Step over | +| `F7` | Step into | +| `Shift` `F7` | Smart step into | +| `Shift` `F8` | Step out | +| `Alt` `F9` | Run to cursor | +| `Alt` `F8` | Evaluate expression | +| `F9` | Resume program | +| `Ctrl` `F8` | Toggle breakpoint | +| `Ctrl` `Shift` `F8` | View breakpoints | +{.shortcuts} ### Running -| shortcut | description | -|----|---------| -`Alt` `Shift` `F10`| Select configuration and run -`Alt` `Shift` `F9`| Select configuration and debug -`Shift` `F10`| Run -`Shift` `F9`| Debug -`Ctrl` `Shift` `F10`| Run context configuration from editor -`Alt` `Shift` `R`| Rerun tests -`Alt` `F11`| Run Gulp/Grunt/npm tasks +| shortcut | description | +| -------------------- | ------------------------------------- | +| `Alt` `Shift` `F10` | Select configuration and run | +| `Alt` `Shift` `F9` | Select configuration and debug | +| `Shift` `F10` | Run | +| `Shift` `F9` | Debug | +| `Ctrl` `Shift` `F10` | Run context configuration from editor | +| `Alt` `Shift` `R` | Rerun tests | +| `Alt` `F11` | Run Gulp/Grunt/npm tasks | + {.shortcuts} - - - ### Usage Search -| shortcut | description | -|----|---------| -`Alt` `F7`| Find usages -`Ctrl` `F7`| Find usages in file -`Ctrl` `Shift` `F7`| Highlight usages in file -`Ctrl` `Alt` `F7`| Show usages -{.shortcuts} +| shortcut | description | +| ------------------- | ------------------------ | +| `Alt` `F7` | Find usages | +| `Ctrl` `F7` | Find usages in file | +| `Ctrl` `Shift` `F7` | Highlight usages in file | +| `Ctrl` `Alt` `F7` | Show usages | +{.shortcuts} ### VCS/Local History -| shortcut | description | -|----|---------| -`Alt` \`|VCS quick popup -`Ctrl` `K`|Commit project to VCS -`Ctrl` `T`|Update project from VCS -`Alt` `Shift` `C`|View recent changes +| shortcut | description | +| ------------------- | ----------------------- | +| `Alt` \` | VCS quick popup | +| `Ctrl` `K` | Commit project to VCS | +| `Ctrl` `T` | Update project from VCS | +| `Alt` `Shift` `C` | View recent changes | + {.shortcuts} - - - ### Search/Replace -| shortcut | description | -|----|---------| -`Ctrl` `F`| Find -`F3`| Find next -`Shift` `F3`| Find previous -`Ctrl` `Shift` `F`| Find in path -`Ctrl` `R`| Replace -`Ctrl` `Shift` `R`| Replace in path +| shortcut | description | +| ------------------ | --------------- | +| `Ctrl` `F` | Find | +| `F3` | Find next | +| `Shift` `F3` | Find previous | +| `Ctrl` `Shift` `F` | Find in path | +| `Ctrl` `R` | Replace | +| `Ctrl` `Shift` `R` | Replace in path | + {.shortcuts} - - ### Refactoring -| shortcut | description | -|----|---------| -`Ctrl` `Alt` `Shift +T`| Refactor this -`F5` _/_ `F6`| Copy / Move -`Alt` `Delete`| Safe Delete -`Shift` `F6`| Rename -`Ctrl` `F6`| Change function signature -`Ctrl` `Alt` `N`| Inline Variable -`Ctrl` `Alt` `M`| Extract Method -`Ctrl` `Alt` `V`| Extract Variable -`Ctrl` `Alt` `C`| Extract Constant -`Ctrl` `Alt` `P`| Extract Parameter -{.shortcuts} +| shortcut | description | +| ----------------------- | ------------------------- | +| `Ctrl` `Alt` `Shift +T` | Refactor this | +| `F5` _/_ `F6` | Copy / Move | +| `Alt` `Delete` | Safe Delete | +| `Shift` `F6` | Rename | +| `Ctrl` `F6` | Change function signature | +| `Ctrl` `Alt` `N` | Inline Variable | +| `Ctrl` `Alt` `M` | Extract Method | +| `Ctrl` `Alt` `V` | Extract Variable | +| `Ctrl` `Alt` `C` | Extract Constant | +| `Ctrl` `Alt` `P` | Extract Parameter | +{.shortcuts} diff --git a/source/_posts/wordpress.md b/source/_posts/wordpress.md index 1b82acd..86eb810 100644 --- a/source/_posts/wordpress.md +++ b/source/_posts/wordpress.md @@ -2,72 +2,66 @@ title: WordPress date: 2022-11-23 16:23:31.697854 background: bg-[#434140] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 34 keyboard shortcuts found in the WordPress visual editor + A visual cheat-sheet for the 34 keyboard shortcuts found in the WordPress visual editor --- - - -Keyboard Shortcuts {.cols-2} ------------------- - +## Keyboard Shortcuts {.cols-2} ### Editor I -Shortcut | Action ----|--- -`Ctrl` `C` | Copy -`Ctrl` `V` | Paste -`Ctrl` `A` | Select all -`Ctrl` `X` | Cut -`Ctrl` `Z` | Undo -`Ctrl` `Y` | Redo -`Ctrl` `B` | Bold -`Ctrl` `I` | Italic -`Ctrl` `U` | Underline -`Ctrl` `K` | Insert or edit a link -`Alt` `Shift` `N` | Check spelling, this requires a plugin -`Alt` `Shift` `L` | Align text left -`Alt` `Shift` `J` | Justify text -`Alt` `Shift` `C` | Align text center -`Alt` `Shift` `D` | Strikethrough -`Alt` `Shift` `R` | Align text right -`Alt` `Shift` `U` | Unordered list -{.shortcuts} +| Shortcut | Action | +| ----------------- | -------------------------------------- | +| `Ctrl` `C` | Copy | +| `Ctrl` `V` | Paste | +| `Ctrl` `A` | Select all | +| `Ctrl` `X` | Cut | +| `Ctrl` `Z` | Undo | +| `Ctrl` `Y` | Redo | +| `Ctrl` `B` | Bold | +| `Ctrl` `I` | Italic | +| `Ctrl` `U` | Underline | +| `Ctrl` `K` | Insert or edit a link | +| `Alt` `Shift` `N` | Check spelling, this requires a plugin | +| `Alt` `Shift` `L` | Align text left | +| `Alt` `Shift` `J` | Justify text | +| `Alt` `Shift` `C` | Align text center | +| `Alt` `Shift` `D` | Strikethrough | +| `Alt` `Shift` `R` | Align text right | +| `Alt` `Shift` `U` | Unordered list | +{.shortcuts} ### Editor II -Shortcut | Action ----|--- -`Alt` `Shift` `A` | Insert a link -`Alt` `Shift` `O` | Ordered list -`Alt` `Shift` `S` | Remove a link -`Alt` `Shift` `Q` | Quote -`Alt` `Shift` `M` | Insert an image -`Alt` `Shift` `W` | Distraction free writing mode -`Alt` `Shift` `T` | Insert a more tag -`Alt` `Shift` `P` | Insert a page break tag -`Alt` `Shift` `H` | Help -`Alt` `Shift` `X` | Add or remove a code tag -`Alt` `Shift` `1` | Heading one -`Alt` `Shift` `2` | Heading two -`Alt` `Shift` `3` | Heading three -`Alt` `Shift` `4` | Heading four -`Alt` `Shift` `5` | Heading five -`Alt` `Shift` `6` | Heading six -`Alt` `Shift` `9` | Insert an address +| Shortcut | Action | +| ----------------- | ----------------------------- | +| `Alt` `Shift` `A` | Insert a link | +| `Alt` `Shift` `O` | Ordered list | +| `Alt` `Shift` `S` | Remove a link | +| `Alt` `Shift` `Q` | Quote | +| `Alt` `Shift` `M` | Insert an image | +| `Alt` `Shift` `W` | Distraction free writing mode | +| `Alt` `Shift` `T` | Insert a more tag | +| `Alt` `Shift` `P` | Insert a page break tag | +| `Alt` `Shift` `H` | Help | +| `Alt` `Shift` `X` | Add or remove a code tag | +| `Alt` `Shift` `1` | Heading one | +| `Alt` `Shift` `2` | Heading two | +| `Alt` `Shift` `3` | Heading three | +| `Alt` `Shift` `4` | Heading four | +| `Alt` `Shift` `5` | Heading five | +| `Alt` `Shift` `6` | Heading six | +| `Alt` `Shift` `9` | Insert an address | + {.shortcuts} +## Also see - - -Also see --------- - [Keyboard shortcuts for WordPress](https://wordpress.org/support/article/keyboard-shortcuts/) _(wordpress.org)_ diff --git a/source/_posts/youtube.md b/source/_posts/youtube.md index a0e19bb..6ff2c37 100644 --- a/source/_posts/youtube.md +++ b/source/_posts/youtube.md @@ -2,60 +2,52 @@ title: YouTube date: 2022-11-23 16:23:31.700304 background: bg-[#e6332e] -label: -tags: - - - - +label: +tags: + - + - categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 18 keyboard shortcuts found on YouTube.com + A visual cheat-sheet for the 18 keyboard shortcuts found on YouTube.com --- - - -Keyboard Shortcuts {.cols-2} ------------------- - - +## Keyboard Shortcuts {.cols-2} ### General I -Shortcut | Action ----|--- -`Space` | Play/Pause when the seek bar is selected, activate a button if a button has focus -`K` | Play/Pause in player -`Left/Right` | Seek backward/forward 5 seconds -`J` | Seek backward 10 seconds in player -`L` | Seek forward 10 seconds in player -`Home` | Seek to the beginning of the video -`End` | Seek to the last seconds of the video -`Up` | Increase volume 5% -`Down` | Decrease volume 5% -`1-9` | Seek to the 10-90% of the video +| Shortcut | Action | +| ------------ | --------------------------------------------------------------------------------- | +| `Space` | Play/Pause when the seek bar is selected, activate a button if a button has focus | +| `K` | Play/Pause in player | +| `Left/Right` | Seek backward/forward 5 seconds | +| `J` | Seek backward 10 seconds in player | +| `L` | Seek forward 10 seconds in player | +| `Home` | Seek to the beginning of the video | +| `End` | Seek to the last seconds of the video | +| `Up` | Increase volume 5% | +| `Down` | Decrease volume 5% | +| `1-9` | Seek to the 10-90% of the video | + {.shortcuts} - - - ### General II -Shortcut | Action ----|--- -`0` | Seek to the beginning of the video -`Shift` `1` | Move between H1 headers -`/` | Go to search box -`F` | Activate full screen, press again (or Esc) to exit -`C` | Activate closed captions and subtitles, press again to hide -`Shift` `N` | Move to the next video -`Shift` `P` | Move to the previous video -`I` | Launch the Miniplayer -`.` | Move forward a single frame (while paused) -`,` | Move back a single frame (while paused) +| Shortcut | Action | +| ----------- | ----------------------------------------------------------- | +| `0` | Seek to the beginning of the video | +| `Shift` `1` | Move between H1 headers | +| `/` | Go to search box | +| `F` | Activate full screen, press again (or Esc) to exit | +| `C` | Activate closed captions and subtitles, press again to hide | +| `Shift` `N` | Move to the next video | +| `Shift` `P` | Move to the previous video | +| `I` | Launch the Miniplayer | +| `.` | Move forward a single frame (while paused) | +| `,` | Move back a single frame (while paused) | + {.shortcuts} +## Also see - -Also see --------- - [Keyboard shortcuts for YouTube](https://support.google.com/youtube/answer/7631406?hl=en) _(support.google.com)_ diff --git a/source/_posts/zoom.md b/source/_posts/zoom.md index 045ee5f..b9bd627 100644 --- a/source/_posts/zoom.md +++ b/source/_posts/zoom.md @@ -1,150 +1,133 @@ --- -title: Zoom +title: Zoom date: 2022-11-23 16:23:31.704621 background: bg-[#2858ee] -tags: - - - - mac +tags: + - + - mac categories: - - Keyboard Shortcuts + - Keyboard Shortcuts intro: | - A visual cheat-sheet for the 32 keyboard shortcuts found in Zoom. These shortcuts are for MacOS, for Windows visit /zoom-windows. + A visual cheat-sheet for the 32 keyboard shortcuts found in Zoom. These shortcuts are for MacOS, for Windows visit /zoom-windows. --- - - -Mac Keyboard Shortcuts {.cols-2} ------------------- - - +## Mac Keyboard Shortcuts {.cols-2} ### Meetings I -Shortcut | Action ----|--- -`Cmd` `J` | Join meeting -`Cmd` `Ctrl` `V` | Start meeting -`Cmd` `J` | Schedule meeting -`Cmd` `Ctrl` `S` | Screen share via direct share -`Cmd` `Shift` `A` | Mute or unmute audio -`Cmd` `Ctrl` `U` | Mute audio for everyone except the host, only available to the host -`Space` | Push to talk -`Cmd` `Shift` `V` | Start or stop video -`Cmd` `Shift` `N` | Switch camera -`Cmd` `Shift` `S` | Start or stop screen share -`Cmd` `Shift` `T` | Pause or resume screen share -`Cmd` `Shift` `R` | Start local recording -`Cmd` `Shift` `C` | Start cloud recording +| Shortcut | Action | +| ----------------- | ------------------------------------------------------------------- | +| `Cmd` `J` | Join meeting | +| `Cmd` `Ctrl` `V` | Start meeting | +| `Cmd` `J` | Schedule meeting | +| `Cmd` `Ctrl` `S` | Screen share via direct share | +| `Cmd` `Shift` `A` | Mute or unmute audio | +| `Cmd` `Ctrl` `U` | Mute audio for everyone except the host, only available to the host | +| `Space` | Push to talk | +| `Cmd` `Shift` `V` | Start or stop video | +| `Cmd` `Shift` `N` | Switch camera | +| `Cmd` `Shift` `S` | Start or stop screen share | +| `Cmd` `Shift` `T` | Pause or resume screen share | +| `Cmd` `Shift` `R` | Start local recording | +| `Cmd` `Shift` `C` | Start cloud recording | + {.shortcuts} - - - ### Meetings II -Shortcut | Action ----|--- -`Cmd` `Shift` `P` | Pause or resume recording -`Cmd` `Shift` `W` | Switch to active speaker view or gallery view, depending on current view -`Ctrl` `P` | View previous 25 participants in gallery view -`Ctrl` `N` | View next 25 participants in gallery view -`Cmd` `U` | Display or hide participants panel -`Cmd` `Shift` `H` | Show or hide in-meeting chat panel -`Cmd` `I` | Open invite window -`Opt` `Y` | Raise hand or lower hand -`Ctrl` `Shift` `R` | Gain remote control -`Ctrl` `Shift` `G` | Stop remote control -`Cmd` `Shift` `F` | Enter or exit full screen -`Cmd` `Shift` `M` | Switch to minimal window -`Ctrl` `Opt` `Cmd` `H` | Show or hide meeting controls -`Cmd` `W` | Prompt to end or leave meeting -{.shortcuts} +| Shortcut | Action | +| ---------------------- | ------------------------------------------------------------------------ | +| `Cmd` `Shift` `P` | Pause or resume recording | +| `Cmd` `Shift` `W` | Switch to active speaker view or gallery view, depending on current view | +| `Ctrl` `P` | View previous 25 participants in gallery view | +| `Ctrl` `N` | View next 25 participants in gallery view | +| `Cmd` `U` | Display or hide participants panel | +| `Cmd` `Shift` `H` | Show or hide in-meeting chat panel | +| `Cmd` `I` | Open invite window | +| `Opt` `Y` | Raise hand or lower hand | +| `Ctrl` `Shift` `R` | Gain remote control | +| `Ctrl` `Shift` `G` | Stop remote control | +| `Cmd` `Shift` `F` | Enter or exit full screen | +| `Cmd` `Shift` `M` | Switch to minimal window | +| `Ctrl` `Opt` `Cmd` `H` | Show or hide meeting controls | +| `Cmd` `W` | Prompt to end or leave meeting | +{.shortcuts} ### Chat Shortcuts -Shortcut | Action ----|--- -`Cmd` `K` | Jump to chat with someone -`Cmd` `T` | Screenshot -{.shortcuts} +| Shortcut | Action | +| --------- | ------------------------- | +| `Cmd` `K` | Jump to chat with someone | +| `Cmd` `T` | Screenshot | +{.shortcuts} ### General Shortcuts -Shortcut | Action ----|--- -`Cmd` `W` | Close the current window -`Cmd` `L` | Switch to portrait or landscape view, depending on current view -`Ctrl` `T` | Switch from one tab to the next +| Shortcut | Action | +| ---------- | --------------------------------------------------------------- | +| `Cmd` `W` | Close the current window | +| `Cmd` `L` | Switch to portrait or landscape view, depending on current view | +| `Ctrl` `T` | Switch from one tab to the next | + {.shortcuts} - - - - - -Windows Keyboard Shortcuts {.cols-2} ------------------- - - +## Windows Keyboard Shortcuts {.cols-2} ### All Shortcuts II -Shortcut | Action ----|--- -`F6` | Navigate among Zoom popup windows -`Ctrl` `Alt` `Shift` | Move focus to Zoom's meeting controls -`PgUp` | View previous 25 video stream in gallery view -`PgDn` | View next 25 video stream in gallery view -`Alt` `F1` | Switch to active speaker view in video meeting -`Alt` `F2` | Switch to gallery video view in video meeting -`Alt` `F4` | Close the current window -`Alt` `V` | Start or stop video -`Alt` `A` | Mute or unmute audio -`Alt` `M` | Mute or unmute audio for everyone except host, available to the meeting host only -`Alt` `S` | Launch share screen window and stop screen share -`Alt` `Shift` `S` | Start or stop new screen share -`Alt` `T` | Pause or resume screen share -`Alt` `R` | Start or stop local recording -`Alt` `C` | Start or stop cloud recording -`Alt` `P` | Pause or resume recording -`Alt` `N` | Switch camera -`Alt` `F` | Enter or exit full screen +| Shortcut | Action | +| -------------------- | --------------------------------------------------------------------------------- | +| `F6` | Navigate among Zoom popup windows | +| `Ctrl` `Alt` `Shift` | Move focus to Zoom's meeting controls | +| `PgUp` | View previous 25 video stream in gallery view | +| `PgDn` | View next 25 video stream in gallery view | +| `Alt` `F1` | Switch to active speaker view in video meeting | +| `Alt` `F2` | Switch to gallery video view in video meeting | +| `Alt` `F4` | Close the current window | +| `Alt` `V` | Start or stop video | +| `Alt` `A` | Mute or unmute audio | +| `Alt` `M` | Mute or unmute audio for everyone except host, available to the meeting host only | +| `Alt` `S` | Launch share screen window and stop screen share | +| `Alt` `Shift` `S` | Start or stop new screen share | +| `Alt` `T` | Pause or resume screen share | +| `Alt` `R` | Start or stop local recording | +| `Alt` `C` | Start or stop cloud recording | +| `Alt` `P` | Pause or resume recording | +| `Alt` `N` | Switch camera | +| `Alt` `F` | Enter or exit full screen | + {.shortcuts} - - - - ### All Shortcuts II -Shortcut | Action ----|--- -`Alt` `F` | Enter or exit full screen -`Alt` `H` | Display or hide in-meeting chat panel -`Alt` `U` | Display or hide participants panel -`Alt` `I` | Open invite window -`Alt` `Y` | Raise or lower hand -`Alt` `Shift` `R` | Gain remote control -`Alt` `Shift` `G` | Stop remote control -`Ctrl` `2` | Read active speaker name -`Ctrl` `Alt` `Shift` `H` | Show or hide floating meeting controls -`Alt` `Shift` `T` | Screenshot -`Alt` `L` | Switch to portrait or landscape view -`Ctrl` `W` | Close current chat session -`Ctrl` `Up` | Go to previous chat -`Ctrl` `Down` | Go to next chat -`Ctrl` `T` | Jump to chat with someone -`Ctrl` `F` | Search -`Ctrl` `Tab` | Move to the next tab -`Ctrl` `Shift` `Tab` | Move to the previous tab +| Shortcut | Action | +| ------------------------ | -------------------------------------- | +| `Alt` `F` | Enter or exit full screen | +| `Alt` `H` | Display or hide in-meeting chat panel | +| `Alt` `U` | Display or hide participants panel | +| `Alt` `I` | Open invite window | +| `Alt` `Y` | Raise or lower hand | +| `Alt` `Shift` `R` | Gain remote control | +| `Alt` `Shift` `G` | Stop remote control | +| `Ctrl` `2` | Read active speaker name | +| `Ctrl` `Alt` `Shift` `H` | Show or hide floating meeting controls | +| `Alt` `Shift` `T` | Screenshot | +| `Alt` `L` | Switch to portrait or landscape view | +| `Ctrl` `W` | Close current chat session | +| `Ctrl` `Up` | Go to previous chat | +| `Ctrl` `Down` | Go to next chat | +| `Ctrl` `T` | Jump to chat with someone | +| `Ctrl` `F` | Search | +| `Ctrl` `Tab` | Move to the next tab | +| `Ctrl` `Shift` `Tab` | Move to the previous tab | + {.shortcuts} +## Also see - - -Also see --------- -- [Keyboard shortcuts for Zoom on MacOS](https://support.zoom.us/hc/en-us/articles/205683899-Hot-Keys-and-Keyboard-Shortcuts-for-Zoom) _(support.zoom.us)_ -- [Keyboard shortcuts for Zoom on Windows](https://support.zoom.us/hc/en-us/articles/205683899-Hot-Keys-and-Keyboard-Shortcuts-for-Zoom) _(support.zoom.us)_ +- [Keyboard shortcuts for Zoom on MacOS](https://support.zoom.us/hc/en-us/articles/205683899-Hot-Keys-and-Keyboard-Shortcuts-for-Zoom) + _(support.zoom.us)_ +- [Keyboard shortcuts for Zoom on Windows](https://support.zoom.us/hc/en-us/articles/205683899-Hot-Keys-and-Keyboard-Shortcuts-for-Zoom) + _(support.zoom.us)_