Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ target/
*.gif
*.svg
docker_build/
.vscode/
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,13 @@ I'd recommend [setting up a mouse mode widget](#mouse-mode-widget) to know when
Flyline extends Bash's tab completion feature in many ways.
Note that you will need to have [set up completions in normal Bash first](https://github.com/scop/bash-completion).


### Intellisense style auto suggestions
Flyline can automatically start tab completion suggestions as you type. This demo shows auto-started suggestions, confirming a suggestion, dismissing with Escape, and submitting the command.

[![Auto tab completion demo](https://github.com/HalFrgrd/flyline/releases/download/assets/demo_auto_tab_completion.gif)](https://github.com/HalFrgrd/evp)


### Fuzzy tab completion search
When you're presented with suggestions, you can type to fuzzily search through the list:

Expand All @@ -383,6 +390,7 @@ If a suggestion contains a tab character, flyline displays the contents after th

[![Tab completion easing demo](https://github.com/HalFrgrd/flyline/releases/download/assets/demo_tab_completion_easing.gif)](https://github.com/HalFrgrd/evp)


ANSI styling is supported in descriptions: any ANSI colour/style escape codes embedded in the tab-separated description text will be rendered as ratatui styled spans.

Descriptions for files are the time since last modified.
Expand Down Expand Up @@ -430,6 +438,7 @@ if [[ -n "${COPILOT_TERMINAL:-}" ]]; then
RPS1=''
flyline set-cursor --backend terminal --interpolate none
flyline editor --show-inline-history false
flyline suggestions --auto-suggest false
fi
```
and set this in your `settings.json`:
Expand Down
8 changes: 7 additions & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ target "demo-tab-completion-easing-extracted-gif" {
dockerfile = "docker/demo_tab_completion_easing.Dockerfile"
}

target "demo-auto-tab-completion-extracted-gif" {
inherits = ["_demo-base"]
dockerfile = "docker/demo_auto_tab_completion.Dockerfile"
}

group "demos" {
targets = [
"demo-overview-extracted-gif",
Expand All @@ -211,7 +216,8 @@ group "demos" {
"demo-ls-colors-extracted-gif",
"demo-fuzzy-history-extracted-gif",
"demo-inline-history-extracted-gif",
"demo-tab-completion-easing-extracted-gif"
"demo-tab-completion-easing-extracted-gif",
"demo-auto-tab-completion-extracted-gif"
]
}

Expand Down
8 changes: 8 additions & 0 deletions docker/demo_auto_tab_completion.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM demo-base AS gif-builder

COPY tapes/demo_auto_tab_completion.tape .

RUN faketime @1771881894 /home/john/bin/evp demo_auto_tab_completion.tape

FROM scratch
COPY --from=gif-builder /app/*.svg /
Loading