FileList
API for manipualting lists of files
Details
Installs
- Total 8K
- Win 5K
- Mac 2K
- Linux 2K
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 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 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 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 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 usedpreview
- preview callback; if no preview callback provided default preview callback will be usedtext
- initial text in panelopen_if_one_file
- bool; if only one file found should be it opened right away or displayed in listcallers
- callers stack; refer to sublime-quick-search-enhanced for informationon_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.