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

Filenames are not aligned properly #16

Closed
HeinrichHartmann opened this issue Oct 29, 2015 · 7 comments
Closed

Filenames are not aligned properly #16

HeinrichHartmann opened this issue Oct 29, 2015 · 7 comments

Comments

@HeinrichHartmann
Copy link

cf.

image

I am using the latest master with config:

 '(deft-directory "<some dir>")
 '(deft-use-filename-as-title t)
jrblevin added a commit that referenced this issue Dec 20, 2015
In console mode, using the full `deft-window-width` caused
lines to wrap in the browser buffer. For example, see
#16
@jrblevin
Copy link
Owner

Thanks again. This should be fixed now (let me know if not). Please see my response in PR #17 for details.

@nivekuil
Copy link

nivekuil commented Jan 7, 2016

I'm still having this problem on graphical emacs, using the Ubuntu Mono font with infinality-bundle rendering. It would be convenient if (if (display-graphic-p) 0 1) took variables instead of hard-coded numbers, although emacs does make it pretty easy to edit the source directly.

@jrblevin jrblevin reopened this Jan 7, 2016
@Dapuva76
Copy link

I'm not sure if this is the same problem, but I'm also having alignment problems on Windows 7. It looks like this:
deft
I thought it's related to visual line mode, but turning it off didn't fix the alignment.

@jrblevin
Copy link
Owner

@Dapuva76 It will only be aligned if you use a fixed-width font.

@Dapuva76
Copy link

Oh my. That's it? I thought I'm using variable-width on Linux as well. My bad, ty

@jrblevin
Copy link
Owner

See the new variable deft-width-offset. By default it subtracts one character in console mode and zero in graphical mode. In cases where this fails, it can be customized to shorten summary lines even more to prevent line wrap.

@toffalori
Copy link

@jrblevin I still have this issue with emacs 26.1 and deft 0.8.
As of my understanding the deft-width-offset variable was removed, right? What else could be the cause? Thank you.

Important to note: When I resize the window or refresh the buffer with "deft-refresh" it looks fine. But it happens again when you reopen the deft buffer.

deft list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants