GithubHelp home page GithubHelp logo

[request] use bat instead of cat about kb HOT 6 CLOSED

gnebbia avatar gnebbia commented on August 28, 2024
[request] use bat instead of cat

from kb.

Comments (6)

gnebbia avatar gnebbia commented on August 28, 2024 1

Actually kb does not use cat, it just prints the artifacts line by line without calling an external program.

from kb.

gnebbia avatar gnebbia commented on August 28, 2024 1

anyway you could try to setup a function in your .bashrc or .profile file, such as:

function kbvbat(){ kbv "$1" | bat; }

Of course rename the function as you wish.

from kb.

gnebbia avatar gnebbia commented on August 28, 2024 1

Sorry I don't understand the issue, I tried and I am scrolling just fine, did you try it?
The program does not enforce the use of cat or any other pager.
Try the above solution and let me know.

from kb.

xscode-auto-reply avatar xscode-auto-reply commented on August 28, 2024

Thanks for opening a new issue. The team has been notified and will review it as soon as possible.
For urgent issues and priority support, visit https://xscode.com/gnebbia/kb

from kb.

pfr-dev avatar pfr-dev commented on August 28, 2024

function kbvbat(){ kbv "$1" | bat; }

This does pipe the output through bat, however it exits out to a prompt meaning that you still cannot use the keyboard to scroll up/down.

from kb.

pfr-dev avatar pfr-dev commented on August 28, 2024

Nevermind, I got it working. Thanks

from kb.

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.