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 854
  • Mac 461
  • Linux 262
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 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 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
Windows 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 1 0 0 0 0 0 0 0 0
Mac 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 0 0 0
Linux 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 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