timvisher / deft

Deft is an Emacs mode for quickly browsing, filtering, and editing directories of plain text notes, inspired by Notational Velocity. by Jason Blevins
http://jblevins.org/projects/deft/
2 stars 0 forks source link

too wide deft window #1

Open ArneBab opened 10 years ago

ArneBab commented 10 years ago

Hi,

The deft window is always a tiny bit too wide for my emacs, so the date gets broken into the next line.

The following is a hack which solves that for me.

Best wishes, Arne

PS: How about the option to list files with multiple extensions?

diff -c -L /home/arne/.emacs.d/elpa/deft-20130915.253/deft.el -L \#\<buffer\ deft.el\> /home/arne/.emacs.d/elpa/deft-20130915.253/deft.el /tmp/buffer-content-17288xHh
--- #<buffer deft.el>
+++ /home/arne/.emacs.d/elpa/deft-20130915.253/deft.el
@@ -716,7 +716,7 @@

 (defun deft-buffer-setup ()
   "Render the file browser in the *Deft* buffer."
-  (setq deft-window-width (window-width))
+  (setq deft-window-width (- (window-width) 2))
   (let ((inhibit-read-only t))
     (erase-buffer))
   (remove-overlays)

Diff finished.  Tue Oct 15 11:11:18 2013
timvisher commented 10 years ago

Hmm… It's been awhile since I was hacking on this, but I'll try to look into it soon. If you move the P.S. into another issue it'd be easier to track. :)

timvisher commented 10 years ago

Could you send me the result of evaling (window-width) in the buffer that is too narrow? I'm just concerned with attempting to reproduce it. I've never seen this behavior before and I've used deft in widely varying window widths.