Tools

Tbls についての Tips

  • POST
Tbls についての Tipsを備忘録として残しておく 環境 OS: macOS 15.3 手順 Tbls について 実際の DB に接続してテーブル定義書を生成してくれるツール 様々な形式(markdown, Excel 等)で生成してくれる ※詳細は Tbls を参照 設定ファイルについて # # @see https://github.com/k1LoW/tbls # # Data Source Name ## @see https://github.com/k1LoW/tbls#dsn # dsn: postgres://<<user>>:<<pass>>@localhost:5432/<<dbname>> # To connect with SSL mode disabled # dsn: postgres://<<user>>:<<pass>>@localhost:5432/<<dbname>>?sslmode=disable # DSN configuration values should be found in the .env file TBLS_DSN # Disable output of schema data # Default is false disableOutputSchema: false format: # Adjust the column width of Markdown format table # Default is false adjust: true # Sort the order of table list and columns # Default is false sort: false # Display sequential numbers in table rows # Default is false number: false # The comments for each table in the Tables section of the index page will display the text up to the first double newline (first paragraph). # Default is false showOnlyFirstParagraph: true # Hide table columns without values # Default is false hideColumnsWithoutValues: false # It can be boolean or array # hideColumnsWithoutValues: ["Parents", "Children"] er: # Skip generation of ER diagram # Default is false skip: false # ER diagram image format (`png`, `jpg`, `svg`, `mermaid`) # Default is `svg` format: mermaid # Add table/column comment to ER diagram # Default is false comment: false # Hide relation definition from ER diagram # Default is false hideDef: true # Show column settings in ER diagram. If this section is not set, all columns will be displayed (default). showColumnTypes: # Show related columns related: true # Show primary key columns primary: true # Distance between tables that display relations in the ER # Default is 1 distance: 1 # ER diagram (png/jpg) font (font name, font file, font path or keyword) # Default is "" ( system default ) font: "" detectVirtualRelations: enabled: true strategy: default # Exclude tables exclude: - goose_db_version docPath: docs/ja/ comments: - table: mst_books tableComment: |- 書籍情報を管理するテーブル columnComments: name: 書籍名 TBLS_DSN=postgres://postgres:postgres@localhost:5432/olbdb?sslmode=disable 出力ファイルの上書きについて # markdown tbls doc --config .tbls.yml --rm-dist # Excel tbls out --config .tbls.yml -t xlsx -o schema.xlsx DSN の設定について ローカルで実施する場合は以下のどちらかで可能

Terminal Ghostty の設定方法

  • POST
Terminal Ghostty の設定方法について調査した結果を備忘録として残しておく 環境 OS: macOS 14.7 手順 Ghostty のセットアップ フォントのインストール brew install --cask font-monaspace # Hack Nerd Font brew install font-hack-nerd-font # HackGen brew install font-hackgen # HackGen Nerd brew install font-hackgen-nerd 以下のコマンドを実行する brew install --cask ghostty mkdir -p ~/.config/ghostty vim ~/.config/ghostty/config config ファイルを修正する 設定値については参考を参照 theme = iTerm2 Pastel Dark Background font-family = HackGen35 Console NF font-size = 16 macos-non-native-fullscreen = true macos-titlebar-proxy-icon = hidden macos-titlebar-style = tabs window-padding-x = 20 window-padding-y = 20 # クイックターミナルの位置を画面下部に設定 quick-terminal-position = "bottom" # クイックターミナルを表示するスクリーンを設定 (メインスクリーン) quick-terminal-screen = "main" # アニメーション時間を設定(0で即時表示) quick-terminal-animation-duration = 0 # グローバルホットキーを設定 keybind = "global:ctrl+cmd+`=toggle_quick_terminal" Ghostty チートシート キーバインディング内容⌘+T新規タブ作成⌘+[ or ⌘+]タブを移動⌘+D横にスプリット⇧+⌘+D縦にスプリット⌘+[ or ⌘+]スプリットを移動⇧+⌘+↵スプリットをズーム、ズームアウトoption+clickクリックしたところにカーソルを合わせられます テーマのプレビュー ghostty +list-themes