Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 38862f8

Browse files
committed
fix(plugins/plugin-bash-like): tab completion completes with notebook title rather than notebook file name
Fixes #5561
1 parent ac476a6 commit 38862f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/plugin-bash-like/fs/src/lib/tab-completion.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ function findMatchingFilesFrom(files: GlobStats[], dirToScan: string, last: stri
5252
return {
5353
mode: 'raw',
5454
content: matches.map(matchStats => {
55-
const match = matchStats.nameForDisplay
55+
const match = matchStats.name
5656
const completion = lastIsDir ? match : match.substring(partial.length)
5757

5858
// show a special label only if we have a dirname prefix
59-
const label = lastHasPath ? basename(match) : undefined
59+
const label = lastHasPath ? basename(matchStats.nameForDisplay) : undefined
6060

6161
if (matchStats.dirent.isDirectory) {
6262
return { completion: `${completion}/`, label: label ? `${label}/` : undefined }

0 commit comments

Comments
 (0)