{"id":13862516,"url":"https://github.com/dieggsy/esh-autosuggest","last_synced_at":"2026-01-17T16:37:14.394Z","repository":{"id":37502506,"uuid":"109150687","full_name":"dieggsy/esh-autosuggest","owner":"dieggsy","description":"Fish-like autosuggestions in eshell.","archived":false,"fork":false,"pushed_at":"2024-10-02T18:20:32.000Z","size":205,"stargazers_count":106,"open_issues_count":3,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-14T14:03:50.731Z","etag":null,"topics":["autosuggest","company","completion","emacs-lisp","eshell","history"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dieggsy.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-11-01T15:45:53.000Z","updated_at":"2025-06-08T06:07:14.000Z","dependencies_parsed_at":"2024-11-22T22:32:13.796Z","dependency_job_id":"c1515b00-bed6-450a-a5b3-8bb4007d4cea","html_url":"https://github.com/dieggsy/esh-autosuggest","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/dieggsy/esh-autosuggest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieggsy%2Fesh-autosuggest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieggsy%2Fesh-autosuggest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieggsy%2Fesh-autosuggest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieggsy%2Fesh-autosuggest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dieggsy","download_url":"https://codeload.github.com/dieggsy/esh-autosuggest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieggsy%2Fesh-autosuggest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511868,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autosuggest","company","completion","emacs-lisp","eshell","history"],"created_at":"2024-08-05T06:01:46.307Z","updated_at":"2026-01-17T16:37:14.321Z","avatar_url":"https://github.com/dieggsy.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"* esh-autosuggest\n[[https://melpa.org/#/esh-autosuggest][file:https://melpa.org/packages/esh-autosuggest-badge.svg]]\n[[https://stable.melpa.org/#/esh-autosuggest][file:https://stable.melpa.org/packages/esh-autosuggest-badge.svg]]\n\nFish-like history autosuggestions in eshell\n\n[[demo.gif]]\n\n** Installation\nThis package is on melpa. If you have melpa in your package repositories, you\ncan use ~M-x RET package-install RET esh-autosuggest~ or install\nwith [[https://github.com/jwiegley/use-package][use-package]]:\n#+begin_src emacs-lisp\n(use-package esh-autosuggest\n  :hook (eshell-mode . esh-autosuggest-mode)\n  ;; If you have use-package-hook-name-suffix set to nil, uncomment and use the\n  ;; line below instead:\n  ;; :hook (eshell-mode-hook . esh-autosuggest-mode)\n  :ensure t)\n#+end_src\n\nAlternatively, consider installing with [[https://github.com/raxod502/straight.el][straight.el]] or [[https://github.com/quelpa/quelpa-use-package][quelpa-use-package]].\n\nOtherwise, download the files to somewhere on your load path, and require\nesh-autosuggest:\n#+begin_src emacs-lisp\n(require 'esh-autosuggest)\n#+end_src\n\n** Usage\nThis package assumes you use something other than company for eshell completion\n(e.g. ~eshell-pcomplete~, ~completion-at-point~, ~helm-esh-pcomplete~).\n~company-mode~ is used solely as a mechanism for history autosuggestions.\n\nUnless you're using use-package's hook keyword as described in Installation,\nyou can enable the autosuggestions with:\n#+begin_src emacs-lisp\n(add-hook 'eshell-mode-hook #'esh-autosuggest-mode)\n#+end_src\n\n*** Key Bindings\n- ~\u003cright\u003e~ and ~C-f~ are used to select the suggestion.\n- ~M-\u003cright\u003e~ and ~M-f~ are used to select the next word in the suggestion.\n\nKeys can be modified using ~esh-autosuggest-active-map~.\n\nIf instead you don't want ~company-active-map~ to be overridden, you may set\n~esh-autosuggest-use-company-map~ to ~t~. This may cause unexpected\nbehavior when pressing ~RET~ or ~TAB~, depending on what you want those to do.\nTo emulate fish-shell most closely, it is recommended you leave this ~nil~, as\nthat will explicitly run your input (regardless of suggestion) on ~RET~, and\nbring up your preferred completion system on ~TAB~.\n\n*** Delay\n~esh-autosuggest-delay~ defaults to 0 seconds. This is most like\nfish shell's instant history autosuggestions, but can be customized.\n\n*** With other backends (not recommended)\nIt is technically possible to group this backend with other company backends\nlike e.g. ~company-capf~ like so:\n\n#+begin_src emacs-lisp\n;; don't add esh-autosuggest-mode to eshell-mode-hook\n(defun setup-eshell-grouped-backends ()\n  (setq-local company-backends\n              '((company-capf esh-autosuggest))))\n\n(add-hook 'eshell-mode-hook #'setup-eshell-grouped-backends)\n#+end_src\n\nThis isn't recommended since the history suggestions will be neither fish-like,\nnor will they work after typing the first word on the command line, since\ncompany-backends need to share a prefix to work together smoothly. See\n[[https://github.com/company-mode/company-mode/issues/744][company-mode/company-mode#744]] for more information.\n\n*** Known bugs and workarounds\nIf you're using [[https://github.com/emacs-evil/evil-collection][evil-collection]], there's a [[https://github.com/dieggsy/esh-autosuggest/issues/12][known issue]] that occurs when\n~evil-collection-company-use-tng~ is set to ~t~ (the default). If you don't\nneed that feature, you can set it to ~nil~ for the time being.\n\n** Rationale and tips\nI made this package to help ease a transition from zsh to eshell as my main\nshell. The reason the main mechanism is a minor-mode that overrides\ncompany-mode is that I didn't find company-mode that useful for eshell\ncompletion.\n\nWhile the default popup-buffer frontend to pcomplete can be a bit annoying,\nI've found there are alternatives that make pcomplete behave more like normal\nshell completion. Try one or more of the following for tab completion:\n\n- [[https://github.com/Ambrevar/emacs-fish-completion][Ambrevar/emacs-fish-completion]]\n- If you use helm\n  #+begin_src emacs-lisp\n  (defun setup-eshell-helm-completion ()\n    (define-key eshell-mode-map [remap eshell-pcomplete] 'helm-esh-pcomplete))\n\n  (add-hook 'eshell-mode-hook #'setup-eshell-helm-completion)\n  #+end_src\n- If you use ivy\n  #+begin_src emacs-lisp\n  (setq ivy-do-completion-in-region t) ; this is the default\n\n  (defun setup-eshell-ivy-completion ()\n    (define-key eshell-mode-map [remap eshell-pcomplete] 'completion-at-point)\n    ;; only if you want to use the minibuffer for completions instead of the\n    ;; in-buffer interface\n    (setq-local ivy-display-functions-alist\n                (remq (assoc 'ivy-completion-in-region ivy-display-functions-alist)\n                      ivy-display-functions-alist)))\n\n  (add-hook 'eshell-mode-hook #'setup-eshell-ivy-completion)\n  #+end_src\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieggsy%2Fesh-autosuggest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdieggsy%2Fesh-autosuggest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieggsy%2Fesh-autosuggest/lists"}