Coder Social home page Coder Social logo

Comments (9)

davidbannon avatar davidbannon commented on June 8, 2024

Hi Ben !
Yeah, setting the cursor is an issue with normal tomboy notes too. Tomboy it self saves last used position and restores it. Thats on the ToDo list for tomboy-ng. But in the case of an import, that won't work so, yeah, either beginning or end ?

from tomboy-ng.

benjbrandall avatar benjbrandall commented on June 8, 2024

Ok cool! I couldn't figure out where the loading cursor function was setting the load state, is there something as simple as setting it to focus on the first line? If so, would you mind showing where in the code?

from tomboy-ng.

davidbannon avatar davidbannon commented on June 8, 2024

Right now, we are not setting the cursor position at all. It just happens to end up at end of file at load.
It should be done, I believe, using one of two methods -

  1. something like this - KMemo1.ExecuteCommand(ecCopy); assuming there is a command to move the cursor to to a specific position (instead of ecCopy which is obviously for copying).
  2. Setting the selection begin and end to position 1 or is that 0 ? KMemo.SelStart :=

Davo

from tomboy-ng.

benjbrandall avatar benjbrandall commented on June 8, 2024

Solution: #54

from tomboy-ng.

benjbrandall avatar benjbrandall commented on June 8, 2024

After a bit of use, this seems wrong. It fires on all notes and is annoying for new notes (cursor before the title itself). Will check again

from tomboy-ng.

davidbannon avatar davidbannon commented on June 8, 2024

OK, fixed with patch from Ben, all good.

from tomboy-ng.

aguador avatar aguador commented on June 8, 2024

A regression? I am seeing this regularly in 0.27 Gtk, annoying because I have a series of journal-style notes in reverse chronological order.

from tomboy-ng.

davidbannon avatar davidbannon commented on June 8, 2024

Hmm, Ben's original report related to Single Note Mode, is that where you see this problem ?

The cursor should end up on the first non-title line. Mine does, in both Single Note Mode and normal mode. What happens is that content is loaded into kmemo and that leaves the cursor at the end. After loading, I move it to top of document.

I actual fact, the Tomboy format has a field that stores the last position of the cursor and it should be restored to your last typed position on load. One day ...

When you say "seeing this regularly", do you mean always, sometimes, occasionally ?

Davo

from tomboy-ng.

aguador avatar aguador commented on June 8, 2024

Bah, did not read the original post carefully, just wanted to avoid duplicating a problem. I see this in regular mode always. This happened in a prior release in regular mode as well, but I do not recall which. It was a while back. I just double checked with 0.27 and a couple of notes in my Mageia 7 machine.

from tomboy-ng.

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.