Skip to content

Instantly share code, notes, and snippets.

@gj1118
Created August 17, 2019 20:33
Show Gist options
  • Save gj1118/0020ce06275236e0932d62f9102df68a to your computer and use it in GitHub Desktop.
Save gj1118/0020ce06275236e0932d62f9102df68a to your computer and use it in GitHub Desktop.
get list of all packages installed in sublime text
import os; [(os.path.dirname(file)[len('Packages/'):], sublime.decode_value(sublime.load_resource(file))['url']) for file in sublime.find_resources('package-metadata.json')]
@gj1118
Copy link
Author

gj1118 commented Aug 17, 2019

  1. Open Sublime -> Console
  2. The input in the script above and press enter

More information here : https://stackoverflow.com/a/44353619/412628

@gj1118
Copy link
Author

gj1118 commented Aug 17, 2019

Will generate a list something like this

[
('BracketHighlighter', 'https://github.com/facelessuser/BracketHighlighter'), 
('Calculate Relative Path', 'https://github.com/TonyHYK/CalculateRelativePath'), 
('Chain of Command', 'https://github.com/jisaacks/ChainOfCommand'), 
('DoxyDoxygen (evolution)', 'http://20tauri.free.fr/DoxyDoxygen/'), 
('ExtendedTabSwitcher', 'https://github.com/rajeshvaya/Sublime-Extended-Tab-Switcher'), 
('FileIcons Mono', 'https://packagecontrol.io/packages/FileIcons'), 
('Git', 'https://github.com/kemayo/sublime-text-git'), 
('GitGutter', 'https://github.com/jisaacks/GitGutter'), 
('GitLink', 'http://ryan.sc'), 
('HyperClick', 'https://github.com/aziz/SublimeHyperClick'), 
('Inspired GitHub Color Scheme', 'https://github.com/sethlopezme/InspiredGitHub.tmtheme'), 
('LSP', 'https://github.com/tomv564/LSP'), 
('LuaAutocomplete', 'https://github.com/ColonelThirtyTwo/LuaAutocomplete'), 
('Markdown Extended', 'https://github.com/jonschlinkert'), 
('MarkdownEditing', 'https://github.com/SublimeText-Markdown/MarkdownEditing'), 
('Origami', 'https://github.com/SublimeText/Origami'), 
('Package Control', 'https://packagecontrol.io'), 
('PackageDev', 'https://github.com/SublimeText/PackageDev'), 
('PackageResourceViewer', 'https://github.com/skuroda/PackageResourceViewer'), 
('Sass', 'https://packagecontrol.io/packages/Sass'), 
('SCSS', 'https://github.com/MarioRicalde/SCSS.tmbundle'), 
('Select Quoted', 'https://github.com/int3h/SublimeSelectQuoted'), 
('SideBarEnhancements', 'https://github.com/titoBouzout/SideBarEnhancements'), 
('Sublime ES7 React Redux ReactNative JS snippets', 'https://github.com/lassegit/sublime-es7-javascript-react-snippets'), 
('Sublimerge 3', 'http://www.sublimerge.com/sm3/'), 
('Text Pastry', 'https://github.com/duydao/Text-Pastry'), 
('Theme - Legacy', 'https://github.com/SublimeText/LegacyTheme'), 
('Theme - Monokai Pro', 'https://www.monokai.pro'), 
('Zen Tabs', 'https://github.com/travmik/ZenTabs'), 
('Anaconda', 'http://damnwidget.github.io/anaconda/'), 
('Babel', 'https://babeljs.io/'), 
('JsPrettier', 'https://github.com/jonlabelle/SublimeJsPrettier'), 
('PlainTasks', 'https://github.com/aziz/PlainTasks'), 
('Quokka', 'http://quokkajs.com'), 
('Terminus', 'https://packagecontrol.io/packages/Terminus')]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment