dash-docs-el / helm-dash

Browse Dash docsets inside emacs
511 stars 59 forks source link

open doc as you type #48

Closed kidd closed 8 years ago

kidd commented 10 years ago

This works kinda ok, but it's super slow. makes everything sluggish.

We should investigate on that, There's also helm-idle-delay worth investigating

(add-hook 'helm-update-hook 'helm-dash-update t)

(defun helm-dash-update ()
  (interactive)
  (with-selected-window
    (eww (helm-get-selection))))
kidd commented 10 years ago

also, there's :persistent-action which can somehow help showing help without quitting helm.

kidd commented 9 years ago

This seems to work a bit better (using eww) although it doesn't get triggered when navigating with arrow keys...

(defun my-autoupdater ()
  (interactive)
  (if (helm-get-selection)
      (progn
        (helm-dash-browse-url (helm-get-selection))
        (select-window (active-minibuffer-window)))))

(add-to-list 'helm-after-update-hook 'my-thing)
kidd commented 8 years ago

I just discovered that c-c c-f runs the persistent-action on every change, so that's it :)