plantarum / bibtex-utils

An Emacs package providing additional features for working with BibTeX files & citations
19 stars 4 forks source link

Feature request: add 'timestamp' and 'owner' to 'bibtex-clean-entry' #5

Open basille opened 6 years ago

basille commented 6 years ago

I'm not sure if this belongs to bibtex-utils or should go straight to bibtex.el, but I couldn't find a way to ask this on the later (only solution seems to report bugs).

When I run bibtex-clean-entry (C-c C-c), I would like to automatically add the timestamp and the owner, just like I have when I create a new entry from template with:

(defun current-date ()
    (format-time-string "%Y.%m.%d"))    
(setq
    bibtex-user-optional-fields '(
                                 ("timestamp" "Time the entry was created" current-date)
                                 ("owner" "Owner of the entry" user-login-name)
)

Is this possible? Thanks!

plantarum commented 6 years ago

Hi,

That's a good suggestion. However, that is part of bibtex.el, and not bibtex-utils.el. It might be possible to add a work-around in bibtex-utils, but I won't have any time to look at this in the immediate future. Maybe later in the year, but my schedule is packed until the end of November.

Good luck,

Tyler

basille commented 6 years ago

I also think it belongs to bibtex.el… but I cannot find a way to post such a request, or simply to ask directly for help (it might actually be already possible, but I cannot find it in the documentation either). In the meanwhile, I asked for help on Stack Exchange, let's see if I'm lucky. Next step would be to contact the maintainer directly, which seems to be Roland Winkler at the moment.