Giter VIP home page Giter VIP logo

Comments (9)

Alexey-T avatar Alexey-T commented on July 26, 2024

maybe it helps?

ed.set_prop(PROP_LAST_LINE_ON_TOP, ..)

@JairoMartinezA @kvichans @MiroslavMatas You may want to test this plugin (use "Install from Git")

from cuda_exterminal.

veksha avatar veksha commented on July 26, 2024

ctrl+Up/Down is native feature of Editor/Memo? it scrolls memo and keeps caret in the view?
I can implement custom scrolling or maybe it's better to just call self.screen.refresh_caret() on ctrl+Up/Down keys.

from cuda_exterminal.

Alexey-T avatar Alexey-T commented on July 26, 2024

ctrl+Up/Down is native feature of Editor/Memo?

yes

it scrolls memo and keeps caret in the view?

not sure it always keeps.
Screenshot from 2022-07-01 21-25-34

from cuda_exterminal.

Alexey-T avatar Alexey-T commented on July 26, 2024

I can implement custom scrolling or maybe it's better to just call

maybe use ed.set_prop(PROP_LAST_LINE_ON_TOP, ..)

from cuda_exterminal.

veksha avatar veksha commented on July 26, 2024

maybe use ed.set_prop(PROP_LAST_LINE_ON_TOP, ..)

I can enable it. But it will do nothing to caret, it will just insert empty space at the bottom.
self.memo.set_prop(PROP_LAST_LINE_ON_TOP, True)

from cuda_exterminal.

Alexey-T avatar Alexey-T commented on July 26, 2024

it must be False! so user won't scroll the text after empty space

from cuda_exterminal.

veksha avatar veksha commented on July 26, 2024

it is already False (it is not configured at all, i mean).
empty lines that are trailing below the text is a minor problem.

caret can also be ABOVE the correct place (if you press ctrl-up).
but caret placement is something not that important. there is a screen.cursor variable that tracks of real cursor position.
as soon as you start typing text it will snap to correct location.
not big deal, i think.

from cuda_exterminal.

Alexey-T avatar Alexey-T commented on July 26, 2024

Ok

from cuda_exterminal.

veksha avatar veksha commented on July 26, 2024

didn't know that it obeys global option show_last_line_on_top if not explicitly set in the code.
you probably have it enabled globally. I have it disabled in Options Editor Lite.

from cuda_exterminal.

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.