From 51afd41254f876eee8815ee1ec65848ca1f2e590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 27 Sep 2022 19:36:22 +0200 Subject: [PATCH] fix(notement): correctly handle files with spaces --- configs/i3.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/i3.nix b/configs/i3.nix index 8194928..85019cd 100644 --- a/configs/i3.nix +++ b/configs/i3.nix @@ -243,7 +243,7 @@ in { note_file=$({ echo diary/$(date -I).md echo diary/$(date -I -d yesterday).md - find . -type f -printf "%T@ %p\n" | sort --reverse --numeric-sort | cut --delimiter=" " --fields=2 + find . -type f -printf "%T@ %p\n" | sort --reverse --numeric-sort | cut --delimiter=" " --fields=2- } | rofi -dmenu -i -p 'notes') if test "$note_file" then