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 953
  • Win 496
  • OS X 301
  • Linux 156
Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1
Windows 0 0 0 0 0 0 0 0 2 3 0 0 1 0 0 0 0 0 1 1 0 1 0 1 1 0 0 0 0 0 0 0 0 2 0 0 0 1 2 0 0 0 0 1 1 1
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 0 0 0 0 0 0
Linux 0 0 0 0 2 0 0 0 1 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 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