Skip to content

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

Merged
kaorahi merged 2 commits intokaorahi:masterfrom
mmarshall540:master
Dec 22, 2024
Merged

add howm-recent-excluded-files-regexp option#23
kaorahi merged 2 commits intokaorahi:masterfrom
mmarshall540:master

Conversation

@mmarshall540
Copy link
Contributor

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
Copy link
Owner

kaorahi commented Dec 22, 2024

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

@kaorahi
Copy link
Owner

kaorahi commented Dec 22, 2024

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

@kaorahi kaorahi merged commit 6b9a4a5 into kaorahi:master Dec 22, 2024
kaorahi added a commit that referenced this pull request Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants