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

File History

Provides access to the history of recently accessed files - project-wise or globally

Details

Installs

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

Readme

Source
raw.​githubusercontent.​com

SublimeText - File History

Sublime Text 2 and 3 plugin to provide access to the history of accessed files - project-wise or globally. The most recently closed file can be instantly re-opened with a keyboard shortcut or the user can search through the entire file history within the quick panel (including file preview and the ability to open multiple files).

Example Image

Features

Keeps a history of the files that you have accessed in SublimeText (on both a per-project and global level). The most recently closed file can be instantly re-opened with a keyboard shortcut or the user can search through the entire file history in the quick panel.

Overview of features:

  • FileHistory.sublime-settings file to customize functionality
  • When re-opening a file from the history, choose the position to open it in: the first tab, the last tab, the next tab or in the position that it was when it was closed
  • Display a preview of the file while looking through the file history in the quick panel (only Sublime Text 3)
  • Choose target location where the file history should be saved
  • Optionally remove any non-existent files while looking through the file history (when previewed or opened) or on start-up
  • Open multiple history entries from the quick panel with the Right key
  • Delete history entries from the quick panel with Ctrl+Del
  • Path exclude and re-include patterns (regex) that can be extended in project settings

Installation

Install Package Control. Once installed, bring up the Command Palette (Command-Shift-P on OS X, Ctrl-Shift-P on Linux/Windows). Select Package Control: Install Package and then select File History when the list appears. Package Control will automagically keep the plugin up to date with the latest version.

Usage

To use the plugin, open the Command Palette and search for File History:.

When you opened a panel you can use the right key to open the file and keep the panel open, or Ctrl/Cmd + delete to remove the selected file from the history.

For default keymap definitions, see Default.sublime-keymap (OSX).

For the available and default settings, see FileHistory.sublime-settings.

Images

The popup for the current project only example1

The popup for the global history with text example1

Project Settings

You can extend the path_exclude_patterns and path_reinclude_patterns lists in your project settings.

For this, add a "file_history" dictionary to your project's settings and then one or both of the settings to that. Example:

{
    "folders": [
        {
            "path": "."
        }
    ],
    "settings": {
        "file_history": {
            "path_exclude_patterns": ["/bin/"],
            "path_reinclude_patterns": ["\\.compiled$"]
        }
    }
}

Commands

open_recently_closed_file (Window)

Opens a popup with recently closed files or reopens the lastly closed view if show_quick_panel == False.

Parameters

  • show_quick_panel (bool) - Default: True

  • current_project_only (bool) - Default: True

cleanup_file_history (Window)

Checks the current project or the whole history for non-existent files and removes them from the history kept.

Parameters

  • current_project_only (bool) - Default: True

reset_file_history (Window)

Removes all file history data.