alphapapa / alphapapa/org-sidebar

Sidebar does not open if body-text is not wide enough

未關閉
#51 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Shell
星號
558
分支
17
PR 合併指標
30 天內沒有已合併 PR

描述

Hi! Thank you for the great package, I've found it very useful so far. I've come across a rather strange issue however.

I like to use [olivetti-mode](https://github.com/rnkn/olivetti) to make org-buffers somewhat "narrower" (different than narrowing the buffer) to make it nicer to write in, like so
![image](https://user-images.githubusercontent.com/21983833/121234057-d6cd1400-c882-11eb-9310-45378734f4fa.png)

However, when this is active, neither `org-sidebar` nor `org-sidebar-toggle` do anything. It does run, as it toggles `truncate-lines`
![image](https://user-images.githubusercontent.com/21983833/121234205-fbc18700-c882-11eb-80da-13c408446929.png)
If I turn it off it works just as you'd expect.
![image](https://user-images.githubusercontent.com/21983833/121234282-13007480-c883-11eb-8ef4-48b72295f181.png)

The issue does not seem to be with any specific olivetti-mode implementation, but with the fact that it changes the width of the margins/fringes/text. In fact, when I set the character width of olivetti-mode > 110 characters, the sidebar appears.
![image](https://user-images.githubusercontent.com/21983833/121234523-52c75c00-c883-11eb-8f04-5129488007b5.png)

Do you know how I could fix this? I've tried to understand why this happens by looking at `org-sidebar.el`, but no luck so far. There do seem to be checks for the narrowness of buffers, but if I understand correctly this has little to do with the width of the buffer-text.

Thanks in advance!

PS. Amazing that you managed to split side-windows, [I struggled for a long time to do so](https://emacs.stackexchange.com/questions/63001/how-do-i-split-a-side-window) and eventually gave up, but this made me realize it's possible!

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。