mirror of
https://github.com/anpleenko/sublime-text.git
synced 2026-11-20 21:22:58 +03:00
CRLF → LF
This commit is contained in:
1 parent
bc997a29af
commit
c9efe880df
5 files changed
+110
-110
No files matched your search
+22
-22
@@ -1,22 +1,22 @@
|
||||
/Cache
|
||||
/Index
|
||||
/Local
|
||||
/Distrib
|
||||
/Backup
|
||||
/Trash
|
||||
/Lib
|
||||
|
||||
bh_unicode_properties.cache
|
||||
Package Control.last-run
|
||||
Package Control.ca-list
|
||||
Package Control.ca-bundle
|
||||
Package Control.system-ca-bundle
|
||||
Package Control.cache/
|
||||
Package Control.ca-certs/
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
|
||||
/Installed Packages/*
|
||||
!Package Control.sublime-package
|
||||
|
||||
/Packages/
|
||||
/Cache
|
||||
/Index
|
||||
/Local
|
||||
/Distrib
|
||||
/Backup
|
||||
/Trash
|
||||
/Lib
|
||||
|
||||
bh_unicode_properties.cache
|
||||
Package Control.last-run
|
||||
Package Control.ca-list
|
||||
Package Control.ca-bundle
|
||||
Package Control.system-ca-bundle
|
||||
Package Control.cache/
|
||||
Package Control.ca-certs/
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
|
||||
/Installed Packages/*
|
||||
!Package Control.sublime-package
|
||||
|
||||
/Packages/
|
||||
@@ -1,22 +1,22 @@
|
||||
import sublime, sublime_plugin
|
||||
|
||||
class ToggleColorSchemeCommand(sublime_plugin.TextCommand):
|
||||
def run(self, edit, **args):
|
||||
s = sublime.load_settings("Preferences.sublime-settings")
|
||||
options = args['options']
|
||||
if options[0]:
|
||||
current_scheme = s.get("color_scheme", options[0]['color_scheme'])
|
||||
current_theme = s.get("theme", options[0]['theme'])
|
||||
current_option = s.get("color_scheme_option", -1)
|
||||
|
||||
next_option = current_option + 1
|
||||
if next_option >= len(options):
|
||||
next_option = 0
|
||||
|
||||
if options[next_option]['theme']:
|
||||
s.set('theme', options[next_option]['theme'])
|
||||
if options[next_option]['color_scheme']:
|
||||
s.set('color_scheme', options[next_option]['color_scheme'])
|
||||
s.set('color_scheme_option', next_option)
|
||||
|
||||
import sublime, sublime_plugin
|
||||
|
||||
class ToggleColorSchemeCommand(sublime_plugin.TextCommand):
|
||||
def run(self, edit, **args):
|
||||
s = sublime.load_settings("Preferences.sublime-settings")
|
||||
options = args['options']
|
||||
if options[0]:
|
||||
current_scheme = s.get("color_scheme", options[0]['color_scheme'])
|
||||
current_theme = s.get("theme", options[0]['theme'])
|
||||
current_option = s.get("color_scheme_option", -1)
|
||||
|
||||
next_option = current_option + 1
|
||||
if next_option >= len(options):
|
||||
next_option = 0
|
||||
|
||||
if options[next_option]['theme']:
|
||||
s.set('theme', options[next_option]['theme'])
|
||||
if options[next_option]['color_scheme']:
|
||||
s.set('color_scheme', options[next_option]['color_scheme'])
|
||||
s.set('color_scheme_option', next_option)
|
||||
|
||||
sublime.save_settings("Preferences.sublime-settings")
|
||||
@@ -1,19 +1,19 @@
|
||||
[
|
||||
{
|
||||
"args": null,
|
||||
"command": "duplicate_line"
|
||||
},
|
||||
{
|
||||
"args": {
|
||||
"block": false
|
||||
},
|
||||
"command": "toggle_comment"
|
||||
},
|
||||
{
|
||||
"args": {
|
||||
"by": "lines",
|
||||
"forward": false
|
||||
},
|
||||
"command": "move"
|
||||
}
|
||||
]
|
||||
[
|
||||
{
|
||||
"args": null,
|
||||
"command": "duplicate_line"
|
||||
},
|
||||
{
|
||||
"args": {
|
||||
"block": false
|
||||
},
|
||||
"command": "toggle_comment"
|
||||
},
|
||||
{
|
||||
"args": {
|
||||
"by": "lines",
|
||||
"forward": false
|
||||
},
|
||||
"command": "move"
|
||||
}
|
||||
]
|
||||
@@ -1,44 +1,44 @@
|
||||
[
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"to": "bol"
|
||||
},
|
||||
"command": "move_to"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"characters": "console."
|
||||
},
|
||||
"command": "insert"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"characters": "log"
|
||||
},
|
||||
"command": "insert"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"characters": "("
|
||||
},
|
||||
"command": "insert"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"to": "eol"
|
||||
},
|
||||
"command": "move_to"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"characters": ");"
|
||||
},
|
||||
"command": "insert"
|
||||
}
|
||||
]
|
||||
[
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"to": "bol"
|
||||
},
|
||||
"command": "move_to"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"characters": "console."
|
||||
},
|
||||
"command": "insert"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"characters": "log"
|
||||
},
|
||||
"command": "insert"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"characters": "("
|
||||
},
|
||||
"command": "insert"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"to": "eol"
|
||||
},
|
||||
"command": "move_to"
|
||||
},
|
||||
{
|
||||
"args":
|
||||
{
|
||||
"characters": ");"
|
||||
},
|
||||
"command": "insert"
|
||||
}
|
||||
]
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"color_scheme": "Packages/PlainTasks/tasks-eighties-colored.hidden-tmTheme",
|
||||
"date_format": "(%H:%M %d-%m-%y)"
|
||||
}
|
||||
{
|
||||
"color_scheme": "Packages/PlainTasks/tasks-eighties-colored.hidden-tmTheme",
|
||||
"date_format": "(%H:%M %d-%m-%y)"
|
||||
}
|
||||
Reference in new issue
Block a user