Skip to content

Commit

Permalink
Detect cards with indented properties
Browse files Browse the repository at this point in the history
  • Loading branch information
l3kn committed May 31, 2024
1 parent 019a9dd commit cc19145
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Changelog.org
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ upcoming changes.
In case a update to the org sources is needed, I'll add a changelog
entry with updating instructions.

** 0.6.2

*** Fixed

When using =grep= to find files that contain flashcards, org-fc now
also finds files where the property drawer or single properties are
indented (preceded by spaces or tabs).

** 0.6.1

*** Fixed
Expand Down
2 changes: 1 addition & 1 deletion org-fc-awk.el
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Matches all .org files ignoring ones with names don't start with
a `.' to exclude temporary / backup files.
With the `-L' option, `find' follows symlinks."
(format
"find -L %s -name \".*\" -prune -o -name \"[^.]*.org\" -type f -exec grep -l --null \"^:%s:\" {} \\+"
"find -L %s -name \".*\" -prune -o -name \"[^.]*.org\" -type f -exec grep -l --null \"^[ \\t]*:%s:\" {} \\+"
(mapconcat
(lambda (path) (shell-quote-argument (expand-file-name path)))
paths " ")
Expand Down

0 comments on commit cc19145

Please sign in to comment.