summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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