ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Clone​File

by shagabutdinov ST2/ST3

Duplicate view and clone file in list

Details

Installs

  • Total 920
  • Win 476
  • OS X 297
  • Linux 147
Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7
Windows 0 0 1 1 0 0 0 0 1 3 0 0 0 0 1 1 1 0 0 1 0 0 0 2 0 2 1 1 3 0 0 1 1 1 0 1 0 0 1 0 2 0 0 0 0 1
OS X 0 0 2 1 0 1 0 1 0 0 1 1 2 0 0 1 0 0 2 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0
Linux 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime CloneFile plugin

Provides “duplicate view” and “clone file/folder in list” functionality.

Demo

Demo

WARNING

It use python “shutil” to clone folders and files so meta-information (e.g. permissions) of files and folder can be lost after copying.

When you are cloning file in list you should hit “tab” (but not “enter”) after entering a new file name. See “Usage” section below for undestanding usecase.

Installation

This plugin is part of sublime-enhanced plugin set. You can install sublime-enhanced and this plugin will be installed automatically.

If you would like to install this package separately check “Installing packages separately” section of sublime-enhanced package.

Usage

Hit keyboard shortcut or run command to clone current view into the new view. It will create new view, copy contents of old view to new one, and set cursors into the new view according to cursors in old one.

If you are browsing file through “FileList” plugin you can copy file here with keyboard shortcut. You need to hit keyboard shortcut for “Clone file in list” (see below) than navigate to preferred folder, type name of file and hit keyboard shortcut for “Complete cloning file in list” (“tab” by default). Note that it'll use “tab” for cloning completion but not “enter” (sublime does not allow “enter” remap in quick search panel). “Enter” will open selecter folder or file.

Commands

Title Keyboard shortcuts Command palette
Clone view ctrl+alt+shift+d CloneFile: Clone
Clone file in list ctrl+alt+c
Complete cloning file in list tab

Dependencies