You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shift + Tab moves in the other direction, but Tab seems to be broken! It should go to the next completion. This was the behavior before version 0.71.
Screenshots
No response
Configuration
❯ version | transpose key value | to md --pretty
key
value
version
0.71.0
branch
commit_hash
build_os
linux-x86_64
build_target
x86_64-unknown-linux-gnu
rust_version
rustc 1.65.0 (897e37553 2022-11-02)
rust_channel
stable-x86_64-unknown-linux-gnu
cargo_version
cargo 1.65.0 (4bc8f24d3 2022-10-20)
pkg_version
0.71.0
build_time
2022-11-09 17:52:12 +01:00
build_rust_channel
release
features
default, trash, which, zip
installed_plugins
Additional context
Tried with --config "" to ignore my config, but it is the same behavior.
Reacted by Reilly Tucker Siemens, Kiran Ostrolenk, 0x241F31, Felix Schröter, Linden Krouse, Jared Ramirez, Faïz Hernawan, Jason Morganson, Dominic Slee and tezlm
I believe this is the PR that changed this functionality. The intent Dan was going for was to have the arrow keys be the menu navigation instead of the tab key by default.
This is how you can circumvent this behavior. Use a keybinding like this one.
Using Tab to navigate is like using Alt + Tab to navigate in the desktop. It is something natural for almost every terminal user. I don't think that it is something that people have to configure.
Also: Why does Shift + Tab work? It is not even consistent.
Please revert that change then. Thanks a lot!
FWIW, I agree with you and I think this one line change should be reverted. However, I was trying to point out to you that it could be configured to act like you want it to now so you don't have to wait and see if it eventually gets reverted or not.
I think the core intent of the underlying change was to support filling common prefixes while avoiding the surprising automatic completion of everything should your typing narrow the search space, but I think the broken Tab action is just an artifact of landing the config changes. We should resolve that first (and then polish the underlying completion setup) but I think reverting the change would cause another regression.
IMO instead of the surprising automatic completion, the default should be like how most shells work: "if there's only one result available, Tab completes, otherwise Tab completes up to the common prefix and then cycles".
The keybinding thing above gets closer to that than ever before! Except for doing things when the menu is already open and you're typing more.
Reacted by Firegem, Kyra, Linden Krouse, Jared Ramirez, Mo Bitar, Matthieu Pizenberg and Froloket64
I also encountered this issue today and fixed it by changing the mode of the keybind with name: completion_menu from mode: emacs to mode: [emacs vi_normal vi_insert]. I am using vi mode and for the completion_previous keybind it was already set to the list including vi_normal and vi_insert. I hope this is somewhat clear
I see! Thanks for your help! Consider my vote on the TAB-cycle side 😄 !
EDIT: It is a bit weird though that back-cycling with Shift-TAB works out of the box. I also do not see any problem with using both ways to cycle as defaults.
Reacted by Jared Ramirez, Akash Gurava, Dominic Slee and Mo Bitar
For reference: Using you menu and keybinding snippet, TAB cycling works.
I also noticed an inconsistency in the keybinding configuration: one list uses commas, the other doesn't. I am aware that both ways are valid syntax, but it is a bit confusing to use both syntaxes right next to each other, isn't it?
I'm sure it came from me copy-n-pasting it into my config from someon else's example years ago. I don't pay much attention to it but I'm also not against standardizing it.
I'm not sure if anyone would object to tab/shift-tab being the defaults if someone wants to take that on. I'm not sure if it's reedline's defaults or nushell's defaults that we're using right now.
Also, for everyone, this should works when nushell generate default configuration for us.
The --no-config-file indeed remove the tab completion.
And I vote for Tab as default because it has minimal movement (than arrow key).
Reacted by Dominik Schrempf, Dominic Slee, ckf42, Jason Morganson, Mo Bitar and Froloket64
Activity
kamirr commentedon Nov 22, 2022
Works on
mainfor me.fdncred commentedon Nov 22, 2022
I believe this is the PR that changed this functionality. The intent Dan was going for was to have the arrow keys be the menu navigation instead of the tab key by default.
This is how you can circumvent this behavior. Use a keybinding like this one.
and I have
completion_menudefined in mymenussection of theconfig.nudefined this way.mo8it commentedon Nov 22, 2022
Using Tab to navigate is like using Alt + Tab to navigate in the desktop. It is something natural for almost every terminal user. I don't think that it is something that people have to configure.
Also: Why does Shift + Tab work? It is not even consistent.
Please revert that change then. Thanks a lot!
fdncred commentedon Nov 22, 2022
FWIW, I agree with you and I think this one line change should be reverted. However, I was trying to point out to you that it could be configured to act like you want it to now so you don't have to wait and see if it eventually gets reverted or not.
mo8it commentedon Nov 22, 2022
Sorry if I was harsh. Thanks for helping ❤️
sholderbach commentedon Nov 23, 2022
I think the core intent of the underlying change was to support filling common prefixes while avoiding the surprising automatic completion of everything should your typing narrow the search space, but I think the broken
Tabaction is just an artifact of landing the config changes. We should resolve that first (and then polish the underlying completion setup) but I think reverting the change would cause another regression.valpackett commentedon Dec 8, 2022
IMO instead of the surprising automatic completion, the default should be like how most shells work: "if there's only one result available, Tab completes, otherwise Tab completes up to the common prefix and then cycles".
The keybinding thing above gets closer to that than ever before! Except for doing things when the menu is already open and you're typing more.
upsala1 commentedon Dec 21, 2022
I also encountered this issue today and fixed it by changing the mode of the keybind with
name: completion_menufrommode: emacstomode: [emacs vi_normal vi_insert]. I am using vi mode and for the completion_previous keybind it was already set to the list including vi_normal and vi_insert. I hope this is somewhat clearamtoine commentedon Feb 8, 2023
i think i'm able to reproduce this in
nushellversion0.75.1on bea7ec3 👍dschrempf commentedon May 9, 2023
Hi! Cycling with the TAB key is still not working. For example
cd f <TAB>will not cycle throughfolder1,folder2, etc. I am using thevimode.fdncred commentedon May 9, 2023
I have no issues tabbing on the latest main branch (0.79.1) in Windows or Linux, haven't tried Mac yet.

amtoine commentedon May 9, 2023
just built the latest revision but this does not work on my end 🤔
my config
should be
2a484a3e7...╭────────────────────┬──────────────────────────────────────────╮
│ version │ 0.79.1 │
│ branch │ main │
│ commit_hash │ 0ea973b78b57bb01ae0b58ecd1c02fda21184043 │
│ build_os │ linux-x86_64 │
│ build_target │ x86_64-unknown-linux-gnu │
│ rust_version │ rustc 1.67.1 (d5a82bbd2 2023-02-07) │
│ rust_channel │ 1.67.1-x86_64-unknown-linux-gnu │
│ cargo_version │ cargo 1.67.1 (8ecd4f20a 2023-01-10) │
│ build_time │ 2023-05-07 10:44:01 +02:00 │
│ build_rust_channel │ release │
│ features │ default, zip │
│ installed_plugins │ │
╰────────────────────┴──────────────────────────────────────────╯
dschrempf commentedon May 9, 2023
My
config.nufile is minimal:Could this be the issue? Do we need to configure tab cycling somehow? Maybe I missed something above. Cycling backwards with Shift+TAB works.
EDIT: Also, I am on version 0.79.0.
1 remaining item
fdncred commentedon May 9, 2023
Yes, it could be because there are keybindings and menus in the default_config.nu.
Namely, these keybindings
and this menu
I know for a fact, that for me, with
nu -n --no-std-libthe tab will not work for menu navigation and you have to use the arrow keys.dschrempf commentedon May 9, 2023
Isn't it weird to require special configuration to make tab cycling work?
fdncred commentedon May 9, 2023
Not if the default is to use arrow keys.
Having said that, we might should change our default.
dschrempf commentedon May 10, 2023
I see! Thanks for your help! Consider my vote on the TAB-cycle side 😄 !
EDIT: It is a bit weird though that back-cycling with Shift-TAB works out of the box. I also do not see any problem with using both ways to cycle as defaults.
dschrempf commentedon May 10, 2023
For reference: Using you menu and keybinding snippet, TAB cycling works.
I also noticed an inconsistency in the keybinding configuration: one list uses commas, the other doesn't. I am aware that both ways are valid syntax, but it is a bit confusing to use both syntaxes right next to each other, isn't it?
fdncred commentedon May 10, 2023
I'm sure it came from me copy-n-pasting it into my config from someon else's example years ago. I don't pay much attention to it but I'm also not against standardizing it.
I'm not sure if anyone would object to tab/shift-tab being the defaults if someone wants to take that on. I'm not sure if it's reedline's defaults or nushell's defaults that we're using right now.
Abdillah commentedon Jun 21, 2023
@fdncred In my case adding
{ send: menunext }config doesn't solve the problem in v0.80.0. Even with--no-config-file.fdncred commentedon Jun 21, 2023
I use tab all the time. I don't understand what the issue is. I use this in my config file.
menu
keybinding
Abdillah commentedon Jun 21, 2023
That actually works. But, I have double
let-envunfortunately. Thanks!Abdillah commentedon Jun 21, 2023
Also, for everyone, this should works when nushell generate default configuration for us.
The
--no-config-fileindeed remove the tab completion.And I vote for Tab as default because it has minimal movement (than arrow key).
mpizenberg commentedon Sep 3, 2023
I'd also be interested in having support for tab cycling by default. I like my config files clean and as small as possible.
amtoine commentedon Sep 3, 2023
this missing feature has annoyed me enough 😆
can you check if #10199 solves this? 😇
support tab completion cycling (#10199)