emacs-helm / helm-system-packages

A Helm interface to the package manager of your operating system
GNU General Public License v3.0
106 stars 11 forks source link

Persistent action is useless with org buffer folded #17

Closed thierryvolpiatto closed 6 years ago

thierryvolpiatto commented 6 years ago

When hitting C-j on "git" package for example, only top node (*git) is shown making persistent action useless. Perhaps using org-cycle in helm-system-packages-show-information would fix problem. But I wonder why you are using org-mode in there when there is only one node, is it really useful ?

Ambrevar commented 6 years ago

I've been wanting to fix this for a while.

My suggestion:

How do I distinguish between the two? Should the persistent action be a different function?

Ambrevar commented 6 years ago

54653bd8effd9c2ba196dca32c3dd4774abd003c fixes your issue. a5db066844389b71287ffb30617e48b6bc481226 fixes mine. I've basically used the

      (if helm-in-persistent-action
          (list candidate)
        (helm-marked-candidates))

construct. Is this helm-idiomatic?