about summary refs log blame commit diff stats
path: root/cpp/.traces/break_nested_degenerate
blob: 5dbbdacbb255d9a72311384d63228b4f9b0a9624 (plain) (tree)
:mark <regexp> Mark all files matching a regular expression. :unmark <regexp> Unmark all files matching a regular expression. :mkdir <dirname> Creates a directory with the name <dirname> :open_with [<program>] [<flags>] [<mode>] Open the current file with the program, flags and mode. |24?| |25?| All arguments are optional. If none is given, its equivalent to pressing <Enter> :quit Exits ranger :rename <newname> Changes the name of the currently highlighted file to <newname> :search <regexp> Search for a regexp in all file names, like the / key in vim. :shell [-<flags>] <command> Run the command, optionally with some flags. |25?| Example: shell -d firefox -safe-mode %s opens (detached from ranger) the selection in firefox' safe-mode :terminal Spawns "x-terminal-emulator" starting in the current directory. :touch <filename> Creates a file with the name <filename> ============================================================================== 3.3. Macros Like in similar filemanagers there are some macros. Use them in commands and they will be replaced with a list of files. %f the highlighted file %d the path of the current directory %s the selected files in the current directory. If no files are selected, it defaults to the same as %f %t all tagged files in the current directory %c the full paths of the currently copied/cut files The macros %f, %d and %s also have upper case variants, %F, %D and %S, which refer to the next tab. To refer to specific tabs, add a number in between. Examples: %D The path of the directory in the next tab %7s The selection of the seventh tab %c is the only macro which ranges out of the current directory. So you may "abuse" the copying function for other purposes, like diffing two files which are in different directories: Yank the file A (type yy), move to the file B and use: :shell -p diff %c %f ============================================================================== 3.4. The more complicated Commands in Detail 3.3.1. "find" The find command is different than others: it doesn't require you to press <RETURN>. To speed things up, it tries to guess when you're done typing and executes the command right away. The key "f" opens the console with ":find " 3.3.2. "shell" The shell command accepts flags |25?| as the first argument. This example will use the "p"-flag, which pipes the output to the pager: :shell -p cat somefile.txt There are some shortcuts which open the console with the shell command: "!" opens ":shell " "@" opens ":shell %s" "#" opens ":shell -p " 3.3.3. "open_with" The open_with command is explained in detail in chapter 2.2. |22?| ============================================================================== """ # vim:tw=78:sw=8:sts=8:ts=8:ft=help