Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selectrum doesn't support parent-directory completions in eshell #550

Open
DivineDominion opened this issue May 18, 2021 · 0 comments
Open

Comments

@DivineDominion
Copy link

Selectrum seems to handle ../ + partial filename completions oddly in eshell.

Given this dir structure:

~/
    folder/
    script.sh

And this init.el:

(require 'package)

;; Configure MELVA package repo
(add-to-list 'package-archives
             '("melpa-stable" . "https://stable.melpa.org/packages/"))
(add-to-list 'package-archives
             '("melpa" . "https://melpa.org/packages/"))
(package-initialize)

(require 'use-package)

(use-package selectrum
  :demand
  :init
  (selectrum-mode +1))

Perform these steps:

  1. M-x eshell
  2. In the eshell buffer, cd ~/folder
  3. From here, type ../scr + TAB

Expected:

  • Completion to ../script.sh.

Actual:

  • Completion to script.sh, which isn't part of the working dir ~/folder.

This also happens when you replace the completion of ../script.sh with a completion of any other file in the parent dir, including other directories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant