mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 04:24:10 -06:00
feat: add fzf.fish modifier script, Kitty padding, and fix Fisher update timing
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bun
|
||||
|
||||
// Modify fzf.fish to disable default CTRL+R binding (allow Atuin to handle it)
|
||||
// This is a chezmoi modify_ script that processes fzf.fish on every apply
|
||||
|
||||
const content = await Bun.stdin.text();
|
||||
const lines = content.split('\n');
|
||||
|
||||
// Find and comment out the standalone fzf_configure_bindings call
|
||||
const targetLineRegex = /^(\s*)fzf_configure_bindings\s*$/;
|
||||
|
||||
const modifiedLines = lines.map(line => {
|
||||
if (targetLineRegex.test(line) && !line.trim().startsWith('#')) {
|
||||
const indent = line.match(/^(\s*)/)?.[1] || '';
|
||||
return `${indent}# fzf_configure_bindings # Disabled - configured in config.fish instead`;
|
||||
}
|
||||
return line;
|
||||
});
|
||||
|
||||
console.log(modifiedLines.join('\n'));
|
||||
Reference in New Issue
Block a user