alphapapa / alphapapa/org-sidebar

Sidebar tree opens subtrees in most recently opened window

Đang mở
#49 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Shell
Star
558
Fork
17
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Context: Spacemacs frame with four windows open:

1. org-sidebar-tree of example.org
2. example.org
3. arbitrary or empty buffer
4. arbitrary or empty buffer

I switch to window 1, navigate to the headline I want to open as a subtree, and hit RET.

Expected behavior: Subtree opens in window 2 (i.e., the window that contains the full example.org buffer).

Actual behavior: Subtree opens in window 4.

After messing around with it, I think the subtree will always open in the most recently opened window. And this appears to be the behavior no matter when or from what window org-sidebar-tree is run.

It would make sense to open the subtree in the most recently opened window displaying an empty buffer, but if it's going to replace a non-empty buffer, it seems like it would make the most sense to replace the full example.org tree. My use case is probably on the unusual side, however, so I wouldn't be surprised if the current behavior was chosen deliberately for reasons that aren't relevant to my use case.

Thank you for all your hard work on this wonderful package!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.