summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-24 21:21:36 +0300
committerPaul Buetow <paul@buetow.org>2025-04-24 21:21:36 +0300
commiteb15e5bd18a537901430d407f37595c846e67dfe (patch)
tree5f90fd0a72c9fa9ed05a13bc145c2fbf78699052
parent519cb1fe507511db24475b89475548c9ede2e4d3 (diff)
Update
-rw-r--r--dotfiles/fish/conf.d/quickedit.fish9
1 files changed, 8 insertions, 1 deletions
diff --git a/dotfiles/fish/conf.d/quickedit.fish b/dotfiles/fish/conf.d/quickedit.fish
index db414d2..4bf0cd3 100644
--- a/dotfiles/fish/conf.d/quickedit.fish
+++ b/dotfiles/fish/conf.d/quickedit.fish
@@ -36,7 +36,14 @@ function quickedit
end
cd $QUICKEDIT_DIR
- set -l file_path (find -L . -type f -not -path '*/.*' | grep "$grep_pattern" | fzf)
+ set -l file_path (
+ find -L . -type f \
+ \( -name "*.txt" -o -name "*.md" -o -name "Makefile" \
+ -o -name "*.xml" -o -name "*.json" \) \
+ -not -path '*/.*' \
+ | grep "$grep_pattern" \
+ | fzf
+ )
$EDITOR $file_path
quickedit::postaction $file_path