Replies: 1 comment 7 replies
-
There is not, no.
It'll only look deeper for In other cases, the normal file completions will only look at one component without recursion.
It probably isn't, because that's about what happens when you run
Frankly: This isn't the sort of customization we do. It's a weird knob for extremely special cases that most people won't need, and even those who need it would probably not find it. The general solution for this is #23 - simply making completions not block. |
Beta Was this translation helpful? Give feedback.
-
So, tab completion is great most of the time, when poking around the filesystem is very cheap, as Linux's VFS cache usually ensures it is. However, sometimes I encounter conditions where it is not cheap. These include:
In these cases, pressing tab a few times to refine a filename completion can cause fish to make syscalls that incur high costs.
Ideally, there'd be a way to stop the file completion looking deeper than the current directory unless the last character is a path separator. It should probably be a user defined function to query whether completing through a particular path is allowed, because of the many and varied things that might make completion ill-advised.
This is similar to issue #4402, but my concern is about the performance implications of deep completion rather than the presentation.
P.S. The borg backup thing might be caused by PR #7586.
Beta Was this translation helpful? Give feedback.
All reactions