Skip to main content

Make obnote work better with emoji titles

ID
b2f442f
date
2025-09-23 14:34:23+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
7fe03d8
message
Make obnote work better with emoji titles
changed files
1 file, 3 additions, 1 deletion

Changed files

macos/obnote (2189) → macos/obnote (2245)

diff --git a/macos/obnote b/macos/obnote
index 9ef3aa4..f6f3699 100755
--- a/macos/obnote
+++ b/macos/obnote
@@ -63,7 +63,9 @@ if __name__ == "__main__":
 
     # Find Markdown files that match the name of this note.
     for path in get_file_paths_under(vault_root, suffix=".md"):
-        if os.path.basename(path) == f"{note_title}.md":
+        expected = f"{note_title}.md".replace('📗 ', '📗  ')
+
+        if os.path.basename(path) == expected:
             print(path, end="")
             break
     else:  # no break