dengste / minimap

Sidebar showing a "mini-map" of a buffer
168 stars 14 forks source link

Huge line breaks #27

Open manueldeljesus opened 1 year ago

manueldeljesus commented 1 year ago

I have installed minimap in Doom Emacs on Fedora 36. However, when I activate the minimap, each line break is like three or four lines high, making the minimap unreadable.

Image

Any idea on how to solve the issue?

Your help will be much appreciated.

manueldeljesus commented 1 year ago

It seems that the problem may not be that newline characters are being inserted, but that the minimap buffer is using the same line height that the normal buffer is using. When clicking on the minimap, the size of the cursor is identical to the size of the cursor on the main buffer. Any way to control this behavior?

manueldeljesus commented 1 year ago

It seems that the problem only affects Org files. It seems to be working correctly with Python files. Is this the expected behavior -not working with Org files-?

jgarvin commented 1 year ago

@manueldeljesus I am encountering the same issue editing Rust source files, so it's not Org specific. Maybe something in common about our emacs versions? M-x emacs-version:

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2021-05-14
manueldeljesus commented 1 year ago

GNU Emacs 28.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-07-15

Well, same big version, same OS, but not much more. However, it is interesting to know that the bug affects other modes, and not only Org-mode. It may make debugging it easier.

samrjack commented 1 year ago

In one of the other issues, this was brought up and the stated short-term solution is to disable org-indent-mode. I don't know what's going on with your rust file @jgarvin , maybe rust mode has some functionality that's interfering with the line height too?

manueldeljesus commented 1 year ago

Is it possible to disable org-indent-mode only for the minimap buffer? Or is it necessary to disable it globally?

manueldeljesus commented 1 year ago

It seems that deactivating org-indent-mode in the minimap buffer also deactivates it in the main buffer. So, no luck in that line of attack.

samrjack commented 1 year ago

I spent a while last night trying to discern exactly what about the indent mode was causing issues. I'll look more later when I have time. One thing I found was that anything not under a headline has the line height you'd expect in the minimap.

forbade commented 1 year ago

Any luck fixing this? This is the only issue I could find on this problem.

nazzacode commented 1 year ago

I second this. Line breaks make minimap unusable with org mode which is such a shame.

contrapunctus-1 commented 2 months ago

This seems to happen not just in Org buffers, but also in any source code buffers which have highlight-indent-guides-mode enabled.

Tested on GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-05-15, modified by Debian