{"action":"created","issue":{"url":"https://api.github.com/repos/emacs-helm/helm/issues/1064","labels_url":"https://api.github.com/repos/emacs-helm/helm/issues/1064/labels{/name}","comments_url":"https://api.github.com/repos/emacs-helm/helm/issues/1064/comments","events_url":"https://api.github.com/repos/emacs-helm/helm/issues/1064/events","html_url":"https://github.com/emacs-helm/helm/issues/1064","id":88254598,"number":1064,"title":"helm completions close to where I type","user":{"login":"vspinu","id":1363467,"avatar_url":"https://avatars.githubusercontent.com/u/1363467?v=3","gravatar_id":"","url":"https://api.github.com/users/vspinu","html_url":"https://github.com/vspinu","followers_url":"https://api.github.com/users/vspinu/followers","following_url":"https://api.github.com/users/vspinu/following{/other_user}","gists_url":"https://api.github.com/users/vspinu/gists{/gist_id}","starred_url":"https://api.github.com/users/vspinu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vspinu/subscriptions","organizations_url":"https://api.github.com/users/vspinu/orgs","repos_url":"https://api.github.com/users/vspinu/repos","events_url":"https://api.github.com/users/vspinu/events{/privacy}","received_events_url":"https://api.github.com/users/vspinu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2015-06-14T21:53:47Z","updated_at":"2015-06-16T13:46:39Z","closed_at":null,"body":"I would be happy to use helm everywhere instead of completing read and ido if only it could show completions close to where I type the candidates.  I currently have `helm-split-window-in-side-p` set to `t`  and `helm-split-window-default-side` set to  `other` and I  am reasonably happy with it, except of the case when split happens on the right. Then the distance between minibuffer and helm completion is too big.\r\n\r\nIs there anything in helm that comes close to either of the following:\r\n\r\n1)  helm completion buffer to  contain its own pseudo minibuffer line. Preferably on the top of the completion buffer.  Then distance between the candidates and line where I type is zero - an ideal case.\r\n2) `helm-split-window-default-side` to accept `below-left` value.  In other words, I want helm to always split left or bottom window and display candidates close to minibuffer. \r\n3) display candidates in the minibuffer (like ivy does)\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/emacs-helm/helm/issues/comments/112435583","html_url":"https://github.com/emacs-helm/helm/issues/1064#issuecomment-112435583","issue_url":"https://api.github.com/repos/emacs-helm/helm/issues/1064","id":112435583,"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-16T13:46:39Z","updated_at":"2015-06-16T13:46:39Z","body":"If you:\r\n\r\n- Always want Helm windows to be at the bottom and expand fully.\r\n- But you don't want Helm to change current window configuration like `helm-always-two-windows` does.\r\n\r\nThen you may consider using `popwin` with the following configuration for Helm:\r\n\r\n```elisp\r\n      (defvar spacemacs-helm-display-help-buffer-regexp '(\"*.*Helm.*Help.**\"))\r\n      ;; display Helm buffer using 40% frame height\r\n      (defvar spacemacs-helm-display-buffer-regexp `(\"*.*helm.**\"\r\n                                                     (display-buffer-in-side-window)\r\n                                                     (inhibit-same-window . t)\r\n                                                     (window-height . 0.4)))\r\n      (defvar spacemacs-display-buffer-alist nil)\r\n      (defun spacemacs//display-helm-at-bottom ()\r\n        \"Display the helm buffer at the bottom of the frame.\"\r\n        ;; avoid Helm buffer being diplaye twice when user\r\n        ;; sets this variable to some function that pop buffer to\r\n        ;; a window. See https://github.com/syl20bnr/spacemacs/issues/1396\r\n        (let ((display-buffer-base-action '(nil)))\r\n          ;; backup old display-buffer-base-action\r\n          (setq spacemacs-display-buffer-alist display-buffer-alist)\r\n          ;; the only buffer to display is Helm, nothing else we must set this\r\n          ;; otherwise Helm cannot reuse its own windows for copyinng/deleting\r\n          ;; etc... because of existing popwin buffers in the alist\r\n          (setq display-buffer-alist nil)\r\n          (add-to-list 'display-buffer-alist spacemacs-helm-display-buffer-regexp)\r\n          ;; this or any specialized case of Helm buffer must be added AFTER\r\n          ;; `spacemacs-helm-display-buffer-regexp'. Otherwise,\r\n          ;; `spacemacs-helm-display-buffer-regexp' will be used before\r\n          ;; `spacemacs-helm-display-help-buffer-regexp' and display\r\n          ;; configuration for normal Helm buffer is applied for helm help\r\n          ;; buffer, making the help buffer unable to be displayed.\r\n          (add-to-list 'display-buffer-alist spacemacs-helm-display-help-buffer-regexp)\r\n          (popwin-mode -1)))\r\n\r\n      (defun spacemacs//restore-previous-display-config ()\r\n        (popwin-mode 1)\r\n        ;; we must enable popwin-mode first then restore `display-buffer-alist'\r\n        ;; Otherwise, popwin keeps adding up its own buffers to `display-buffer-alist'\r\n        ;; and could slow down Emacs as the list grows\r\n        (setq display-buffer-alist spacemacs-display-buffer-alist))\r\n\r\n      (add-hook 'helm-after-initialize-hook 'spacemacs//display-helm-at-bottom)\r\n      ;;  Restore popwin-mode after a Helm session finishes.\r\n      (add-hook 'helm-cleanup-hook 'spacemacs//restore-previous-display-config)\r\n```\r\n\r\nThis was added to Spacemacs to solve the Helm window problem, since users don't want Helm buffer to override their any buffer or changing window configuration. It is also for people who are used to ido to switch to Helm easier with similar look and feel, except Helm is better since it offers more features and 3rd party packages.\r\n\r\nAnd I agree that Hem better not be limited in the minibuffer."}}