Skip to content

Instantly share code, notes, and snippets.

@DBasic
Last active November 14, 2020 10:45
Show Gist options
  • Save DBasic/cbf6712fa441c09fe9eb to your computer and use it in GitHub Desktop.
Save DBasic/cbf6712fa441c09fe9eb to your computer and use it in GitHub Desktop.
[ST3] Guides, configs, keys
Sublime Text 3
/*=================================================================
= Сделать текстовым редактором по умолчанию =
=================================================================*/
/* LINUX */
First, make sure that /usr/share/applications/sublime_text.desktop exists:
ls /usr/share/applications/sublime_text.desktop
Then, open /usr/share/applications/defaults.list with Sublime:
sudo subl /usr/share/applications/defaults.list
Search for all instances of gedit and replace them with sublime_text. Save the file, log out and back in, and you should be all set.
If for some reason /usr/share/applications/sublime_text.desktop doesn't exist, create it:
sudo touch /usr/share/applications/sublime_text.desktop
Open it in Sublime:
sudo subl /usr/share/applications/sublime_text.desktop
and paste the following into it:
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;
[Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text/sublime_text -n
OnlyShowIn=Unity;
[Desktop Action Document]
Name=New File
Exec=/opt/sublime_text/sublime_text --command new_file
OnlyShowIn=Unity;
However, if you installed Sublime Text using the .deb file downloaded from sublimetext.com, the file should already exist.
/*----- End of Сделать текстовым редактором по умолчанию ------*/
/*=================================
= My Config =
=================================*/
{
"bold_folder_labels": true,
"color_scheme": "Packages/Dayle Rees Color Schemes/sublime/peacock.tmTheme",
"color_scheme": "Packages/User/peacock (SL).tmTheme",
"draw_minimap_border": true,
"highlight_line": true,
"highlight_modified_tabs": true,
"enable_tab_scrolling": false,
"ignored_packages":
[
"Vintage"
],
"itg_sidebar_tree_small": true,
"itg_small_tabs": true,
"line_padding_bottom": 1,
"line_padding_top": 1,
"piatto_folder_icons": true,
"show_encoding": true,
"show_line_endings": true,
"tab_height": 50,
"theme": "Brogrammer.sublime-theme",
"translate_tabs_to_spaces": true,
"indent_to_bracket": true,
"overlay_scroll_bars": "enabled",
"show_full_path": true,
"update_check": false,
"draw_shadows": false,
"enable_tab_scrolling": false,
"bold_folder_labels": true,
"font_size": 9,
"scroll_speed": 0
}
/*----- End of My Config ------*/
Key bindings
[{
"keys": ["f1"],
"command": "toggle_side_bar"
}, {
"keys": ["ctrl+alt+a"],
"command": "find_all_under"
},
{ "keys": ["ctrl+w"], "command": "expand_selection", "args": {"to": "brackets"} },]
/*===============================================================
= Ключи
= с http://www.forum.ru-board.com/
===============================================================*/
Sublime Text 3
----- BEGIN LICENSE -----
Andrew Weber
Single User License
EA7E-855605
813A03DD 5E4AD9E6 6C0EEB94 BC99798F
942194A6 02396E98 E62C9979 4BB979FE
91424C9D A45400BF F6747D88 2FB88078
90F5CC94 1CDC92DC 8457107A F151657B
1D22E383 A997F016 42397640 33F41CFC
E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D
5CDB7036 E56DE1C0 EFCC0840 650CD3A6
B98FC99C 8FAC73EE D2B95564 DF450523
------ END LICENSE ------
Sublimerge
MANH-UNTE-RPCL-0000-0000-MRFE-2VUV-58PD-XMMN-WERW
MANH-UNTE-RPCL-0000-0000-258T-ZBG5-EHNT-4AFR-E9CJ
MANH-UNTE-RPCL-0000-0000-5XUM-M7U1-9M8Q-FMSC-SGCX
SublimeGerrit
MANH-UNTE-RPCL-0000-0000-JS7K-ZYRS-1LUQ-2WCN-XAGF
MANH-UNTE-RPCL-0000-0000-6DH2-YYML-DSFP-ANT9-S8SX
Sublime SFTP
{
"email": "manhunter.pcl@fuck.shareware",
"product_key": "3544D2-D8D428-1915F0-CB794B-912D4F"
}
@dotku
Copy link

dotku commented Nov 14, 2020

That license key has been invalidated, due to being shared.

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