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

Clone​File

by shagabutdinov ALL

Duplicate view and clone file in list

Details

Installs

  • Total 2K
  • Win 848
  • Mac 457
  • Linux 262
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0
Mac 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 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

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