From df7c3aaba1547fdd1d06c3bc450bd5796c93ae19 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sun, 23 Mar 2025 14:15:07 -0400 Subject: [PATCH] AutoYADM commit: 2025-03-23 14:15:07 --- .config/helix/config.toml | 2 +- .config/pet/snippet.toml | 6 ++++++ .config/yadm/README.md | 28 ---------------------------- 3 files changed, 7 insertions(+), 29 deletions(-) delete mode 100644 .config/yadm/README.md diff --git a/.config/helix/config.toml b/.config/helix/config.toml index 069df488..17b3834d 100644 --- a/.config/helix/config.toml +++ b/.config/helix/config.toml @@ -77,7 +77,7 @@ A-o = ":config-open" A-w = ":config-open-workspace" # execute current file -A-x = ":sh %{buffer_name}" +A-x = ":sh ./%{buffer_name}" # Treesitter selections # Left <-> Right: Sibling nodes diff --git a/.config/pet/snippet.toml b/.config/pet/snippet.toml index 74425848..c6fb28db 100644 --- a/.config/pet/snippet.toml +++ b/.config/pet/snippet.toml @@ -3,6 +3,12 @@ Description = "mkpy: Edit Python scratch file" Output = "" Tag = ["python", "scratch"] + command = "FILE=\"$(date +%s%N)_$RANDOM.py\"\nprintf '#!/bin/env python\\n\\n' > \"$FILE\"\nchmod +x \"$FILE\"\nhx \"$FILE\"" + +[[Snippets]] + Description = "mktemppy: Edit TEMP Python scratch file" + Output = "" + Tag = ["python", "scratch"] command = "TEMP=$(mktemp)\nmv \"$TEMP\" \"$TEMP.py\"\nprintf '#!/bin/env python\\n\\n' > \"$TEMP.py\"\nchmod +x \"$TEMP.py\"\nhx \"$TEMP.py\"" [[Snippets]] diff --git a/.config/yadm/README.md b/.config/yadm/README.md deleted file mode 100644 index 4b502acc..00000000 --- a/.config/yadm/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# Daniel's Dotfiles - -My personal Linux dotfiles. - -I use Arch btw. - -The root of this repo is equivalent to my $HOME directory. - -## Note on this repository - -**Important**: I'm migrating this repository from GitHub to [Codeberg](https://codeberg.org/ficcdaf/dotfiles). If you're reading this on GitHub, the repo is likely out-of-date and will be removed sometime in the future. - -I use this repository to sync and backup my dotfiles. This is done automatically on a timer. Therefore, these configs are: - -- Always up-to-date. -- Potentially broken on any given commit. - -## Note On Keybindings - -A note on keybindings: I use Colemak-DH, which is a non-qwerty keyboard layout. I use either `MNEI` or the arrow keys (which is a mod key + `MNEI` on my keyboard) for navigation, depending on a few different factors. - -If `MNEI` conflicts with any defaults that would be far too finicky to remap, I just use the arrow keys. Otherwise, I bind `MNEI` to navigation. - -### Management - -Currently I'm using `yadm` to manage these dotfiles. I have tried some other solutions like `chezmoi` and `stow`, but this one has stuck for me. I highly recommend it. I use [AutoYADM](https://github.com/ficcdaf/autoyadm) to automate committing and pushing my changes. - -If you see a file with a weird name, like `config##hostname.dbox`, it's leveraging `yadm`'s alternate files feature; the program will automatically symlink that file to its appropriate destination depending on which computer it's on.