How to increase number of recent files in Sublime Text 3?

Is it possible to increase the number of recent files that appear in the File -> Open recent menu in Sublime Text 3 (Ubuntu)?

I have already read Increase number of recent projects in Sublime Text 2?

And I can't find this ~/Library folder at my PC. I can find ~/.config/sublime-text-3/Packages but there's no "Default" subfolder inside.


The Default package in Sublime Text 3 on Linux is stored in (assuming you used the .deb installer) /opt/sublime_text/Packages/Default.sublime-package.

Default.sublime-package is a ZIP file, if you open it and extract the Main.sublime-menu file from it into ~/.config/sublime-text-3/Packages/Default/Main.sublime-menu, it can then be edited the same way as the linked answer describes.

Alternatively run following commands which will create the Default directory and extract the Main.sublime-menu file into it:

mkdir ~/.config/sublime-text-3/Packages/Default/
unzip -p /opt/sublime_text/Packages/Default.sublime-package Main.sublime-menu > ~/.config/sublime-text-3/Packages/Default/Main.sublime-menu

Increase Open Recent List - Sublime Forum, Hello, is it possible with addon or tweek to increase the recent open files list? Now supports only 8 entries. thanks in advance. It’s pretty annoying when in Sublime Text 3 > File > Open Recent there’s a limited number of files and folders names recently used. There are 2 ways to changes that. METHOD 1. 1. Go to C:\Users\currentUserName\AppData\Roaming\Sublime Text 3\Packages\Default. 2.


On OSX, at least, the Default.sublime-package is in the application itself: /Applications/Sublime Text.app/Contents/MacOS/Packages/Default.sublime-package.

To edit the config easily without changes being overwritten on update, you need a copy of Main.sublime-menu in your Packages directory ~/Library/Application Support/Sublime Text 3/Packages/Default/Main.sublime-menu

The easiest way to effect these changes is to install the excellent PackageResourceViewer by skuroda (using Package Control), then:

  1. Command+Shift+p
  2. type 'resource' and select 'PackageResourceViewer: Open resource'
  3. you see a list of available packages: select 'Default'
  4. select 'Main.sublime-menu'
  5. PackageResourceViewer now copies Main.sublime-menu into the correct location and opens the new file for editing (note: the file doesn't seem to be actually created in the filesystem until hitting save, and updates seem immediately visible without requiring an update).
  6. As per Rufus_12's answer, alter the number of open_recent_folder and open_recent_file statements that appear, increasing the index each time.

    { "command": "open_recent_folder", "args": {"index": 0 } },
    { "command": "open_recent_folder", "args": {"index": 1 } },
    { "command": "open_recent_folder", "args": {"index": 2 } },
    { "command": "open_recent_folder", "args": {"index": 3 } },
    { "command": "open_recent_folder", "args": {"index": 4 } },
    { "command": "open_recent_folder", "args": {"index": 5 } },
    { "command": "open_recent_folder", "args": {"index": 6 } },
    ...continue as many times as necessary... 
    
Update re: maintainability

As @drevicko points out, this method will not auto-update with Sublime, and may even cause conflicts in future.

@James' answer (editing the Packages/User/Default/Main.sublime-menus) is indeed update-proof, but does, unfortunately, result in a duplicate sub-menu (the duplicate entries appear for me at the very bottom of the menu). The user settings file is merged with the defaults, but in a manner which results in duplicate keys.

I find that if I update Packages/Default/Main.sublime-menus, then that file completely replaces the default (delete chunks and see your menus disappear in real time!) - my new file and the defaults are not merged.

In order to: a) avoid a duplicate entry, and b) stay current with Sublime updates, I can't see an alternative to tracking changes to the file using git, and when Sublime updates, repeating the Open Resource process (overwriting your edits), then reverting only relevant changes.

Increase the recent files list - General Discussion, Increase the number of recent files or folders in Sublime Text 3? August 22, 2016; Web. It's pretty annoying when in Sublime Text 3 > File > Open Recent there's  From here you can extend the number of recent files out to 16 by adding additional lines for open_recent_file with indexes from 8 to 15 (since the indexes are 0 based), and then save the file. As a side note, this will work for both Sublime Text 2 and Sublime Text 3.


Add this Main.sublime-menu to your %APPDATA%\Sublime Text 3\Packages\User folder. You will see an added File Menu child named Open Recent More, giving you the next same-amount of recent files/folders. (If only I could position it in the menu where I want it, though.)

[
    {
        "caption": "File",
        "mnemonic": "F",
        "id": "file",
        "children":
        [
            {
                "caption": "Open Recent More",
                "mnemonic": "R",
                "children":
                [
                    { "command": "open_recent_file", "args": {"index": 8 } },
                    { "command": "open_recent_file", "args": {"index": 9 } },
                    { "command": "open_recent_file", "args": {"index": 10 } },
                    { "command": "open_recent_file", "args": {"index": 11 } },
                    { "command": "open_recent_file", "args": {"index": 12 } },
                    { "command": "open_recent_file", "args": {"index": 13 } },
                    { "command": "open_recent_file", "args": {"index": 14 } },
                    { "command": "open_recent_file", "args": {"index": 15 } },
                    { "command": "open_recent_file", "args": {"index": 16 } },
                    { "caption": "-" },
                    { "command": "open_recent_folder", "args": {"index": 8 } },
                    { "command": "open_recent_folder", "args": {"index": 9 } },
                    { "command": "open_recent_folder", "args": {"index": 10 } },
                    { "command": "open_recent_folder", "args": {"index": 11 } },
                    { "command": "open_recent_folder", "args": {"index": 12 } },
                    { "command": "open_recent_folder", "args": {"index": 13 } },
                    { "command": "open_recent_folder", "args": {"index": 14 } },
                    { "command": "open_recent_folder", "args": {"index": 15 } },
                    { "command": "open_recent_folder", "args": {"index": 16 } },
                    { "caption": "-" }
                ]
            }
        ]
    }
]

Increase the number of recent files or folders in Sublime Text 3?, People using Quicksilver or Launchbar can't open directly recent files/folders I think that is happening because too many files are behing displayed on the open 3. Write a blog post about how sublime text 2 doesn't play well with OS X, and  Sublime text editor: Comment sélectionner toutes les instances de la région sélectionnée? 80 caractères / ligne de marge droite en texte Sublime 3


For those of you who are too lazy to copy and paste then change the numbers, here is 50 of them.

                { "command": "open_recent_file", "args": {"index": 0 } },
                { "command": "open_recent_file", "args": {"index": 1 } },
                { "command": "open_recent_file", "args": {"index": 2 } },
                { "command": "open_recent_file", "args": {"index": 3 } },
                { "command": "open_recent_file", "args": {"index": 4 } },
                { "command": "open_recent_file", "args": {"index": 5 } },
                { "command": "open_recent_file", "args": {"index": 6 } },
                { "command": "open_recent_file", "args": {"index": 7 } },
                { "command": "open_recent_file", "args": {"index": 8 } },
                { "command": "open_recent_file", "args": {"index": 9 } },
                { "command": "open_recent_file", "args": {"index": 10 } },
                { "command": "open_recent_file", "args": {"index": 11 } },
                { "command": "open_recent_file", "args": {"index": 12 } },
                { "command": "open_recent_file", "args": {"index": 13 } },
                { "command": "open_recent_file", "args": {"index": 14 } },
                { "command": "open_recent_file", "args": {"index": 15 } },
                { "command": "open_recent_file", "args": {"index": 16 } },
                { "command": "open_recent_file", "args": {"index": 17 } },
                { "command": "open_recent_file", "args": {"index": 18 } },
                { "command": "open_recent_file", "args": {"index": 19 } },
                { "command": "open_recent_file", "args": {"index": 20 } },
                { "command": "open_recent_file", "args": {"index": 21 } },
                { "command": "open_recent_file", "args": {"index": 22 } },
                { "command": "open_recent_file", "args": {"index": 23 } },
                { "command": "open_recent_file", "args": {"index": 24 } },
                { "command": "open_recent_file", "args": {"index": 25 } },
                { "command": "open_recent_file", "args": {"index": 26 } },
                { "command": "open_recent_file", "args": {"index": 27 } },
                { "command": "open_recent_file", "args": {"index": 28 } },
                { "command": "open_recent_file", "args": {"index": 29 } },
                { "command": "open_recent_file", "args": {"index": 30 } },
                { "command": "open_recent_file", "args": {"index": 31 } },
                { "command": "open_recent_file", "args": {"index": 32 } },
                { "command": "open_recent_file", "args": {"index": 33 } },
                { "command": "open_recent_file", "args": {"index": 34 } },
                { "command": "open_recent_file", "args": {"index": 35 } },
                { "command": "open_recent_file", "args": {"index": 36 } },
                { "command": "open_recent_file", "args": {"index": 37 } },
                { "command": "open_recent_file", "args": {"index": 38 } },
                { "command": "open_recent_file", "args": {"index": 39 } },
                { "command": "open_recent_file", "args": {"index": 40 } },
                { "command": "open_recent_file", "args": {"index": 41 } },
                { "command": "open_recent_file", "args": {"index": 42 } },
                { "command": "open_recent_file", "args": {"index": 43 } },
                { "command": "open_recent_file", "args": {"index": 44 } },
                { "command": "open_recent_file", "args": {"index": 45 } },
                { "command": "open_recent_file", "args": {"index": 46 } },
                { "command": "open_recent_file", "args": {"index": 47 } },
                { "command": "open_recent_file", "args": {"index": 48 } },
                { "command": "open_recent_file", "args": {"index": 49 } },

Improve Open Recent on OS X / General / Sublime Text, ST3 Open Recent - how to Shortcut? keyboard-shortcuts sublime-text-3. How do I make ST3 shortcut for menu command 'File › Open Recent'?  Sublime will take any class that extends one of the sublime_plugin classes (TextCommand, WindowCommand or ApplicationCommand), remove the suffix Command and then convert the CamelCaseinto underscore_notation for the command name.


On Windows 7 or 8 you:

  1. Open the following file in a ZIP/archive utility: C:\Program Files\Sublime Text 3\Packages\Default.sublime-package

  2. Extract only the file Main.sublime-menu into: %APPDATA%\Sublime Text 3\Packages\Default (Create the folder if necessary)

    The folder is otherwise known as: C:\Users\YourUsername\AppData\Roaming\Sublime Text 3\Packages\Default

  3. Open Main.sublime-menu (a JSON file) that you just extracted and alter the number of open_recent_folder and open_recent_file statements that appear, increasing the index each time.

        { "command": "open_recent_folder", "args": {"index": 0 } },
        { "command": "open_recent_folder", "args": {"index": 1 } },
        { "command": "open_recent_folder", "args": {"index": 2 } },
        { "command": "open_recent_folder", "args": {"index": 3 } },
        { "command": "open_recent_folder", "args": {"index": 4 } },
        { "command": "open_recent_folder", "args": {"index": 5 } },
        { "command": "open_recent_folder", "args": {"index": 6 } },
        ...continue as many times as necessary...
    
  4. Hit save and the menu should be instantly updated. :-)

You can even move your recent file/folder list into the root "File" menu for easier access.

ST3 Open Recent - how to Shortcut?, : takes you to a line by typing the line number. # shows you a list of token words (​they can be set up in .tmLanguage files and they usually come  Reopen the most recently closed file or open a quick panel of recently used files to choose from. Display a preview of the file while browsing the quick panel (only Sublime Text 3) Open multiple history entries from the quick panel with the Right key. Delete history entries from the quick panel with Ctrl + Del.


Supercharge your Sublime Text 3 to increase your productivity , SublimeText seems to add files to the "Open Recent" list when they are Or a shutdown event should trigger the "Close" event if "remember_open_files" is set to false. Same issue on Ubuntu 13.10 with Sublime Text 3 build 3059 Eventually, after some number of times being opened, they get on the list. Is it possible to increase the number of recent projects that appear in the Projects -> Recent Projects menu in Sublime Text 2? I have searched through the settings and I haven't found anything.


Files not added to Open Recent list on App Close · Issue #44 , For having super and sub tabs in sublime text 3 for each project you need to change two configs. 1- The first and most recommended config in  Added setting index_workers to control the number of threads used for file indexing. By default the number of threads is based on the number of CPU cores. By setting index_workers to 1 or 2, indexing will be slower, but less intrusive; Fixed a crash when showing the Command Palette with an empty .sublime-build file


Open files Projects/folders in Sublime Text 3 in a new super tab in , increase-the-number-of-recent-files-and-folders-. Sublime Text 3 has Alzheimer: it forgets the number of recent files and folders It's pretty annoying when Sublime Text 3 > File > Open Recent has a limited number of files  Sublime Merge is a full-featured, blazing-fast Git client built upon the technologies from Sublime Text. Since editing source code and prose requires different tools and workflows than managing a Git repository, we opted to integrate the most appropriate Git functionality into Sublime Text, but leave more advanced features in Sublime Merge.