Hacker News new | ask | show | jobs
by Comkid 2112 days ago
As an extensive ranger user, some of the features which lead to me not even running a graphical file manager:

> Using ranger to change directories (see: https://github.com/ranger/ranger/wiki/Integration-with-other...)

> Launch ranger using a keybinding from my shell (`bind` or `~/.inputrc` for bash, `bindkey` for zsh), which when combined with the previous technique allows me to very quickly switch folders (also combined with bookmarks) and get my bearings

> `:filter` to filter the items in the current folder (supports regex and has a live preview which updates as you type, can get laggy in large folders)

> `:flat` to flatten directory structures (-1 for infinite depth)

> `m<key>` to bookmark something, which you can jump to with `'<key>` (apostrophe)

> `om` to sort by last modification time, `os` to sort by size

> `dc` to recursively find the size of a directory (can be slow)

> `C-n` to create new tabs and `gt`/`gT` to switch back and forth between tabs which can be useful for copying/moving files

1 comments

I also use `:bulkrename` a lot. It just opens a list of filenames in vim for modification, which makes it extremely simple to use regexes, macros, visual block modifications to rename a batch of files to your liking.

As well as `~` to switch from tabs to split-panes.

I'm just missing jumping to a file/folder by typing a few letters, as I have yet to get started with plugins like someone suggested me ( https://news.ycombinator.com/item?id=23507694 ).

Edit: someone wrote about `f` below, that looks like a very good answer.

Ah, and a little too eager to produce image previews for huge svg or png files (~20M), while leaving the background process when I change files. That can suck up huge amounts of RAM.