From a0a636cfaa3c87600639176e29e99f0c85077b05 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Tue, 27 Jul 2021 19:45:29 +0200 Subject: [PATCH] sway_search: add max-depth 4 --- bin/sway_search | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/sway_search b/bin/sway_search index 1761b08..5bf3aac 100755 --- a/bin/sway_search +++ b/bin/sway_search @@ -1,3 +1,4 @@ #!/bin/bash -xdg-open "$(rg --no-messages --files $HOME -g '!{*.zip,*.rar,*.gz}' | \ - wofi --dmenu --insensitive --prompt 'find')" + +xdg-open "$(rg --no-messages --max-depth 4 --sortr modified --files $HOME | \ + sort -h | wofi --dmenu --insensitive --prompt 'recent files')"