alphapapa / alphapapa/org-recent-headings

A proposition to add headings to the list after some time spent in them

Ouverte
#21 4 commentaires 0 réactions 1 personne assignée Réclamée par @alphapapa Voir sur GitHub
enhancement
Langage dominant
Shell
Étoiles
61
Forks
4
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

I spend a lot of time just searching and scrolling around. I'd like the headers I visit manually to be added to the list after some time.

The quick and dirty way I found is to add a dummy function to the `org-recent-headings-advise-functions` and call it with `run-with-timer` every once in a while. Not the best way, but good enough for now. Here's the code:

```
(use-package org-recent-headings
:config
(defun org-recent-headings-my-aux-fn () nil)
(add-to-list 'org-recent-headings-advise-functions #'org-recent-headings-my-aux-fn)
(let ((repeat-interval 20))
(if (boundp 'org-recent-headings-my-timer)
(cancel-timer org-recent-headings-my-timer))
(setq org-recent-headings-my-timer
(run-with-timer 0 repeat-interval #'org-recent-headings-my-aux-fn))
)
(org-recent-headings-mode) ; this clears the list, unfortunately
)
```

Thanks for the package.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.