Sublime Forum

Recent Documents not stored in the default OS X location

#1

I appears that Sublime Text is not storing its list of recent documents in the default OS X location.

I am using Alfred as my application launcher; it allows me to access any application’s recent documents list, but the list is always empty for Sublime Text. Whereas for other applications their list of recent documents shows up in Alfred correctly, as it does in the applications themselves.

Cheers,
Diego

0 Likes

#2

Oh god yes please add this. You’d need to populate ~/Library/Preferences/com.sublimetext.2.LSSharedFileList.plist with the list of recent files. Doing so would enable apps like Alfred and LaunchBar to access recent items, which was the only way I opened files in TextMate, and would also allow OS X’s Exposé feature to show recent files when you invoke single-app Exposé mode.

0 Likes

#3

wonder if we could create package for this. I have done something similar for ubuntu

github.com/jfromaniello/sublime-unity-recents

but I don’t know how the create a plist from python… What I did was to issue a command

plutil -p ~/Library/Preferences/com.microsoft.rdc.LSSharedFileList.plist

and this print something like this:

{ "RecentDocuments" => { "Controller" => "CustomListItems" "MaxAmount" => 10 "CustomListItems" => 0 => { "Bookmark" => <626f6f6b 8c030000 00000410 30000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 94020000 05000000 01010000 55736572 73000000 06000000 01010000 6a66726f 6d610000 09000000 01010000 446f6375 6d656e74 73000000 0f000000 01010000 52444320 436f6e6e 65637469 6f6e7300 11000000 01010000 636c6f75 64736861 72652d61 642e7264 70000000 14000000 01060000 04000000 14000000 24000000 38000000 50000000 08000000 04030000 fab80300 00000000 08000000 04030000 fcb80300 00000000 08000000 04030000 07b90300 00000000 08000000 04030000 51f60900 00000000 08000000 04030000 9e841900 00000000 14000000 01060000 88000000 98000000 a8000000 b8000000 c8000000 08000000 00040000 41b7158d de000000 18000000 01020000 01000000 00000000 0f000000 00000000 00000000 00000000 04000000 03030000 03000000 04000000 03030000 f5010000 03000000 01010000 4f535800 08000000 04030000 00403224 3a000000 08000000 00040000 4112314d 92000000 24000000 01010000 36344443 36354439 2d333932 332d3332 46352d42 3943442d 39314632 36363443 30434432 18000000 01020000 81000000 01000800 ef3f0000 01000800 00000000 00000000 01000000 01010000 2f000000 00000000 01050000 c1000000 01020000 65663234 61633435 34386261 66663562 65316233 35653362 62383238 30333338 37613863 34386165 3b303030 30303030 303b3030 30303030 30303030 30303030 32303b63 6f6d2e61 70706c65 2e617070 2d73616e 646fff78 2e726561 642d7772 6974653b 30303030 30303031 3b303130 30303030 323b3030 30303030 30303030 31393834 39653b2f 75736572 732f6a66 726f6d61 2f646f63 756d656e 74732f72 64632063 6f6e6e65 6374696f 6e732f63 6c6f7564 73686172 652d6164 2e726470 00000000 c0000000 feffffff 01000000 00000000 0f000000 04100000 6c000000 00000000 05100000 d8000000 00000000 10100000 04010000 00000000 40100000 f4000000 00000000 02200000 b4010000 00000000 10200000 3c010000 00000000 11200000 68010000 00000000 12200000 48010000 00000000 13200000 58010000 00000000 20200000 94010000 00000000 30200000 c0010000 00000000 01c00000 24010000 00000000 11c00000 14000000 00000000 12c00000 30010000 00000000 80f00000 c8010000 00000000> "Name" => "rrr-ad.rdp" "Icon" => <496d6752 000000ea 00000000 4642494c 000000de 00000002 00000000 00000000 00ce0003 00000000 cca6c692 0000482b 00000000 000988bf 00099135 0000c99c e4000000 00000920 fffe0000 00000000 0000ffff ffff0001 00100009 88bf0009 886e0009 886d0004 14ee000e 0018000b 00520044 00430064 006f0063 002e0069 0063006e 0073000f 00080003 004f0053 00580012 00494170 706c6963 6174696f 6e732f52 656d6f74 65204465 736b746f 7020436f 6e6e6563 74696f6e 2e617070 2f436f6e 74656e74 732f5265 736f7572 6365732f 52444364 6f632e69 636e7300 00130001 2f00ffff 0000> } ] } }

As far I can see plutil can also convert from json to plist.

I assume the Icon is the hex of the image but I don’t know what bookmark means, by sure that thing should contain the full path to the file or something like that.

0 Likes