Git Product home page Git Product logo

Comments (6)

gizak avatar gizak commented on August 17, 2024

Can you be more specific? (like rolling log?)

from termui.

synthesizerpatel avatar synthesizerpatel commented on August 17, 2024

@gizak While I'm not the original requestor, my interest in the feature as you describe it is what brought me here.

I noticed that you were able to get the 'list' to animate randomly in theme.go which got me thinking about using something like https://github.com/hpcloud/tail to tail a 'live' log file and then present it in a box that would only show the last nth lines, updating the window when new lines are read.

Python's urwid has a similar widget called a ListWalker (example https://github.com/wardi/urwid/blob/master/examples/edit.py#L38)

It seems like a nontrivial task to implement all the elements that would make a log window (and beyond my current go capabilities, I'm new) - so I'm not expecting anything by posting this. Just wanted to say that if that's not what the OP is requesting, I think it should be. ;)

from termui.

ns-cweber avatar ns-cweber commented on August 17, 2024

@soloradish @synthesizerpatel Late to the party, but I believe I just implemented this yesterday. Check out my project and let me know if that widget (the primary one in the application) is what you had in mind.

from termui.

mikepea avatar mikepea commented on August 17, 2024

@ns-cweber you might also want to look at my project - https://github.com/mikepea/go-jira-ui - which also has a less-like UI implemented via the List handler. Would be good to chat about where we're at and finding some common patterns :)

from termui.

ns-cweber avatar ns-cweber commented on August 17, 2024

@mikepea That looks very much like what I'd like to work toward (specifically with a cursor) though I got a couple of panics on resize (specifically resizing to be very small and going from full-screen to floating window in OS X). I'll take a look at your implementation.

from termui.

mikepea avatar mikepea commented on August 17, 2024

Yeah, that seems to happen when a window is resized quickly / drastically - i've not gotten to the bottom of it yet. My email address is [email protected] if you want to chat out-of-band.

from termui.

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.