Skip to content

Instantly share code, notes, and snippets.

@mbigras
Last active January 16, 2025 05:58
Show Gist options
  • Save mbigras/99d9b634cd6b3126d5ed23d77f2c4f6b to your computer and use it in GitHub Desktop.
Save mbigras/99d9b634cd6b3126d5ed23d77f2c4f6b to your computer and use it in GitHub Desktop.
Sublime Text settings
// Note: Put this file at the "$HOME/Library/Application Support/Sublime Text/Packages/User/Default (OSX).sublime-keymap" path.
[
{
"keys": ["super+."],
"command": "edit_settings",
"args": {
"base_file": "${packages}/Default/Default ($platform).sublime-keymap",
"default": "[\n\t$0\n]\n"
}
},
{
"keys": ["super+shift+k"],
"command": "resize_window",
"args": {
"width": 634,
"height": 482,
}
},
]
// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by syntax-specific settings.
{
"draw_unicode_white_space": "none",
"enable_tab_scrolling": false,
"folder_exclude_patterns": ["venv"],
"font_size": 12,
"hide_new_tab_button": true,
"ignored_packages": ["Vintage"],
"mini_diff": false,
"save_on_focus_lost": true,
"scroll_past_end": true,
"show_errors_inline": false,
"show_git_status": false,
"tab_size": 8,
"word_wrap": "true",
}
@mbigras
Copy link
Author

mbigras commented Jan 16, 2025

https://forum.sublimetext.com/t/disable-minimap-preference/57770/4

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sublime
import sublime_plugin

class MinimapSetting(sublime_plugin.EventListener):
	def on_activated(self, view):
		show_minimap = view.settings().get("show_minimap")
		if show_minimap:
			view.window().set_minimap_visible(True)
		elif show_minimap is not None:
			view.window().set_minimap_visible(False)

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