GithubHelp home page GithubHelp logo

Comments (8)

tobywhughes avatar tobywhughes commented on May 28, 2024

There could be a secondary key bind that allows the user to scroll through the post manually. The amount of scroll increases as they go down the post and resets if another post is reached.

Or we could have to completely separate key binds. One for scrolling post by post and the other for scrolling down line by line.

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

I like the second idea. Would be tricky to implement though, based on how I wrote the page scrolling.

from rtv.

tkajder avatar tkajder commented on May 28, 2024

I tinkered around with the code and got very basic scrolling using 'y' and 'u' as scroll up and down. Curses made this pretty basic:

# Setting scrolling support
self._content_window.scrollok(True)

# Scrolling the content
self._content_window.scroll(1)
self._content_window.refresh()

However since the content is only drawn to what is visible on the screen scrolling does not do much as of yet. I'll try tinkering with the drawing method when I get time.

from rtv.

Brobin avatar Brobin commented on May 28, 2024

In addition, posts that don't fit on the screen aren't displayed at all. For example, when nagivating to this post, we simply see (Not enough space to display), no comments or anything. I think it should show at least some of the content and the comments.

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

@Brobin Fixed in ca41b77

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

Closing this because it would require a major rewrite of how screen paging is currently implemented. If anybody has additional input or ideas about this, feel free to open a new issue.

from rtv.

pelegm avatar pelegm commented on May 28, 2024

Perhaps an option to open a post in vim? (read-only mode)

from rtv.

michael-lazar avatar michael-lazar commented on May 28, 2024

Actually this feature was added here #93. It uses less instead of vim though.

from rtv.

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.