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

File​List

by shagabutdinov ST2/ST3

API for manipualting lists of files

Details

Installs

  • Total 4K
  • Win 2K
  • OS X 859
  • Linux 734
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 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1
Windows 0 0 2 10 3 4 3 1 3 1 2 4 3 7 5 3 3 2 3 3 7 5 1 2 2 1 2 7 4 2 3 6 5 5 8 0 2 3 3 4 5 1 2 1 1 4
OS X 3 2 1 0 2 1 1 1 0 1 0 1 3 0 1 1 0 1 3 0 0 4 0 0 2 2 1 2 2 0 2 3 2 0 2 0 1 0 2 4 3 0 3 0 0 1
Linux 1 0 4 0 0 1 0 0 1 0 2 0 1 0 1 0 0 0 3 1 0 0 1 0 3 0 2 3 2 0 0 1 1 0 2 1 0 0 0 1 0 0 2 0 1 0

Readme

Source
raw.​githubusercontent.​com

Sublime FileList plugin

Library for displaying list of files.

Demo

Demo

WARNING

This plugin provides “rename file” functionality. If you enter rename mode you should type new file name and hit “tab” (not “enter”) for complete renaming.

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.

Commands

All commands will works when file list is visible.

Description Keyboard shortcut
Open file or folder ctrl+o
Preview file ctrl+p
Delete file ctrl+d
Rename file ctrl+r
Complete file rename tab
Insert short file name to view alt+p
Insert relative file name to view alt+shift+p
Insert file name to view alt+ctrl+p
Insert absolute file name to view alt+ctrl+shift+p

Dependencies

API

FileList class methods:

init(callback, open = None, preview = None, text = None, open_if_one_file = True, callers = [], on_create = None)

Create file list.

Arguments:

  • callback - callback function that provides list of files; callback should receive no arguments;

  • open - open callback; if no open callback provided default open callback will be used

  • preview - preview callback; if no preview callback provided default preview callback will be used

  • text - initial text in panel

  • open_if_one_file - bool; if only one file found should be it opened right away or displayed in list

  • callers - callers stack; refer to sublime-quick-search-enhanced for information

  • on_create - callback that will be executed after panel will be created showed

show()

Show created panel.

refresh()

Refresh file list

preview_file(panel)

Preview file from QuickSearch panel and return opened view.

Arguments:

  • panel - QuickSearch panel.

Result:

A sublime view object that was created to show the file.