summary refs log tree commit diff stats
path: root/doc/examples/plugin_new_macro.py
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2015-02-17 23:29:38 +0100
committerhut <hut@lepus.uberspace.de>2015-02-17 23:42:30 +0100
commit0970723c8f14bb8986d3bd7cce49cd0d7575d32b (patch)
tree759990f3756bda06f14b99a364b0178ed50c6552 /doc/examples/plugin_new_macro.py
parent677c9ae868fcab6f97f964d59c6784398e08377b (diff)
downloadranger-0970723c8f14bb8986d3bd7cce49cd0d7575d32b.tar.gz
core.fm: more sane --copy-config of commands.py
This commit makes ranger only copy a small sample commands.py to
~/.config/ranger/commands.py when running --copy-config=commands.
The default commands.py will be copied to commands_full.py instead, a
file that will not be loaded at all, and will only serve as a reference.
It can be obtained with --copy-config=commands_full

This will avoid that the average user's commands.py will break ranger
whenever she's updating ranger after using --copy-config=all.
It's necessary because commands.py contains much of the actual
program logic, but it can't be kept compatible like other configuration
files, and the user can't be expected to always keep an up-to-date
version of it.

Overview:

Removed --copy-config rule:

--copy-config=commands:  commands.py -> commands.py

New --copy-config rules:

--copy-config=commands:      commands_sample.py -> commands.py
--copy-config=commands_full: commands.py -> commands_full.py
Diffstat (limited to 'doc/examples/plugin_new_macro.py')
0 files changed, 0 insertions, 0 deletions