Giter Site home page Giter Site logo

Comments (4)

minad avatar minad commented on August 19, 2024 1

Copying my comment from minad/vertico#68:

It seems that only the basic completion style shows hostnames. My recommendation is to define a special completion style basic-remote which uses basic only for remote files:

(defun basic-remote-try-completion (string table pred point)
  (and (vertico--remote-p string)
       (completion-basic-try-completion string table pred point)))

(defun basic-remote-all-completions (string table pred point)
  (and (vertico--remote-p string)
       (completion-basic-all-completions string table pred point)))

(add-to-list
 'completion-styles-alist
 '(basic-remote basic-remote-try-completion basic-remote-all-completions nil))

(setq completion-category-overrides '((file (styles basic-remote orderless))))

Alternatively you can configure to use basic in combination with orderless, but this may be undesired, since it will affect every file completion, not only remote files.

(setq completion-category-overrides '((file (styles basic orderless))))

from orderless.

minad avatar minad commented on August 19, 2024

Note that substring also does not support host name completion. It is really required to use basic for this to work.

Related issues with dynamic tables, which do not work with substring or orderless: #20, #24, #45, #79

from orderless.

plattfot avatar plattfot commented on August 19, 2024

Thanks @minad! I'm using the special completion style basic-remote and works perfectly for me.

I'm closing this issue as this solves my issue.

from orderless.

oantolin avatar oantolin commented on August 19, 2024

Thanks @minad!

from orderless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.