Giter VIP home page Giter VIP logo

ranger-rclone's Introduction

ranger-rclone

Ranger Plugin to easily copy or move files to a remote location with rclone.

At the moment it’s only supported to copy/move files from ranger to a remote, not the other way around.

Usage

:rclone <command> <rclone-target> <dir>

Available <commands> are:

copy
https://rclone.org/commands/rclone_copy/
copyto
https://rclone.org/commands/rclone_copyto/
move
https://rclone.org/commands/rclone_move/
moveto
https://rclone.org/commands/rclone_moveto/

<rclone-target> can be either a destination as you would provide to rclone copy directly or the key of a bookmarked destination.

<dir> is an optional argument that is appended to <rclone-target> after bookmark resolution. This is useful to specify a subdirectory of a bookmark as destination.

Tab completion for <command> and <rclone-target> (from bookmarks) is implemented.

A note on rclone sync

rclone sync is not by default available through this plugin. I made this choice mostly because sync riskier to use without the possiblity of dry-running it than copy and move are, especially on bookmarked locations where you don’t see the actual path.

If you really want to use sync through this interface, you can add sync to the available commands by adding it to the command_list variable in the definition of the rclone command. Autocomplete will work.

I might add some form of support for sync at some point.

Bookmarks

Bookmarked destinations are a pair of a key and a destination.

add a bookmark
:add_rclone_target <key> <target>
remove a bookmark
:remove_rclone_target <key>
change target to existing key
:change_rclone_target <key> <new-target>

The bookmarked targets are stored in a file in the ranger config directory that is automatically created when a bookmark is added for the first time.

Dependencies

Installation

cd ~/.config/ranger/plugins
git clone https://github.com/einsiedlerspiel/ranger-rclone.git

ranger-rclone's People

Contributors

einsiedlerspiel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.