Keyword group supports custom append content file: prepend.yaml
关键词组支持自定义追加内容文件:prepend.yamlpull/174/head
parent
97b3279e8e
commit
bc407650dc
|
|
@ -0,0 +1,3 @@
|
|||
custom.yaml
|
||||
prepend.yaml
|
||||
append.yaml
|
||||
|
|
@ -4,9 +4,11 @@
|
|||
# ⚠️Wenn Sie benutzerdefinierte Stichwortgruppen erstellen möchten, kopieren Sie bitte diese Datei, benennen Sie sie in "custom.yaml" um und bearbeiten Sie sie dann in der "custom.yaml".
|
||||
# ⚠️Das Plugin liest zuerst die "custom.yaml"-Datei. Wenn die "custom.yaml"-Datei nicht vorhanden ist, wird diese Datei gelesen.
|
||||
#
|
||||
# ⚠️Se desideri solo aggiungere il tuo contenuto dopo il file corrente, puoi creare un file append.yaml.
|
||||
# ⚠️custom.yaml: Sovrascrive il file corrente
|
||||
# ⚠️append.yaml: Aggiunge alla fine del file corrente
|
||||
# ⚠️Wenn Sie nur Ihren eigenen Inhalt vor der aktuellen Datei hinzufügen möchten, können Sie eine prepend.yaml-Datei erstellen.
|
||||
# ⚠️Wenn Sie nur Ihren eigenen Inhalt nach der aktuellen Datei hinzufügen möchten, können Sie eine append.yaml-Datei erstellen.
|
||||
# ⚠️custom.yaml: Überschreibt die aktuelle Datei
|
||||
# ⚠️prepend.yaml: Fügt vor der aktuellen Datei hinzu
|
||||
# ⚠️append.yaml: Fügt nach der aktuellen Datei hinzu
|
||||
#
|
||||
# ⚠️Wenn Sie nur Ihren eigenen Inhalt nach der aktuellen Datei hinzufügen möchten, können Sie eine append.yaml-Datei erstellen.
|
||||
# ⚠️custom.yaml: Überschreibt die aktuelle Datei
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
# ⚠️If you need to customize keyword groups, please copy this file, rename it to custom.yaml, and make modifications in custom.yaml.
|
||||
# ⚠️The plugin will prioritize reading the custom.yaml file. If the custom.yaml file does not exist, it will read this file.
|
||||
#
|
||||
# ⚠️If you only want to prepend your own content before the current file, you can create a prepend.yaml file.
|
||||
# ⚠️If you only want to append your own content after the current file, you can create an append.yaml file.
|
||||
# ⚠️custom.yaml: Overwrite the current file
|
||||
# ⚠️append.yaml: Append to the current file
|
||||
# ⚠️custom.yaml: Overrides the current file
|
||||
# ⚠️prepend.yaml: Appends to the current file before
|
||||
# ⚠️append.yaml: Appends to the current file after
|
||||
#
|
||||
# ⚠️It is recommended to use a professional text editor (such as Visual Studio Code) to edit this file to avoid encoding and formatting errors.
|
||||
# ⚠️Please do not use Notepad, the default text editor in Windows, to edit this file.
|
||||
|
|
|
|||
|
|
@ -3,9 +3,11 @@
|
|||
# ⚠️Se recomienda no modificar el contenido de este archivo, ya que el autor puede actualizarlo periódicamente. Si se modifica este archivo, podría generar conflictos al actualizar.
|
||||
# ⚠️Si desea personalizar grupos de palabras clave, copie este archivo, cámbiele el nombre a "custom.yaml" y realice las modificaciones en "custom.yaml". El complemento leerá primero el archivo "custom.yaml" y, si no existe, leerá este archivo.
|
||||
#
|
||||
# ⚠️Si solo deseas agregar tu propio contenido después del archivo actual, puedes crear un archivo append.yaml.
|
||||
# ⚠️custom.yaml: Sobrescribe el archivo actual
|
||||
# ⚠️append.yaml: Agrega al final del archivo actual
|
||||
# ⚠️Si solo quieres agregar tu propio contenido antes del archivo actual, puedes crear un archivo prepend.yaml.
|
||||
# ⚠️Si solo quieres agregar tu propio contenido después del archivo actual, puedes crear un archivo append.yaml.
|
||||
# ⚠️custom.yaml: Sobreestcribe el archivo actual
|
||||
# ⚠️prepend.yaml: Agrega antes del archivo actual
|
||||
# ⚠️append.yaml: Agrega después del archivo actual
|
||||
#
|
||||
# ⚠️Se recomienda utilizar un editor de texto profesional (como Visual Studio Code) para editar este archivo y evitar problemas de codificación y formato incorrecto.
|
||||
# ⚠️No utilice el Bloc de notas de Windows para editar este archivo.
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
# ⚠️Si vous souhaitez personnaliser les groupes de mots-clés, veuillez copier ce fichier, le renommer en "custom.yaml" et apporter les modifications dans "custom.yaml".
|
||||
# ⚠️Le plug-in lira en priorité le fichier "custom.yaml". S'il n'existe pas, il lira ce fichier.
|
||||
#
|
||||
# ⚠️Si vous souhaitez uniquement ajouter votre propre contenu avant le fichier actuel, vous pouvez créer un fichier prepend.yaml.
|
||||
# ⚠️Si vous souhaitez uniquement ajouter votre propre contenu après le fichier actuel, vous pouvez créer un fichier append.yaml.
|
||||
# ⚠️custom.yaml: Remplace le fichier actuel
|
||||
# ⚠️append.yaml: Ajoute à la suite du fichier actuel
|
||||
# ⚠️prepend.yaml: Ajoute avant le fichier actuel
|
||||
# ⚠️append.yaml: Ajoute après le fichier actuel
|
||||
#
|
||||
# ⚠️Il est recommandé d'utiliser un éditeur de texte professionnel (comme Visual Studio Code) pour modifier ce fichier afin d'éviter les problèmes de codage et de formatage incorrects.
|
||||
# ⚠️N'utilisez pas le Bloc-notes intégré de Windows pour modifier ce fichier.
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
# ⚠️Se si desidera personalizzare i gruppi di parole chiave, copiare questo file, rinominarlo come "custom.yaml" e apportare le modifiche nel file "custom.yaml".
|
||||
# ⚠️Il plugin leggerà prima il file "custom.yaml" e, se non esiste, leggerà questo file.
|
||||
#
|
||||
# ⚠️Se desideri solo aggiungere il tuo contenuto prima del file corrente, puoi creare un file prepend.yaml.
|
||||
# ⚠️Se desideri solo aggiungere il tuo contenuto dopo il file corrente, puoi creare un file append.yaml.
|
||||
# ⚠️custom.yaml: Sovrascrive il file corrente
|
||||
# ⚠️append.yaml: Aggiunge alla fine del file corrente
|
||||
# ⚠️prepend.yaml: Aggiunge prima del file corrente
|
||||
# ⚠️append.yaml: Aggiunge dopo il file corrente
|
||||
#
|
||||
# ⚠️Si consiglia di utilizzare un editor di testo professionale (come Visual Studio Code) per modificare questo file, per evitare problemi di codifica e formattazione errata.
|
||||
# ⚠️Non utilizzare il Blocco note predefinito di Windows per modificare questo file.
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
# ⚠️カスタムキーワードグループを作成する場合は、このファイルをコピーして「custom.yaml」という名前に変更し、そのファイルで変更を行ってください。
|
||||
# ⚠️プラグインは、custom.yamlファイルを優先して読み込みます。custom.yamlファイルが存在しない場合は、このファイルを読み込みます。
|
||||
#
|
||||
# ⚠️現在のファイルの後に独自の内容を追加したい場合は、append.yamlファイルを作成できます。
|
||||
# ⚠️custom.yaml:現在のファイルを上書きします
|
||||
# ⚠️append.yaml:現在のファイルの後に追加します
|
||||
# ⚠️現在のファイルの前に自分のコンテンツを追加したい場合は、prepend.yamlファイルを作成します。
|
||||
# ⚠️現在のファイルの後に自分のコンテンツを追加したい場合は、append.yamlファイルを作成します。
|
||||
# ⚠️custom.yaml: 現在のファイルを上書きします
|
||||
# ⚠️prepend.yaml: 現在のファイルの前に追加します
|
||||
# ⚠️append.yaml: 現在のファイルの後に追加します
|
||||
#
|
||||
# ⚠️専門のテキストエディタ(例:Visual Studio Code)を使用して、このファイルを編集することをお勧めします。これにより、エンコーディングやフォーマットエラーが回避されます。
|
||||
# ⚠️Windowsのメモ帳は使用しないでください。
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
# ⚠️사용자 정의 키워드 그룹이 필요한 경우, 이 파일을 복사하여 custom.yaml으로 이름을 변경한 후 custom.yaml에서 수정하십시오.
|
||||
# ⚠️플러그인은 custom.yaml 파일을 우선적으로 읽습니다. custom.yaml 파일이 없으면 이 파일을 읽습니다.
|
||||
#
|
||||
# ⚠️현재 파일 뒤에 자신의 내용을 추가하려면 append.yaml 파일을 생성할 수 있습니다.
|
||||
# ⚠️custom.yaml: 현재 파일을 덮어씁니다.
|
||||
# ⚠️append.yaml: 현재 파일 뒤에 추가합니다.
|
||||
# ⚠️현재 파일 앞에 자신의 내용을 추가하려면 prepend.yaml 파일을 생성하십시오.
|
||||
# ⚠️현재 파일 뒤에 자신의 내용을 추가하려면 append.yaml 파일을 생성하십시오.
|
||||
# ⚠️custom.yaml: 현재 파일을 덮어씁니다
|
||||
# ⚠️prepend.yaml: 현재 파일 앞에 추가합니다
|
||||
# ⚠️append.yaml: 현재 파일 뒤에 추가합니다
|
||||
#
|
||||
# ⚠️전문적인 텍스트 편집기(예: Visual Studio Code)를 사용하여 이 파일을 편집하는 것이 좋습니다. 인코딩 및 형식 오류를 피할 수 있습니다.
|
||||
# ⚠️Windows 기본 메모장을 사용하여 이 파일을 편집하지 마십시오.
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
# ⚠️Se você deseja personalizar as palavras-chave, copie este arquivo, renomeie-o para "custom.yaml" e faça as alterações no arquivo "custom.yaml".
|
||||
# ⚠️O plugin irá priorizar a leitura do arquivo "custom.yaml". Se o arquivo "custom.yaml" não existir, ele lerá este arquivo.
|
||||
#
|
||||
# ⚠️Se você deseja apenas adicionar seu próprio conteúdo após o arquivo atual, você pode criar um arquivo append.yaml.
|
||||
# ⚠️Se desejar apenas adicionar seu próprio conteúdo antes do arquivo atual, você pode criar um arquivo prepend.yaml.
|
||||
# ⚠️Se desejar apenas adicionar seu próprio conteúdo após o arquivo atual, você pode criar um arquivo append.yaml.
|
||||
# ⚠️custom.yaml: Substitui o arquivo atual
|
||||
# ⚠️append.yaml: Acrescenta ao final do arquivo atual
|
||||
# ⚠️prepend.yaml: Adiciona antes do arquivo atual
|
||||
# ⚠️append.yaml: Adiciona após o arquivo atual
|
||||
#
|
||||
# ⚠️Recomendamos o uso de um editor de texto profissional (como o Visual Studio Code) para editar este arquivo, a fim de evitar problemas de codificação e formatação.
|
||||
# ⚠️Não use o Bloco de Notas padrão do Windows para editar este arquivo.
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
# ⚠️Если вам нужно настроить пользовательские ключевые слова, скопируйте этот файл, переименуйте его в custom.yaml и внесите изменения в custom.yaml.
|
||||
# ⚠️Плагин будет прочитывать файл custom.yaml в первую очередь. Если файл custom.yaml не существует, будет прочитан этот файл.
|
||||
#
|
||||
# ⚠️Если вы хотите добавить свое содержимое после текущего файла, вы можете создать файл append.yaml.
|
||||
# ⚠️custom.yaml: Заменяет текущий файл
|
||||
# ⚠️append.yaml: Добавляет в конец текущего файла
|
||||
# ⚠️Если вы хотите добавить свое собственное содержимое перед текущим файлом, вы можете создать файл prepend.yaml.
|
||||
# ⚠️Если вы хотите добавить свое собственное содержимое после текущего файла, вы можете создать файл append.yaml.
|
||||
# ⚠️custom.yaml: Перезаписывает текущий файл
|
||||
# ⚠️prepend.yaml: Добавляет перед текущим файлом
|
||||
# ⚠️append.yaml: Добавляет после текущего файла
|
||||
#
|
||||
# ⚠️Рекомендуется использовать профессиональный текстовый редактор (например, Visual Studio Code) для редактирования этого файла, чтобы избежать проблем с кодировкой и форматированием.
|
||||
# ⚠️Не редактируйте этот файл с помощью стандартного блокнота Windows.
|
||||
|
|
|
|||
|
|
@ -4,8 +4,10 @@
|
|||
# ⚠️如需要自定义关键词组,请复制本文件,重命名为 custom.yaml,然后在 custom.yaml 中修改。
|
||||
# ⚠️插件将优先读取 custom.yaml 文件,如果 custom.yaml 文件不存在,则读取本文件。
|
||||
#
|
||||
# ⚠️如果只想要再当前文件前面追加自己的内容,可以建立 prepend.yaml 文件。
|
||||
# ⚠️如果只想要再当前文件后面追加自己的内容,可以建立 append.yaml 文件。
|
||||
# ⚠️custom.yaml: 覆盖当前文件
|
||||
# ⚠️prepend.yaml: 追加到当前文件前面
|
||||
# ⚠️append.yaml: 追加到当前文件后面
|
||||
#
|
||||
# ⚠️建议使用专业的文本编辑器(如 Visual Studio Code)编辑本文件,以避免编码和格式错误的问题。
|
||||
|
|
|
|||
|
|
@ -4,8 +4,10 @@
|
|||
# ⚠️如需要自定義關鍵詞組,請複製本檔案,重命名為 custom.yaml,然後在 custom.yaml 中修改。
|
||||
# ⚠️插件將優先讀取 custom.yaml 檔案,如果 custom.yaml 檔案不存在,則讀取本檔案。
|
||||
#
|
||||
# ⚠️如果只想要再當前檔案前面追加自己的內容,可以建立 prepend.yaml 檔案。
|
||||
# ⚠️如果只想要再當前檔案後面追加自己的內容,可以建立 append.yaml 檔案。
|
||||
# ⚠️custom.yaml: 覆蓋當前檔案
|
||||
# ⚠️prepend.yaml: 追加到當前檔案前面
|
||||
# ⚠️append.yaml: 追加到當前檔案後面
|
||||
#
|
||||
# ⚠️建議使用專業的文本編輯器(如 Visual Studio Code)編輯本檔案,以避免編碼和格式錯誤的問題。
|
||||
|
|
|
|||
|
|
@ -4,8 +4,10 @@
|
|||
# ⚠️如需要自定義關鍵詞組,請複製本檔案,重命名為 custom.yaml,然後在 custom.yaml 中修改。
|
||||
# ⚠️插件將優先讀取 custom.yaml 檔案,如果 custom.yaml 檔案不存在,則讀取本檔案。
|
||||
#
|
||||
# ⚠️如果只想要再當前檔案前面追加自己的內容,可以建立 prepend.yaml 檔案。
|
||||
# ⚠️如果只想要再當前檔案後面追加自己的內容,可以建立 append.yaml 檔案。
|
||||
# ⚠️custom.yaml: 覆蓋當前檔案
|
||||
# ⚠️prepend.yaml: 追加到當前檔案前面
|
||||
# ⚠️append.yaml: 追加到當前檔案後面
|
||||
#
|
||||
# ⚠️建議使用專業的文本編輯器(如 Visual Studio Code)編輯本檔案,以避免編碼和格式錯誤的問題。
|
||||
|
|
|
|||
|
|
@ -16,9 +16,19 @@ def get_group_tags(lang):
|
|||
return ''
|
||||
|
||||
tags = ''
|
||||
|
||||
try:
|
||||
prepend_file = _get_tags_filename('prepend')
|
||||
with open(prepend_file, 'r', encoding='utf8') as f:
|
||||
prepend = f.read()
|
||||
tags += prepend + "\n\n"
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
with open(tags_file, 'r', encoding='utf8') as f:
|
||||
tags = f.read()
|
||||
data = f.read()
|
||||
tags += data + "\n\n"
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
@ -26,7 +36,7 @@ def get_group_tags(lang):
|
|||
append_file = _get_tags_filename('append')
|
||||
with open(append_file, 'r', encoding='utf8') as f:
|
||||
append = f.read()
|
||||
tags += "\n\n" + append
|
||||
tags += append + "\n\n"
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue