{"action":"created","issue":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2082","labels_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2082/labels{/name}","comments_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2082/comments","events_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2082/events","html_url":"https://github.com/syl20bnr/spacemacs/issues/2082","id":90270177,"number":2082,"title":"Use Helm header line for entering query","user":{"login":"tuhdo","id":4818719,"avatar_url":"https://avatars.githubusercontent.com/u/4818719?v=3","gravatar_id":"","url":"https://api.github.com/users/tuhdo","html_url":"https://github.com/tuhdo","followers_url":"https://api.github.com/users/tuhdo/followers","following_url":"https://api.github.com/users/tuhdo/following{/other_user}","gists_url":"https://api.github.com/users/tuhdo/gists{/gist_id}","starred_url":"https://api.github.com/users/tuhdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuhdo/subscriptions","organizations_url":"https://api.github.com/users/tuhdo/orgs","repos_url":"https://api.github.com/users/tuhdo/repos","events_url":"https://api.github.com/users/tuhdo/events{/privacy}","received_events_url":"https://api.github.com/users/tuhdo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/discussion","name":"discussion","color":"eb6420"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/enhancement%20:-D","name":"enhancement :-D","color":"84b6eb"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/Helm","name":"Helm","color":"207de5"},{"url":"https://api.github.com/repos/syl20bnr/spacemacs/labels/need%20feedback%20:-P","name":"need feedback :-P","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-23T02:46:23Z","updated_at":"2015-06-23T05:11:46Z","closed_at":null,"body":"Recently Helm was added with an awesome feature that is outright better than all our current hacks: entering query in the header line, so the input is close to the best matches. Here is a demo:\r\n\r\n![helm-echo-header-line-demo](https://cloud.githubusercontent.com/assets/4818719/8297961/a6618b3a-198c-11e5-9b54-98c86d36d796.gif)\r\n\r\nAccording to Helm maintainer, you can use this function hook to hide the minibuffer during Helm session:\r\n\r\n```elisp\r\n(defun helm-hide-minibuffer-maybe ()\r\n  (when (with-helm-buffer helm-echo-input-in-header-line)\r\n    (let ((ov (make-overlay (point-min) (point-max) nil nil t)))\r\n      (overlay-put ov 'window (selected-window))\r\n      (overlay-put ov 'face (let ((bg-color (face-background 'default nil)))\r\n                              `(:background ,bg-color :foreground ,bg-color)))\r\n      (setq-local cursor-type nil))))\r\n\r\n(add-hook 'helm-minibuffer-set-up-hook 'helm-hide-minibuffer-maybe)\r\n```\r\n\r\nHow to try this feature:\r\n\r\n- Update to latest Helm.\r\n- Enable the feature: `(setq helm-echo-input-in-header-line t)`.\r\n- Run the above code.\r\n- Use it."},"comment":{"url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/comments/114361266","html_url":"https://github.com/syl20bnr/spacemacs/issues/2082#issuecomment-114361266","issue_url":"https://api.github.com/repos/syl20bnr/spacemacs/issues/2082","id":114361266,"user":{"login":"tuhdo","id":4818719,"avatar_url":"https://avatars.githubusercontent.com/u/4818719?v=3","gravatar_id":"","url":"https://api.github.com/users/tuhdo","html_url":"https://github.com/tuhdo","followers_url":"https://api.github.com/users/tuhdo/followers","following_url":"https://api.github.com/users/tuhdo/following{/other_user}","gists_url":"https://api.github.com/users/tuhdo/gists{/gist_id}","starred_url":"https://api.github.com/users/tuhdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuhdo/subscriptions","organizations_url":"https://api.github.com/users/tuhdo/orgs","repos_url":"https://api.github.com/users/tuhdo/repos","events_url":"https://api.github.com/users/tuhdo/events{/privacy}","received_events_url":"https://api.github.com/users/tuhdo/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T05:11:46Z","updated_at":"2015-06-23T05:11:46Z","body":"You have to set `helm-autoresize-max-height` and `helm-autoresize-min-height` to 40, which is 40% of current frame height. So, no more prompt constantly jumping around."}}