Skip to content
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

Emacs file access report tracking #28

Open
Eerovil opened this issue Jun 17, 2019 · 0 comments
Open

Emacs file access report tracking #28

Eerovil opened this issue Jun 17, 2019 · 0 comments
Labels

Comments

@Eerovil
Copy link
Owner

Eerovil commented Jun 17, 2019

Courtesy of reddit user /u/pvkooten, here is a snippet for an emacs script for file access tracking. This is easily parsed and grouped in TrackLater (given that I'm able to get an example file generated)

(defun log-file-visits ()
  (when (and buffer-file-name (not (eq last-command "xah-close-current-buffer")))
      (f-append-text (concat (int-to-string (float-time)) "," buffer-file-name "\n") 'utf-8 "/home/pascal/log-file-visits.txt")))

(add-hook 'find-file-hook 'log-find-visits)
@Eerovil Eerovil added enhancement New feature or request new/enhanced module labels Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant