vscode, sublime text configs

This commit is contained in:
2025-07-28 01:30:05 +03:00
parent 4f22c005b7
commit 5c141d3f23
17 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
{
"python_interpreter": "python3",
"autoformat_ignore":
[
"E309"
],
"pep8_ignore":
[
"E309",
"W503",
"W191",
"E303",
"E302",
"E501",
"E402"
],
}

View File

@@ -0,0 +1,4 @@
[
{ "keys": ["ctrl+alt+k", "ctrl+t"], "command": "wrap_in_django_translate" },
{ "keys": ["ctrl+alt+k", "ctrl+g"], "command": "wrap_in_django_gettext" }
]

View File

@@ -0,0 +1,6 @@
{
"extensions":
[
"html"
]
}

View File

@@ -0,0 +1,3 @@
{
}

View File

@@ -0,0 +1,5 @@
{
"extensions":
[
],
}

View File

@@ -0,0 +1,6 @@
{
"extensions":
[
"html"
]
}

View File

@@ -0,0 +1,5 @@
{
"extensions":
[
],
}

View File

@@ -0,0 +1,7 @@
// Settings in here override those in "LSP-copilot/LSP-copilot.sublime-settings"
{
"settings": {
"debug": true
}
}

View File

@@ -0,0 +1,20 @@
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Anaconda",
"Copy Relative Path",
"CppFastOlympicCoding",
"HTML-CSS-JS Prettify",
"Jinja2",
"LSP",
"LSP-copilot",
"LSP-json",
"LSP-pyright",
"Package Control",
"TOML",
],
}

View File

@@ -0,0 +1,10 @@
{
"font_size": 10,
"ignored_packages":
[
"Anaconda",
"Vintage",
],
"translate_tabs_to_spaces": true,
"index_files": true,
}

View File

@@ -0,0 +1,5 @@
{
"extensions":
[
]
}

View File

@@ -0,0 +1,6 @@
{
"extensions":
[
"py"
]
}

View File

@@ -0,0 +1,3 @@
{
"last_test_run": "nosetests "
}

View File

@@ -0,0 +1,17 @@
import sublime
import sublime_plugin
class WrapInDjangoGettextCommand(sublime_plugin.TextCommand):
def run(self, edit):
for region in self.view.sel():
if not region.empty():
# Get the selected text
selected_text = self.view.substr(region)
# Create the translated text
if "\"" in selected_text or "\'" in selected_text:
base = '_({})'
else:
base = '_("{}")'
translated_text = base.format(selected_text)
# Replace the selection with the translated text
self.view.replace(edit, region, translated_text)

View File

@@ -0,0 +1,13 @@
import sublime
import sublime_plugin
class WrapInDjangoTranslateCommand(sublime_plugin.TextCommand):
def run(self, edit):
for region in self.view.sel():
if not region.empty():
# Get the selected text
selected_text = self.view.substr(region)
# Create the translated text
translated_text = '{{% translate "{}" %}}'.format(selected_text)
# Replace the selection with the translated text
self.view.replace(edit, region, translated_text)

File diff suppressed because one or more lines are too long