2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mv コマンド

Posted at
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
2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?