Comments (7)
In the pager, Enter goes by line, Space or Tab go by page, and d goes by half-page.
Thanks for your tip, How I missed it after years ! But in my case after tried several Windows/Linux machines only
Space
go by page works.
The keys I listed are for Clink.
In bash Space or Y print another page, and Enter print another line.
I added a to-do item in Clink to explore feasibility of supporting external pagers like less
. If you want to suggest that engagement in bash, contact the bash project and submit the suggestion there.
And I'll add ?
to print help in the pager prompt in Clink.
After all your suggestions I think it's enough for my work, no need to add option to remove recursion at the moment.
Ok. If you identify other tweaks or adjustments that could further improve the experience, please let me know.
from clink-completions.
The keys I listed are for Clink.
Doh! But while making an improvement a while ago, I accidentally disabled the Clink completion-pager enhancements.
I'm re-activating them. 😳
from clink-completions.
git status
is recursive. It's possible to rewrite the match generator to counteract that, but there are some benefits to the way it's currently behaving. And while bash-completion
might not list them recursively, some other completion libraries do list them recursively, so it seems that both ways are desirable to different people.
Can I ask some questions to help me better understand the scenario, and explore some possibilities that might be useful?
- Can you describe more about "makes the output flooded"? How many files are listed? Is it 100 or less? Does it make the screen scroll?
- What key did you press after
git add
, and what command is it bound to? Did you press Tab, and is Tab bound tocomplete
? - If so, would you be interested in configuring
completion-query-items
orcompletion-auto-query-items
in the .inputrc file to prompt first before listing the completions? For my own use, I have them set to50
andon
, respectively. - Would configuring
page-completions
in the .inputrc file help? It'son
by default, so when a lot of completions are listed it should at least be pausing at each screenful, unless that's been overridden.
from clink-completions.
Can you describe more about "makes the output flooded"? How many files are listed? Is it 100 or less? Does it make the screen scroll?
I'm working on a middle sized project with about 150 .c
files, it makes the output scroll.
e:\code\Z3GatewayHost>git add
Display all 453 possibilities? (y or n)
Of cause I should add build output to .gitignore
, which reduce the output to less than 50.
What key did you press after git add , and what command is it bound to? Did you press Tab, and is Tab bound to complete?
I pressed Tab
, I didn't change Tab
behavior in .inputrc
, I think it's complete
by default.
would you be interested in configuring completion-query-items or completion-auto-query-items in the .inputrc file to prompt first before listing the completions
I've completion-auto-query-items on
, indeed it helped a lot.
Would configuring page-completions in the .inputrc file help?
I've it set to on
. The built-in pager of Display all * possibilities
is not so useful as it can only go down line by line with Enter
key, same for bash
but seems nobody willing to work on it https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1691314
from clink-completions.
Of cause I should add build output to
.gitignore
, which reduce the output to less than 50.
Yes. That's important regardless of how completions are listed.
The built-in pager of
Display all * possibilities
is not so useful as it can only go down line by line withEnter
key, same forbash
In the pager, Enter goes by line, Space or Tab go by page, and d goes by half-page.
but seems nobody willing to work on it https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1691314
Has anyone actually contacted the bash maintainer to suggest the ability to page into less
? The cited post is a complaint posted in a random spot on the internet. Complaining into the ether isn't the same as sending a suggestion directly to an author.
from clink-completions.
Also, the clink-select-complete
command displays an interactive scrollable and filter-able list to choose from. And using fzf (and the fzf integration script in clink-gizmos) can use fzf for another kind of interactive scrollable and fuzzy filtered list to choose from.
These all seem like even more functional and convenient solutions than removing the recursive list. Do any of these alternatives seem helpful? Do you still want recursion to be removed?
If you still want it removed, then I can add a setting to configure it that way, but I want it on by default.
from clink-completions.
In the pager, Enter goes by line, Space or Tab go by page, and d goes by half-page.
Thanks for your tip, How I missed it after years ! But in my case after tried several Windows/Linux machines only Space
go by page works.
the
clink-select-complete
command displays an interactive scrollable and filter-able list to choose from
Indeed it's a nice thing to have.
These all seem like even more functional and convenient solutions than removing the recursive list. Do any of these alternatives seem helpful
After all your suggestions I think it's enough for my work, no need to add option to remove recursion at the moment.
from clink-completions.
Related Issues (20)
- fastboot.lua and scrcpy.lua misbehaving too HOT 1
- Unwanted behaviour for `adb` and `scrcpy` completions. HOT 6
- git.lua:155: attempt to call upvalue 'w' (a nil value) HOT 8
- Run git pull on script folders after update HOT 3
- Error when completing ssh HOT 3
- Improve winget completion HOT 9
- openssl.lua:1179: attempt to compare number with string HOT 1
- Error "module 'path' not found" on fresh install. HOT 8
- Sudo Clink version mismatch HOT 6
- Winget completion throws error HOT 8
- Completion for Nuke.Build HOT 12
- git add completions are git root relative instead of cwd relative HOT 2
- Git add tries to add already added (renamed/moved) file HOT 2
- RFE: add completions for ping HOT 10
- Bug: completions from known_hosts for ssh and ping on non-default port HOT 5
- The new git_prompt.lua in 0.4.9 breaks custom non-cmder prompt HOT 6
- Add completions for arduino-cli HOT 1
- Add completions for go and rust tools
- Test error HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clink-completions.