-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filter entries? #527
Comments
You can delete entries from the recent files. |
I mean I wanted to keep it in recentf but prevent some of those from displaying and breaking the dashboard specially if file names are too long |
This is not possible at the moment. 🤔 Feel free to open PR for this. |
Hi, if the length of the file is the problem there is |
Probably add the filter function just for excluding some directories or ssh paths |
Hi @drishal I think there's no need for the filter function, at least not in the dashboard. I was looking to
So, you could define a function to filter those files just for the dashboard: (defun dashboard-recentf-filter (file)
"Add to ~recentf-exclude~ to filter recent files in dashboard buffer."
(when (eq (get-buffer dashboard-buffer-name)
(current-buffer))
(string-match "^/ssh:" file))) Add it to the (add-to-list 'recentf-exclude 'dashboard-recentf-filter) Hope this help. |
is there a way to prevent some entries from being displayed? Like say if the length of the file name (with path) exceeds certain characters or if it starts with some other character (like say
/ssh:
) it should not display in say, recent filesThe text was updated successfully, but these errors were encountered: