Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add UX to cycle through completions in the REPL #2463

Merged
merged 27 commits into from
Jul 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
989e2b4
feat: add UX to cycle through completions
Snehil-Shah Jun 26, 2024
1d6ad40
Apply suggestions from code review
kgryte Jun 26, 2024
e8e0e9f
Apply suggestions from code review
Snehil-Shah Jun 27, 2024
535986f
fix: avoid navigating hidden completions
Snehil-Shah Jun 28, 2024
4babb98
refactor: use `\n` instead of `\r\n`
Snehil-Shah Jun 28, 2024
755ddee
fix: abnormal behavior with ENTER
Snehil-Shah Jun 28, 2024
2fcb356
fix: duplicate line events
Snehil-Shah Jun 28, 2024
9de549d
fix: incorrect height
Snehil-Shah Jun 28, 2024
2b1f666
fix: bug with ENTER
Snehil-Shah Jun 28, 2024
7510ba9
test: add test case
Snehil-Shah Jun 28, 2024
da8f7ee
test: fix brittle test cases
Snehil-Shah Jun 28, 2024
63ce461
feat: allow sustaining the completions panel
Snehil-Shah Jun 29, 2024
d4afb81
fix: reorder keypress handlers according to precedence
Snehil-Shah Jun 29, 2024
858eddb
fix: make it receptive to SIGINT events
Snehil-Shah Jun 29, 2024
6fd48a8
fix: reorder keypress handlers according to precedence
Snehil-Shah Jun 29, 2024
5bb319c
feat: allow navigating the line when navigating
Snehil-Shah Jun 29, 2024
7f4eac7
refactor: clean logic and avoid unnecessary re-rendering
Snehil-Shah Jun 29, 2024
ddcd3d6
test: remove outdated test
Snehil-Shah Jun 29, 2024
494f845
fix: don't close when completer is already closed
Snehil-Shah Jun 29, 2024
141bfe4
test: add test case for live completions
Snehil-Shah Jun 30, 2024
5410b2b
fix: incorrect logic
Snehil-Shah Jul 1, 2024
3677b2a
fix: incorrect keypress handlers
Snehil-Shah Jul 1, 2024
e53f691
test: update test names
Snehil-Shah Jul 1, 2024
4b8a752
docs: fix jsdoc
Snehil-Shah Jul 1, 2024
71b5c4c
fix: update after inserting a completion
Snehil-Shah Jul 1, 2024
e862980
Apply suggestions from code review
kgryte Jul 1, 2024
97329bf
Apply suggestions from code review
kgryte Jul 1, 2024
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
Prev Previous commit
Apply suggestions from code review
Signed-off-by: Athan <kgryte@gmail.com>
  • Loading branch information
kgryte committed Jul 1, 2024
commit 97329bf8d77eed7a71051f7d2de224fab9d557e0
8 changes: 4 additions & 4 deletions lib/node_modules/@stdlib/repl/lib/completer_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ setNonEnumerableReadOnly( CompleterEngine.prototype, '_isDisplayable', function
});

/**
* Navigate up the completions grid.
* Navigates up the completions grid.
*
* @private
* @name _navigateUp
Expand Down Expand Up @@ -490,7 +490,7 @@ setNonEnumerableReadOnly( CompleterEngine.prototype, '_navigateUp', function nav
});

/**
* Navigate down the completions grid.
* Navigates down the completions grid.
*
* @private
* @name _navigateDown
Expand All @@ -513,7 +513,7 @@ setNonEnumerableReadOnly( CompleterEngine.prototype, '_navigateDown', function n
});

/**
* Navigate to the left in the completions grid.
* Navigates to the left in the completions grid.
*
* @private
* @name _navigateLeft
Expand All @@ -537,7 +537,7 @@ setNonEnumerableReadOnly( CompleterEngine.prototype, '_navigateLeft', function n
});

/**
* Navigate to the right in the completions grid.
* Navigates to the right in the completions grid.
*
* @private
* @name _navigateRight
Expand Down
Loading