Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

programs.ranger.enable

Whether to enable ranger file manager.

Type: boolean

Default:

false

Example:

true

Declared by:

programs.ranger.package

The ranger package to use.

Type: null or package

Default:

pkgs.ranger

Declared by:

programs.ranger.aliases

Aliases written to $XDG_CONFIG_HOME/ranger/rc.conf.

Type: attribute set of string

Default:

{ }

Example:

{
  e = "edit";
  filter = "scout -prts";
  setl = "setlocal";
}

Declared by:

programs.ranger.extraConfig

Extra configuration lines to add to $XDG_CONFIG_HOME/ranger/rc.conf.

Type: strings concatenated with ā€œ\nā€

Default:

""

Declared by:

programs.ranger.extraPackages

Extra packages added to ranger.

Type: list of package

Default:

[ ]

Declared by:

programs.ranger.mappings

Mappings written to $XDG_CONFIG_HOME/ranger/rc.conf.

Type: attribute set of string

Default:

{ }

Example:

{
  Q = "quitall";
  q = "quit";
}

Declared by:

programs.ranger.plugins

List of files to be added to $XDG_CONFIG_HOME/ranger/plugins/.

Type: list of (submodule)

Default:

[ ]

Example:

[
  {
    name = "zoxide";
    src = builtins.fetchGit {
      url = "https://github.com/jchook/ranger-zoxide.git";
      rev = "363df97af34c96ea873c5b13b035413f56b12ead";
    };
  }
]

Declared by:

programs.ranger.plugins.*.name

Name of the plugin linked to $XDG_CONFIG_HOME/ranger/plugins/. In the case of a single-file plugin, it must also have .py suffix.

Type: string

Declared by:

programs.ranger.plugins.*.src

The plugin file or directory.

Type: absolute path

Declared by:

programs.ranger.rifle

Settings written to $XDG_CONFIG_HOME/ranger/rifle.conf.

Type: list of (submodule)

Default:

[ ]

Declared by:

programs.ranger.rifle.*.command

A command to run for the matching file.

Type: string

Example:

"${pkgs.vim}/bin/vim -- \"$@\""

Declared by:

programs.ranger.rifle.*.condition

A condition to match a file.

Type: string

Example:

"mime ^text, label editor"

Declared by:

programs.ranger.settings

Settings written to $XDG_CONFIG_HOME/ranger/rc.conf.

Type: attribute set of (boolean or floating point number or signed integer or string)

Default:

{ }

Example:

{
  column_ratios = "1,3,3";
  confirm_on_delete = "never";
  scroll_offset = 8;
  unicode_ellipsis = true;
}

Declared by: