From d012fe01b633b8210e40c90ec2c281f64429272b Mon Sep 17 00:00:00 2001 From: joelazar Date: Sun, 20 Jul 2025 10:44:56 +0200 Subject: [PATCH] :wrench: Add config files for harper, television cables, and zed updates - Add harper config to disable sentence capitalization - Add television cable configs for AWS buckets, EC2 instances, and nu history - Update zed keymap with new shortcuts for marks and diagnostics - Enable include_ignored in zed file finder settings - Fix quoting in zed "find in files - selected text" task - Add custom dictionary for harper-ls --- dot_config/harper/config.toml | 2 ++ dot_config/television/cable/aws-buckets.toml | 14 ++++++++++++ .../television/cable/aws-instances.toml | 13 +++++++++++ dot_config/television/cable/nu-history.toml | 7 ++++++ dot_config/zed/private_keymap.json | 3 +++ dot_config/zed/private_settings.json | 3 ++- dot_config/zed/tasks.json | 2 +- .../harper-ls/dictionary.txt | 22 +++++++++++++++++++ 8 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 dot_config/harper/config.toml create mode 100644 dot_config/television/cable/aws-buckets.toml create mode 100644 dot_config/television/cable/aws-instances.toml create mode 100644 dot_config/television/cable/nu-history.toml create mode 100644 private_Library/private_Application Support/harper-ls/dictionary.txt diff --git a/dot_config/harper/config.toml b/dot_config/harper/config.toml new file mode 100644 index 00000000..d6a3c195 --- /dev/null +++ b/dot_config/harper/config.toml @@ -0,0 +1,2 @@ +[rules] +sentence_capitalization = false diff --git a/dot_config/television/cable/aws-buckets.toml b/dot_config/television/cable/aws-buckets.toml new file mode 100644 index 00000000..80b9513e --- /dev/null +++ b/dot_config/television/cable/aws-buckets.toml @@ -0,0 +1,14 @@ +[metadata] +name = "aws-buckets" +description = "List and preview AWS S3 Buckets" +requirements = ["aws"] + +[source] +command = "aws s3 ls --output text" +output = "{split: :3|trim}" + +[preview] +command = "aws s3 ls s3://{split: :3|trim} --human-readable --summarize" + +[ui.preview_panel] +size = 60 diff --git a/dot_config/television/cable/aws-instances.toml b/dot_config/television/cable/aws-instances.toml new file mode 100644 index 00000000..40881d01 --- /dev/null +++ b/dot_config/television/cable/aws-instances.toml @@ -0,0 +1,13 @@ +[metadata] +name = "aws-instances" +description = "List and preview AWS EC2 Instances" +requirements = ["aws"] + +[source] +command = "aws ec2 describe-instances --output text --query \"Reservations[*].Instances[*].[InstanceId,Tags[?Key=='Name']|[0].Value]\"" + +[preview] +command = "aws ec2 describe-instances --output json --instance-ids {split:\t:0} --query 'Reservations[*].Instances[0]'" + +[ui.preview_panel] +size = 60 diff --git a/dot_config/television/cable/nu-history.toml b/dot_config/television/cable/nu-history.toml new file mode 100644 index 00000000..636d8e95 --- /dev/null +++ b/dot_config/television/cable/nu-history.toml @@ -0,0 +1,7 @@ + +[metadata] +name = "nu-history" +description = "A channel to select from your nu history" + +[source] +command = "nu -c 'open $nu.history-path | lines | reverse | to text'" diff --git a/dot_config/zed/private_keymap.json b/dot_config/zed/private_keymap.json index 4de558ba..b8377280 100644 --- a/dot_config/zed/private_keymap.json +++ b/dot_config/zed/private_keymap.json @@ -89,6 +89,7 @@ "space g h D": "git::Diff", "space g h r": "git::Restore", "space g h R": "git::RestoreFile", + "space h": "vim::ToggleMarksView", "space m p": "markdown::OpenPreview", "space m P": "markdown::OpenPreviewToTheSide", "space s r": ["pane::DeploySearch", { "replace_enabled": true }], @@ -110,6 +111,8 @@ "g p": "editor::Paste", "g r": "editor::FindAllReferences", "g f": "editor::OpenExcerpts", + "] e": ["editor::GoToDiagnostic", { "severity": "error" }], + "[ e": ["editor::GoToPreviousDiagnostic", { "severity": "error" }], "alt-k": "editor::MoveLineUp", "alt-j": "editor::MoveLineDown" } diff --git a/dot_config/zed/private_settings.json b/dot_config/zed/private_settings.json index db88bc3f..1a1e5745 100644 --- a/dot_config/zed/private_settings.json +++ b/dot_config/zed/private_settings.json @@ -207,7 +207,8 @@ "activate_on_close": "neighbour" }, "file_finder": { - "modal_max_width": "medium" + "modal_max_width": "medium", + "include_ignored": true }, "active_pane_modifiers": { "inactive_opacity": 0.9, diff --git a/dot_config/zed/tasks.json b/dot_config/zed/tasks.json index 344ee4ea..510f8864 100644 --- a/dot_config/zed/tasks.json +++ b/dot_config/zed/tasks.json @@ -94,7 +94,7 @@ }, { "label": "find in files - selected text", - "command": "zed \"$(tv text -i $ZED_SELECTED_TEXT)\"", + "command": "zed \"$(tv text -i \"$ZED_SELECTED_TEXT\")\"", "cwd": "$ZED_WORKTREE_ROOT", "allow_concurrent_runs": true, "use_new_terminal": true, diff --git a/private_Library/private_Application Support/harper-ls/dictionary.txt b/private_Library/private_Application Support/harper-ls/dictionary.txt new file mode 100644 index 00000000..66c0e57d --- /dev/null +++ b/private_Library/private_Application Support/harper-ls/dictionary.txt @@ -0,0 +1,22 @@ +Anthropic +AnyConnect +BTS +BTSes +CD +Ericsson +JS +OTA +Onomondo +SIGKILL +SNMP +Turborepo +WireGuard +claude +dropdown +env +eslint +harper +lng +pnpm +prebuilt +trackingAngle -- 2.51.2