diff --git a/aerospace/aerospace.toml b/aerospace/aerospace.toml index 0040313..4223b0e 100644 --- a/aerospace/aerospace.toml +++ b/aerospace/aerospace.toml @@ -40,8 +40,7 @@ outer.right = 0 # # Commands: https://nikitabobko.github.io/AeroSpace/commands [mode.main.binding] -alt-tab = 'workspace-back-and-forth' -alt-backtick = 'workspace-back-and-forth' +alt-tab = 'workspace-back-and-forth' alt-j = 'focus --boundaries all-monitors-outer-frame down' alt-k = 'focus --boundaries all-monitors-outer-frame up' diff --git a/bin/pbclear b/bin/pbclear index 3333534..3134049 100755 --- a/bin/pbclear +++ b/bin/pbclear @@ -1,5 +1,9 @@ -#!/bin/sh +#!/usr/bin/env bash -cbclear +set -euo pipefail + +CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +"${CURDIR}/cbclear" osascript -e 'display notification "Clipboard cleared" with title "pbclear"' diff --git a/ghostty/darwin.ghostty b/ghostty/darwin.ghostty index b4cd4e3..849d8cd 100644 --- a/ghostty/darwin.ghostty +++ b/ghostty/darwin.ghostty @@ -1,5 +1,6 @@ -font-size = 12 +font-size = 14 quit-after-last-window-closed = true working-directory = home +window-save-state = never diff --git a/helix/config.toml b/helix/config.toml index 3c5aca4..80ad4ae 100644 --- a/helix/config.toml +++ b/helix/config.toml @@ -70,7 +70,20 @@ tabpad = "‒" [keys.normal] "C-l" = [":config-reload", ":redraw"] -[keys.normal.space.t] +[keys.normal.space.g] +"b" = ":sh git blame -L '%{selection_line_start},%{selection_line_end}' '%{buffer_name}'" +"f" = "changed_file_picker" +"h" = ":noop %sh{gh browse '%{buffer_name}:%{cursor_line}' --commit=%sh{git rev-parse HEAD}}" + +[keys.normal.space.q] "q" = ":reflow" + +[keys.normal.space.t] "w" = ":toggle whitespace.render all none" "W" = ":toggle soft-wrap.enable" + +[keys.normal.space.y] +"y" = "yank_to_clipboard" +"p" = ":noop %sh{printf '%%s' '%{buffer_name}' | cbcopy}" +"d" = ":noop %sh{printf '%%s' $(dirname '%{buffer_name}') | cbcopy}" +"b" = ":noop %sh{printf '%%s' $(basename '%{buffer_name}') | cbcopy}"