https://github.com/joknarf/complete-ng
bash completion nextgen
https://github.com/joknarf/complete-ng
bash completion interactive menu nextgen plugin
Last synced: 4 months ago
JSON representation
bash completion nextgen
- Host: GitHub
- URL: https://github.com/joknarf/complete-ng
- Owner: joknarf
- License: mit
- Created: 2024-02-03T09:27:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-16T17:36:44.000Z (about 2 years ago)
- Last Synced: 2025-01-07T15:43:00.634Z (over 1 year ago)
- Topics: bash, completion, interactive, menu, nextgen, plugin
- Homepage:
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - complete-ng - Replace ZSH completion multiple choices output by interactive selector menu, browse directories inside the menu, view/edit files directly from the menu. (Completions / ZSH on Windows)
- fucking-awesome-zsh-plugins - complete-ng - Replace ZSH completion multiple choices output by interactive selector menu, browse directories inside the menu, view/edit files directly from the menu. (Completions / ZSH on Windows)
README
[](https://joknarf.github.io/joknarf-tools)
[]()
[](https://shields.io/)
# complete-ng
bash/zsh completion nextgen
* replace bash/zsh completion multiple choices output by interactive selector menu
* browse directories inside the menu
* view/edit files directly from the menu
* single Tab on command line displays choices
* launch menu from empty command line with Tab to browse files/directories
for a complete next-gen shell experience, see also this project:
* [joknarf/shell-ng](https://github.com/joknarf/shell-ng):
* auto-transportable dynamic PS1 prompt (you can see it in the demo)
* completion nextgen (this plugin)
* replacement of shell history command search (CtrlR or Esc/) with interactive menu
* directory history navigation with arrows + interactive menu
## usage
```
git clone https://github.com/joknarf/complete-ng
source complete-ng/complete-ng.plugin.bash
or
source complete-ng/complete-ng.plugin.zsh
```
## example


## file/folder icons
As depending to your terminal font, the icons may not render correctly, you can choose the icons you want using environment variables, here are some sample of dir/file icons, choose the ones fitting your terminal font (use nerd version of your font to have more choice):
```
SELECTOR_FOLDER_ICON='' # 🖿 🗀 📁 📂 🖿
SELECTOR_FILE_ICON='' # 🗎 🗋 🖹
```
## keys in menu
|key | action |
|--------------------------------|-------------------------------------------------------|
|▼ | select next item |
|▲ | select prev item |
|End | select last item |
|Home | select first item |
|▶ | browse selected directory |
|◀ | browse parent directory |
|F3 | view file using PAGER (or less) |
|F4 | edit file usint EDITOR (or vi) |
|Shift▼/PgUp/CtlF| next page |
|Shift▲/PgDn/CtlB| previous page |
|Esc | exit |
|CtrlA | use all screen to display menu |
|Enter/Tab | put selected item on command line |