※ここでの「テンプレートファイル」とはコンフィグファイルなど、各プロジェクトとよく使うファイルのことを指します.
- PowerShellを使って、Gistに登録しているファイルをクローンし、差分を表示したり、パッチを適用する機能を持つ
gistコマンドを実装する
| # https://github.com/crate-ci/typos/blob/master/docs/reference.md | |
| [files] | |
| extend-exclude = [ | |
| "*.patch" # Automatically generated files that should not be manually modified. | |
| ] | |
| [default] | |
| extend-ignore-re = [ | |
| # spellchecker: disable-line, disable-next-line, disable, enable | |
| # "(?Rm)^.*(#|//|/\\*)\\s*spellchecker:\\s*disable-line$", |
| # Exclude a variety of commonly ignored directories. | |
| exclude = [ | |
| ".bzr", | |
| ".direnv", | |
| ".eggs", | |
| ".git", | |
| ".git-rewrite", | |
| ".hg", | |
| ".mypy_cache", | |
| ".nox", |
| # 文字数の制限 (default: 80) | |
| printWidth: 119 | |
| # 末尾のコロンを削除するかどうか. ["all", "es5", "none"] | |
| trailingComma: "all" | |
| # タブを使うかどうか (.editorconfig) | |
| # useTabs: true | |
| # タブサイズ (.editorconfig) |
| # https://editorconfig.org/ | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_size = 4 | |
| indent_style = space | |
| tab_width = 4 | |
| end_of_line = crlf | |
| insert_final_newline = true |
Espansoは文字入力支援ソフトです. ここには、Espanso用の追加設定ファイルを置いておきます.
Espansoの設定ファイル base.yml に imports に指定したりコピペで使えます.
imports:
- symbols.yml| /* global api */ | |
| class enen_Cambridge { | |
| constructor(options) { | |
| this.options = options; | |
| this.maxexample = 2; | |
| this.word = ''; | |
| } | |
| async displayName() { | |
| // let locale = await api.locale(); |
| // image = "*" | |
| // minifb = "0.19.1" | |
| use crate::{ | |
| IMAGE_HEIGHT, IMAGE_WIDTH, | |
| }; | |
| use minifb::{Key, Window, WindowOptions}; | |
| use image::{RgbImage}; | |
| pub fn draw_in_window(mut pixels: RgbImage) -> std::io::Result<()> | |
| { |
| import sys | |
| import urllib.request | |
| import urllib.parse | |
| import json | |
| import objectpath | |
| import pyperclip | |
| import re | |
| # API Endpoint | |
| API_URL = "https://www.googleapis.com/books/v1/" |