Skip to content

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

Open
@DivineDominion

Description

@DivineDominion

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions