Skip to content

completions/git: add filename completion to diff and checkout#617

Merged
fdncred merged 1 commit intonushell:mainfrom
Abdillah:patch-1
Sep 22, 2023
Merged

completions/git: add filename completion to diff and checkout#617
fdncred merged 1 commit intonushell:mainfrom
Abdillah:patch-1

Conversation

@Abdillah
Copy link
Copy Markdown
Contributor

No description provided.

@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Sep 22, 2023

Thanks

@fdncred fdncred merged commit 9d0a182 into nushell:main Sep 22, 2023
@Abdillah Abdillah deleted the patch-1 branch October 13, 2023 22:10
fdncred pushed a commit that referenced this pull request Nov 14, 2023
…666)

Continuing effort on #617
which only auto-completes path relative to git root.

Before,

```
$ cd src/

$ git add <tab>
src/main.rs    Modified
README.md      Untracked

$ git diff <tab>
src/main.rs
```

Now it displays,
```
$ cd src/

$ git add <tab>
main.rs           Modified
../README.md      Untracked

$ git diff <tab>
main.rs
```
maxim-uvarov pushed a commit to maxim-uvarov/nu_scripts_reduced_size that referenced this pull request Oct 12, 2024
…#666)

Continuing effort on nushell/nu_scripts#617
which only auto-completes path relative to git root.

Before,

```
$ cd src/

$ git add <tab>
src/main.rs    Modified
README.md      Untracked

$ git diff <tab>
src/main.rs
```

Now it displays,
```
$ cd src/

$ git add <tab>
main.rs           Modified
../README.md      Untracked

$ git diff <tab>
main.rs
```
maxim-uvarov pushed a commit to maxim-uvarov/nu_scripts_reduced_size that referenced this pull request Oct 13, 2024
…#666)

Continuing effort on nushell/nu_scripts#617
which only auto-completes path relative to git root.

Before,

```
$ cd src/

$ git add <tab>
src/main.rs    Modified
README.md      Untracked

$ git diff <tab>
src/main.rs
```

Now it displays,
```
$ cd src/

$ git add <tab>
main.rs           Modified
../README.md      Untracked

$ git diff <tab>
main.rs
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants