completion/helm: remove +helm-global-prompt

This could hide helpful prompt text.

Addresses #923
This commit is contained in:
Henrik Lissner 2018-10-03 00:02:01 -04:00
parent 6515efa19e
commit 0312f8656a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -1,8 +1,5 @@
;;; completion/helm/config.el -*- lexical-binding: t; -*- ;;; completion/helm/config.el -*- lexical-binding: t; -*-
(defvar +helm-global-prompt " "
"The helm text prompt prefix string is globally replaced with this string.")
(defvar +helm-project-search-engines '(rg ag pt) (defvar +helm-project-search-engines '(rg ag pt)
"What search tools for `+helm/project-search' (and `+helm-file-search' when no "What search tools for `+helm/project-search' (and `+helm-file-search' when no
ENGINE is specified) to try, and in what order. ENGINE is specified) to try, and in what order.
@ -114,15 +111,6 @@ be negative.")
:config :config
(set-popup-rule! "^\\*helm" :vslot -100 :size 0.22 :ttl nil) (set-popup-rule! "^\\*helm" :vslot -100 :size 0.22 :ttl nil)
(defun +helm*replace-prompt (plist)
"Globally replace helm prompts with `+helm-global-prompt'."
(cond ((not +helm-global-prompt) plist)
((keywordp (car plist))
(plist-put plist :prompt +helm-global-prompt))
((setf (nth 2 plist) +helm-global-prompt)
plist)))
(advice-add #'helm :filter-args #'+helm*replace-prompt)
;; Hide the modeline ;; Hide the modeline
(defun +helm|hide-mode-line (&rest _) (defun +helm|hide-mode-line (&rest _)
(with-current-buffer (helm-buffer-get) (with-current-buffer (helm-buffer-get)