Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-19 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicolas Goaziou writes: > Hello, > > stardiviner writes: > >> I thought intuitively that property drawers "mostly expanded" and regular >> drawers like :LOGBOOK: drawer "mostly folded". > > There is no such thing as ":LOGBOOK:" drawers. There are

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-19 Thread Nicolas Goaziou
Hello, stardiviner writes: > I thought intuitively that property drawers "mostly expanded" and regular > drawers like :LOGBOOK: drawer "mostly folded". There is no such thing as ":LOGBOOK:" drawers. There are property drawers, and regular drawers. "LOGBOOK" belongs to the latter. >> Another (b

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-19 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicolas Goaziou writes: > Hello, > > stardiviner writes: > >> This sounds reasonable. (I deleted my patch on my local fork, I think your >> solution is better.) > > I pushed the changes. Now drawers folding is on par with blocks. You can > hide

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-18 Thread Nicolas Goaziou
Hello, stardiviner writes: > This sounds reasonable. (I deleted my patch on my local fork, I think your > solution is better.) I pushed the changes. Now drawers folding is on par with blocks. You can hide or show a drawer with `org-hide-drawer-toggle', which is similar to `org-hide-block-toggl

[SOLUTION] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-14 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 stardiviner writes: > I think the hidden drawers info is useful for users, this should be > shown when org-cycle on headlines. > > Here is the patch. I found another solution: Add file-local variable to eval to the Contacts.org file: #+begin_sr

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-14 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicolas Goaziou writes: > Hello, > > stardiviner writes: > >> I agree. As I described in my given example "org-contacts", which include >> person >> info in properties drawer. That's why I want to expand when I press "Tab" on >> expanding headli

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-14 Thread Ihor Radchenko
> It makes sense if point is on the drawer, and Org does this already. > > If point is on a headline, possibly a zillion lines above, it doesn't, > at least not as a common operation. Well. It's hard to judge for me if my use case is common or not. Since there are no many other replies in the thre

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-14 Thread Nicolas Goaziou
Hello, Ihor Radchenko writes: > In some of my entries, I have long tables storing historical data. > These tables tend to be extremely long and I sometimes hide them inside > a drawer. Opening these drawers (or a customised list of drawers) on > would actually make sense for me. It makes sens

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-14 Thread Nicolas Goaziou
Hello, stardiviner writes: > I agree. As I described in my given example "org-contacts", which include > person > info in properties drawer. That's why I want to expand when I press "Tab" on > expanding headline. If I see a contact's info with "C-u C-u C-u Tab" is not > convenient. You can reb

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicolas Goaziou writes: > Hello, > > Ihor Radchenko writes: > >>> Thanks Ihor, I indeed found related code in Org Mode source. I implemented a >>> similar functionality in my patch. >> >> Oh. I somehow missed your first message... >> >> Now, actu

[SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ihor Radchenko writes: >> I try to record into under headline. For example, I use "org-contacts.el" >> which >> record people personalized info. I want to see all properties drawer under a >> headline when I press [Tab] (org-cycle) to expand it.

Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicolas Goaziou writes: > Hello, > > stardiviner writes: > >> I try to record into under headline. For example, I use "org-contacts.el" >> which >> record people personalized info. I want to see all properties drawer under a >> headline when I p

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread Ihor Radchenko
> Yes, this `integrate' value is not great, IMO. However, plain lists have > much more in common with headlines than with drawers. > > I still think basic cycling should not include drawers whatsoever. This > is even more true for properties drawers. I tend to agree about the properties drawers. C

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread Tim Cross
Nicolas Goaziou writes: > I still think basic cycling should not include drawers whatsoever. This > is even more true for properties drawers. > > Note that you can already display drawers with `org-cycle', using three > prefix arguments. > I agree. I use drawers precisely because they contain

Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread Samuel Wales
i wonder if as a companion to such [perhaps hook-based user] functionality, org-ellipsis could appear e.g. only if there is text content.

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread Nicolas Goaziou
Hello, Ihor Radchenko writes: >> Thanks Ihor, I indeed found related code in Org Mode source. I implemented a >> similar functionality in my patch. > > Oh. I somehow missed your first message... > > Now, actually adding something to the discussion. > > FYI, there is org-cycle-include-plain-lists

Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread Ihor Radchenko
> Thanks Ihor, I indeed found related code in Org Mode source. I implemented a > similar functionality in my patch. Oh. I somehow missed your first message... Now, actually adding something to the discussion. FYI, there is org-cycle-include-plain-lists variable. If it is set to 'integrate, plain

Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread Ihor Radchenko
> I try to record into under headline. For example, I use "org-contacts.el" > which > record people personalized info. I want to see all properties drawer under a > headline when I press [Tab] (org-cycle) to expand it. It's more intuitive. I recall seeing something similar in stackoverflow. Here

Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-13 Thread Nicolas Goaziou
Hello, stardiviner writes: > I try to record into under headline. For example, I use "org-contacts.el" > which > record people personalized info. I want to see all properties drawer under a > headline when I press [Tab] (org-cycle) to expand it. It's more intuitive. > > I agree your opinion. I

Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Nicolas Goaziou writes: > Hello, > > stardiviner writes: > >> I think the hidden drawers info is useful for users, this should be >> shown when org-cycle on headlines. > > Doesn't this defeat the whole purpose of drawers? What problem do you > wa

Re: [PATCH] Show hidden drawers when org-cycle on headlines

2020-04-11 Thread Nicolas Goaziou
Hello, stardiviner writes: > I think the hidden drawers info is useful for users, this should be > shown when org-cycle on headlines. Doesn't this defeat the whole purpose of drawers? What problem do you want to solve? Regards, -- Nicolas Goaziou

[PATCH] Show hidden drawers when org-cycle on headlines

2020-04-11 Thread stardiviner
I think the hidden drawers info is useful for users, this should be shown when org-cycle on headlines. Here is the patch. -- [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, M