m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/ranger.md
blob: 30a630846bfba8e93c324ec4cb381df237cea391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Ranger tricks

[Official User Guide](https://github.com/ranger/ranger/wiki/Official-User-Guide)


## Bulkrename

    :bulkrename

Opens the selected filenames in vim for editing.

## Bookmarks

Like in vim

* `m<X>` - create bookmark X
* `` `<X> `` - jump to bookmark X

## Tabs

* `gn` - create new
* `gT`, `gt` - switch
* `gc` - close
* `uq` - restore tab
* `M-<n>` - go to nth tab (create new if not exists)
* `~` - multi-tab view

## Tags

Files can have a single arbitrary tag, persistent between restarts.

* `t` toggles/sets `*` tag
* `"<key>` toggles/sets `<key>` tag

## Selection

* `<space>` - toggle select on single file
* `v` - invert selection
* `uv` - deselect all
    * Or `:unmark`
    * Can also use `:unmark <regex>`