mv <移動先>
で、選択したファイルを<移動先>に移動する。
補完は、cd コマンドのを流用。
commands.py
class mv(Command):
"""
:mv <DEST>
"""
def execute(self):
from ranger.ext.shell_escape import shell_quote
self.fm.execute_console('shell mv %s ' + shell_quote(self.rest(1)))
from ranger.config import commands
tab = commands.cd.tab