Skip to content

Instantly share code, notes, and snippets.

@heroheman
Last active October 25, 2025 04:55
Show Gist options
  • Save heroheman/aba73e47443340c35526755ef79647eb to your computer and use it in GitHub Desktop.
Save heroheman/aba73e47443340c35526755ef79647eb to your computer and use it in GitHub Desktop.

Revisions

  1. heroheman revised this gist May 20, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -76,7 +76,7 @@ Shortcut | Description
    ---|---
    `m + <letter>` | Create Marker
    `um + <letter>` | Delete Marker
    `' + <letter>` | Delete Marker
    `' + <letter>` | Go to Marker
    `t` | tag a file with an *
    `t"<any>` | tag a file with your desired mark

  2. heroheman revised this gist Mar 5, 2021. 1 changed file with 9 additions and 2 deletions.
    11 changes: 9 additions & 2 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@ Shortcut | Description
    `R` | Reload current directory
    `?` | Ranger Manpages / Shortcuts


    ## Movement
    Shortcut | Description
    ---|---
    @@ -21,6 +22,7 @@ Shortcut | Description
    `K` | half page up
    `H` | History Back
    `L` | History Forward
    `~` | Switch the view

    ## File Operations
    Shortcut | Description
    @@ -47,6 +49,7 @@ Shortcut | Description
    `!` | Execute Shell Command
    `chmod` | Change file Permissions
    `du` | Disk Usage Current Directory
    `S` | Run the terminal in your current ranger window (exit to go back to ranger)

    ## Tabs
    Shortcut | Description
    @@ -65,15 +68,19 @@ Shortcut | Description
    `%s` | Substitute currently selected files
    `%t` | Substitute currently tagged files

    ### Example for substitution
    `:bulkrename %s`

    ## Marker
    Shortcut | Description
    ---|---
    `m + <letter>` | Create Marker
    `um + <letter>` | Delete Marker
    `' + <letter>` | Delete Marker
    `t` | tag a file with an *
    `t"<any>` | tag a file with your desired mark

    _thx to the comments section for additional shortcuts! post your suggestions there!_

    ### Example for substitution
    `:bulkrename %s`


  3. heroheman revised this gist Jun 24, 2020. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -65,6 +65,14 @@ Shortcut | Description
    `%s` | Substitute currently selected files
    `%t` | Substitute currently tagged files

    ## Marker
    Shortcut | Description
    ---|---
    `m + <letter>` | Create Marker
    `um + <letter>` | Delete Marker
    `' + <letter>` | Delete Marker


    ### Example for substitution
    `:bulkrename %s`

  4. heroheman revised this gist Feb 26, 2020. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -32,10 +32,13 @@ Shortcut | Description
    `zh` | view hidden files
    `cw` | rename current file
    `yy` | yank / copy
    `dd` | cut
    `pp` | paste
    `/` | search for files `:search`
    `n` | next match
    `N` | prev match
    `<delete>` | Delete


    ## Commands
    Shortcut | Description
  5. heroheman revised this gist Dec 12, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -34,7 +34,7 @@ Shortcut | Description
    `yy` | yank / copy
    `/` | search for files `:search`
    `n` | next match
    `N``| prev match
    `N` | prev match
    `<delete>` | Delete

    ## Commands
  6. heroheman revised this gist Mar 8, 2018. No changes.
  7. heroheman revised this gist Feb 9, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -55,6 +55,7 @@ shift + tab | Previous tab
    alt + [n] | goto / create [n] tab

    ## File substituting
    Shortcut | Description
    ---|---
    `%f` | Substitute highlighted file
    `%d` | Substitute current directory
  8. heroheman revised this gist Feb 9, 2018. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -54,3 +54,14 @@ tab | Next tab
    shift + tab | Previous tab
    alt + [n] | goto / create [n] tab

    ## File substituting
    ---|---
    `%f` | Substitute highlighted file
    `%d` | Substitute current directory
    `%s` | Substitute currently selected files
    `%t` | Substitute currently tagged files

    ### Example for substitution
    `:bulkrename %s`


  9. heroheman revised this gist Feb 9, 2018. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -51,6 +51,6 @@ Shortcut | Description
    `C-n` | Create new tab
    `C-w` | Close current tab
    tab | Next tab
    shift + tab> | Previous tab
    shift + tab | Previous tab
    alt + [n] | goto / create [n] tab

  10. heroheman revised this gist Feb 9, 2018. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -50,7 +50,7 @@ Shortcut | Description
    ---|---
    `C-n` | Create new tab
    `C-w` | Close current tab
    <tab> | Next tab
    <shift> <tab> | Previous tab
    <alt> [n] | goto / create [n] tab
    tab | Next tab
    shift + tab> | Previous tab
    alt + [n] | goto / create [n] tab

  11. heroheman revised this gist Feb 9, 2018. 1 changed file with 33 additions and 33 deletions.
    66 changes: 33 additions & 33 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -3,54 +3,54 @@
    ## General
    Shortcut | Description
    ---|---
    ranger | Start Ranger
    Q | Quit Ranger
    R | Reload current directory
    ? | Ranger Manpages / Shortcuts
    `ranger` | Start Ranger
    `Q` | Quit Ranger
    `R` | Reload current directory
    `?` | Ranger Manpages / Shortcuts

    ## Movement
    Shortcut | Description
    ---|---
    k | up
    j | down
    h | parent directory
    l | subdirectory
    gg | go to top of list
    G | go t bottom of list
    J | half page down
    K | half page up
    H | History Back
    L | History Forward
    `k` | up
    `j` | down
    `h` | parent directory
    `l`| subdirectory
    `gg` | go to top of list
    `G` | go t bottom of list
    `J` | half page down
    `K` | half page up
    `H` | History Back
    `L` | History Forward

    ## File Operations
    Shortcut | Description
    ---|---
    <Enter> | Open
    r | open file with
    z | toggle settings
    o | change sort order
    zh | view hidden files
    cw | rename current file
    yy | yank / copy
    / | search for files `:search`
    n | next match
    N | prev match
    <delete> | Delete
    `<Enter>` | Open
    `r` | open file with
    `z` | toggle settings
    `o` | change sort order
    `zh` | view hidden files
    `cw` | rename current file
    `yy` | yank / copy
    `/` | search for files `:search`
    `n` | next match
    `N``| prev match
    `<delete>` | Delete

    ## Commands
    Shortcut | Description
    ---|---
    : | Execute Range Command
    ! | Execute Shell Command
    chmod | Change file Permissions
    du | Disk Usage Current Directory
    `:` | Execute Range Command
    `!` | Execute Shell Command
    `chmod` | Change file Permissions
    `du` | Disk Usage Current Directory

    ## Tabs
    Shortcut | Description
    ---|---
    <ctrl>n | Create new tab
    <ctrl>w | Close current tab
    `C-n` | Create new tab
    `C-w` | Close current tab
    <tab> | Next tab
    <shift><tab> | Previous tab
    <alt>[n] | goto / create [n] tab
    <shift> <tab> | Previous tab
    <alt> [n] | goto / create [n] tab

  12. heroheman revised this gist Feb 9, 2018. 1 changed file with 12 additions and 2 deletions.
    14 changes: 12 additions & 2 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@ K | half page up
    H | History Back
    L | History Forward

    # File Operations
    ## File Operations
    Shortcut | Description
    ---|---
    <Enter> | Open
    @@ -37,10 +37,20 @@ n | next match
    N | prev match
    <delete> | Delete

    # Commands
    ## Commands
    Shortcut | Description
    ---|---
    : | Execute Range Command
    ! | Execute Shell Command
    chmod | Change file Permissions
    du | Disk Usage Current Directory

    ## Tabs
    Shortcut | Description
    ---|---
    <ctrl>n | Create new tab
    <ctrl>w | Close current tab
    <tab> | Next tab
    <shift><tab> | Previous tab
    <alt>[n] | goto / create [n] tab

  13. heroheman revised this gist Feb 9, 2018. 1 changed file with 43 additions and 4 deletions.
    47 changes: 43 additions & 4 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,46 @@
    # Ranger Cheatsheet

    ## General
    Shortcut | Description
    ----------|----------
    k | up
    j | down
    h | left
    ---|---
    ranger | Start Ranger
    Q | Quit Ranger
    R | Reload current directory
    ? | Ranger Manpages / Shortcuts

    ## Movement
    Shortcut | Description
    ---|---
    k | up
    j | down
    h | parent directory
    l | subdirectory
    gg | go to top of list
    G | go t bottom of list
    J | half page down
    K | half page up
    H | History Back
    L | History Forward

    # File Operations
    Shortcut | Description
    ---|---
    <Enter> | Open
    r | open file with
    z | toggle settings
    o | change sort order
    zh | view hidden files
    cw | rename current file
    yy | yank / copy
    / | search for files `:search`
    n | next match
    N | prev match
    <delete> | Delete

    # Commands
    Shortcut | Description
    ---|---
    : | Execute Range Command
    ! | Execute Shell Command
    chmod | Change file Permissions
    du | Disk Usage Current Directory
  14. heroheman revised this gist Feb 9, 2018. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Ranger Cheatsheet
    *
    | Column 1 | Column 2 |
    |----------|----------|
    | foo | bar |
    | baz | qux |
    | quux | quuz |

    Shortcut | Description
    ----------|----------
    k | up
    j | down
    h | left
  15. heroheman created this gist Feb 9, 2018.
    7 changes: 7 additions & 0 deletions ranger-cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # Ranger Cheatsheet
    *
    | Column 1 | Column 2 |
    |----------|----------|
    | foo | bar |
    | baz | qux |
    | quux | quuz |