Giter Site home page Giter Site logo

Comments (7)

chrisant996 avatar chrisant996 commented on June 3, 2024 1

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.

chrisant996 avatar chrisant996 commented on June 3, 2024 1

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.

chrisant996 avatar chrisant996 commented on June 3, 2024

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 to complete?
  • If so, 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? For my own use, I have them set to 50 and on, respectively.
  • Would configuring page-completions in the .inputrc file help? It's on 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.

HiFiPhile avatar HiFiPhile commented on June 3, 2024

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.

chrisant996 avatar chrisant996 commented on June 3, 2024

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 with Enter key, same for bash

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.

chrisant996 avatar chrisant996 commented on June 3, 2024

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.

HiFiPhile avatar HiFiPhile commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.