deft icon indicating copy to clipboard operation
deft copied to clipboard

On first call of deft it finds 5 files, on the second and following calls it finds all 491 files.

Open harmeling opened this issue 5 years ago • 4 comments

After starting Emacs, when I first call deft, it loads only 5 files. Then when I call deft a second time, it finds all 491 files. Is this a know issue?

harmeling avatar Feb 21 '20 16:02 harmeling

I'm having the same experience (not always though), but haven't been able to trace this back. Do you have an extensive customization?

EFLS avatar Feb 22 '20 11:02 EFLS

On my system, it happens after every restart of Emacs. So it might be due to some initialization of deft. Here is my 'deft' related setup from 'init.el':

;; deft (notational velocity)
(require 'deft)
(setq deft-default-extension "org")
(setq deft-directory "~/work/notes")
(setq deft-use-filename-as-title t)
(setq deft-use-filter-string-for-filename t)
(setq deft-auto-save-interval 100.0)
(setq deft-extensions '("txt" "md" "org"))
;(setq deft-text-mode 'markdown-mode)
(global-set-key (kbd "s-n") 'deft)
;(setq deft-markdown-mode-title-level 1)
(defun enable-my-deft-settings ()
  (local-set-key [s-return] 'deft-new-file)
  (local-set-key [s-backspace] 'deft-delete-file)
  (local-set-key (kbd "s-r") 'deft-rename-file)
  (local-set-key (kbd "s-l") 'deft-filter-clear)
  (local-set-key (kbd "s-n") 'deft-filter-clear))    ;; s-n activates deft and inside deft deletes the search string
(add-hook 'deft-mode-hook 'enable-my-deft-settings)

So, as far as I can see nothing special. I am running Emacs 26.1 on a Mac (10.14.6). But I have the problem already for a long time...

harmeling avatar Feb 22 '20 16:02 harmeling

Did you ever find a solution to this?

harshasomisetty avatar Oct 03 '21 14:10 harshasomisetty

No, I think it disappeared a while ago, after some update....

-- Stefan Harmeling ~ Heinrich-Heine-Universität Düsseldorf

On 3. Oct 2021, at 16:05, Harsha Somisetty @.***> wrote:

Did you ever find a solution to this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

harmeling avatar Oct 25 '21 14:10 harmeling