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

File​List

by shagabutdinov ALL

API for manipualting lists of files

Details

Installs

  • Total 8K
  • Win 5K
  • Mac 2K
  • Linux 2K
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 Jun 12 Jun 11
Windows 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 1 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 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 2 0 0 0 1 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime FileList plugin

Library for displaying list of files.

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.