kaorahi / howm

note-taking tool on Emacs
GNU General Public License v2.0
147 stars 11 forks source link

add howm-recent-excluded-files-regexp option #23

Closed mmarshall540 closed 4 months ago

mmarshall540 commented 4 months ago

I followed the quick-start guide in the read-me to integrate Howm with Org-mode. It works very well!

But there's one problem. If I make a minor change to one of the notes in my old org-mode file, the mtime for that file gets updated, and then all of its hundreds of notes are treated as recent notes, which pushes my Howm notes out of view in the recent list.

This patch adds a user-option to exclude certain files from the recent-note lists. It also adds a function howm-recent-items-filter, and adjusts the howm-recent-menu and howm-list-recent functions to apply the filter if the option has been set.

This still allows headings in excluded files to be searched. They are only excluded from listings of recent files.

kaorahi commented 4 months ago

Thank you for the PR. I'll read this soon.

kaorahi commented 4 months ago

Looks perfect to me. Thank you for your thoughtful PR!