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

Feature: Show directory contents with "nix" completion on double-TAB #160

Open
djspiewak opened this issue Sep 29, 2016 · 2 comments
Open

Comments

@djspiewak
Copy link

Basically, I'm thinking of something similar to the Emacs (or shell) behavior. With "nix"-style completion enabled, if the user presses TAB twice when the completion is ambiguous, show a list of all options. This could be done with a minihtml hover, or (preferably) by expanding the panel to include the file list above the file bar (ideally with sidebar-derived icons, but really it doesn't matter).

As it stands, windows-style completion is almost the only useful one (despite its annoying behavior), since it's the only way to explore a directory structure.

@skuroda
Copy link
Collaborator

skuroda commented Oct 1, 2016 via email

@FichteFoll
Copy link
Member

At least with ST4, it should be possible to simply use the normal auto complete popup for this feature. If I eventually end up adding this feature, I'll see if it feals more natural

  • to have the popup open immediately as you start typing, like in code views,
  • to show the popup when a tab is pressed, like for text views (e.g. html), or
  • to use nix behavior where a single tab completes the first result and the second shows a full list.

The latter could turn out to be difficult to implement with ST native tools, however, and would likely end up looking similar to #185 using minihtml popups.

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

No branches or pull requests

3 participants