Giter Site home page Giter Site logo

Comments (8)

pbek avatar pbek commented on June 30, 2024 1

In Kate it's called "Overwrite Mode", but I haven't researched how they are doing it in a QPlainTextEdit.

from qownnotes.

pbek avatar pbek commented on June 30, 2024 1

QOwnNotes uses a QPlainTextEdit and there is just https://doc.qt.io/qt-6/qplaintextedit.html#overwriteMode-prop, that can be utilized, so I'll use that.

from qownnotes.

pbek avatar pbek commented on June 30, 2024 1

Great, thank you for testing!

from qownnotes.

pbek avatar pbek commented on June 30, 2024

And doing that in QOwnNotes will clash with the cursor width setting. So if someone would implement that in QOwnNotes, extra attention would need to be paid to that setting.

from qownnotes.

nalsuriv avatar nalsuriv commented on June 30, 2024

Having grepped through the Kate sources, there is no such thing as "QPlainTextEdit". There is, however, a class named "QTextEdit". Also, as far as I can tell, there is no explicitly defined cursor width for the overwrite mode, which leads me to believe it gets redefined not within the editor itself, but within some underlying Qt library. That would mean that no matter the width of the character-to-be-replaced, the cursor width adjusts automatically so as to underline all of it (which can be proven by feeding the editor a mix of single-width characters (letters and numbers) and double-width characters (Kanji, CJK)).

from qownnotes.

pbek avatar pbek commented on June 30, 2024

24.5.9

  • When you now press Insert, in the note text edit, overwrite mode will be toggled
    to directly allow overwriting the current text (for #3034)

from qownnotes.

pbek avatar pbek commented on June 30, 2024

There now is a new release, could you please test it and report if it works for you?

from qownnotes.

nalsuriv avatar nalsuriv commented on June 30, 2024

Works as intended, thank you! Closing the issue as resolved.

from qownnotes.

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.