AutoYADM commit: 2025-03-23 14:15:07
This commit is contained in:
parent
185be9fa64
commit
df7c3aaba1
3 changed files with 7 additions and 29 deletions
|
@ -77,7 +77,7 @@ A-o = ":config-open"
|
||||||
A-w = ":config-open-workspace"
|
A-w = ":config-open-workspace"
|
||||||
|
|
||||||
# execute current file
|
# execute current file
|
||||||
A-x = ":sh %{buffer_name}"
|
A-x = ":sh ./%{buffer_name}"
|
||||||
|
|
||||||
# Treesitter selections
|
# Treesitter selections
|
||||||
# Left <-> Right: Sibling nodes
|
# Left <-> Right: Sibling nodes
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
Description = "mkpy: Edit Python scratch file"
|
Description = "mkpy: Edit Python scratch file"
|
||||||
Output = ""
|
Output = ""
|
||||||
Tag = ["python", "scratch"]
|
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\""
|
command = "TEMP=$(mktemp)\nmv \"$TEMP\" \"$TEMP.py\"\nprintf '#!/bin/env python\\n\\n' > \"$TEMP.py\"\nchmod +x \"$TEMP.py\"\nhx \"$TEMP.py\""
|
||||||
|
|
||||||
[[Snippets]]
|
[[Snippets]]
|
||||||
|
|
|
@ -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.
|
|
Loading…
Add table
Add a link
Reference in a new issue