Page 1 of 1

stateful shortcuts

Posted: Tue Sep 23, 2014 8:05 am
by Thomas Lohrum
Example:

  • create a new note
  • press arrow-down // set caret to notes text
  • press Ctrl+U
  • write "Hello CintaNotes"
  • press Home
  • press Enter
  • press Enter
  • press arrow-up
  • press arrow-up
  • write "title"
  • press Enter
  • press Ctrl+U
  • press Enter
  • press Ctrl+L
  • write some text

The text still is underlined. The format state is not in sync with format of existing text.

Thomas

Re: stateful shortcuts

Posted: Tue Sep 23, 2014 8:10 am
by CintaNotes Developer
I confirm, Thomas, thanks!
Will be fixed in 2.8

Re: stateful shortcuts

Posted: Thu Sep 25, 2014 12:02 pm
by Thomas Lohrum
I confirm this is fixed with 2.8 beta 1. Thanks a lot!

Thomas

Re: stateful shortcuts

Posted: Thu Sep 25, 2014 10:05 pm
by Thomas Lohrum
Sorry, but there is still an issue with this. I have an existing note (not just a test-note) which still gives me an error. I press Enter in the middle of the text (which itself is underlined) to create space for new text. I write new text which gets underlined. I press Enter and Ctrl+U and write more text, which still gets the underlined format, but it should not.

Thomas

Re: stateful shortcuts

Posted: Fri Sep 26, 2014 2:36 am
by CintaNotes Developer
Thomas Lohrum wrote:Sorry, but there is still an issue with this. I have an existing note (not just a test-note) which still gives me an error. I press Enter in the middle of the text (which itself is underlined) to create space for new text. I write new text which gets underlined. I press Enter and Ctrl+U and write more text, which still gets the underlined format, but it should not.


Can't reproduce this I'm afraid. If it is only reproducible in an old note, then probably you could send me the note's xml?

Re: stateful shortcuts

Posted: Fri Sep 26, 2014 10:14 pm
by Thomas Lohrum
CintaNotes Developer wrote:Can't reproduce this I'm afraid. If it is only reproducible in an old note, then probably you could send me the note's xml?

Sent via private mail.

Thomas

Re: stateful shortcuts

Posted: Tue Sep 30, 2014 5:50 am
by CintaNotes Developer
Got it, thanks. Reply is coming up.

Re: stateful shortcuts

Posted: Tue Oct 21, 2014 3:40 pm
by Thomas Lohrum
Hi Alex,

this one just does not work right. Last time we discussed the issue, we came to the conclusion, that this problem would be related to "old" notes only. It is not! I have created a new note. The text has a heading with bold and underline format. The text below has no formatting. I set the caret to the top press ENTER twice. Write a new heading which also gets the bold + underline. That is fine. Now i press Enter, Ctrl+B, Ctrl+U, press Enter and start writing text. This is also fine. If however i press Ctrl+L right before i start writing text, it will have the bold + underline format, which is wrong.

Thomas

Re: stateful shortcuts

Posted: Wed Oct 22, 2014 5:31 am
by CintaNotes Developer
Thomas Lohrum wrote:this one just does not work right. Last time we discussed the issue, we came to the conclusion, that this problem would be related to "old" notes only. It is not! I have created a new note. The text has a heading with bold and underline format. The text below has no formatting. I set the caret to the top press ENTER twice. Write a new heading which also gets the bold + underline. That is fine. Now i press Enter, Ctrl+B, Ctrl+U, press Enter and start writing text. This is also fine. If however i press Ctrl+L right before i start writing text, it will have the bold + underline format, which is wrong.


Thomas I do everything like you say, but I can't get bold+underline format..
Please check what I do and correct if necessary:
1) Create new note
2) Press Ctrl+B, Ctrl+U, write "Heading1", press Enter
3) Press Ctrl+B, Ctrl+U, write "plain text"
4) Save and close note
5) Reopen note
6) Place caret in the end of the "Heading1" line
7) Press Enter twice
8) Write a new heading "Heading2"
9) Press Enter, Ctrl+B, Ctrl+U, Ctrl+L, start writing text
10) According to you, the text is bold or underline, but for me it's not (only the bullet is bold, but this is a known richedit bug).

Thanks!

Re: stateful shortcuts

Posted: Wed Oct 22, 2014 7:01 am
by Thomas Lohrum
CintaNotes Developer wrote:
Thomas Lohrum wrote:this one just does not work right. Last time we discussed the issue, we came to the conclusion, that this problem would be related to "old" notes only. It is not! I have created a new note. The text has a heading with bold and underline format. The text below has no formatting. I set the caret to the top press ENTER twice. Write a new heading which also gets the bold + underline. That is fine. Now i press Enter, Ctrl+B, Ctrl+U, press Enter and start writing text. This is also fine. If however i press Ctrl+L right before i start writing text, it will have the bold + underline format, which is wrong.
Thomas I do everything like you say, but I can't get bold+underline format..

I can not reproduce either :( I am aware of the fact, that the issue can affect new notes too. This is because of the internal state of the text. We had this discussion with MS Word too. It's hard to reproduce. I'll keep an eye on it and will try to provide a better example.

Thomas

Re: stateful shortcuts

Posted: Wed Oct 22, 2014 11:07 am
by CintaNotes Developer
Thomas Lohrum wrote:I can not reproduce either :( I am aware of the fact, that the issue can affect new notes too. This is because of the internal state of the text. We had this discussion with MS Word too. It's hard to reproduce. I'll keep an eye on it and will try to provide a better example.

Ok, thanks.

Re: stateful shortcuts

Posted: Mon Nov 03, 2014 10:36 pm
by Thomas Lohrum
I have come up with a simple reproducible example. This is at least one issue affecting stateful shortcuts.

Example:
  • create new note
  • set caret to first line of text
  • write a heading, for example "Heading"
  • press Ctrl+Shift+U
  • press Enter
  • press Ctrl+U
  • write any text

The text will be underlined, but it shouldn't.

Thomas

Re: stateful shortcuts

Posted: Tue Nov 04, 2014 5:58 am
by CintaNotes Developer
Yes, I can reproduce this, thanks Thomas!
Regsitered in the tracker and will be fixed soon.

Re: stateful shortcuts

Posted: Tue Nov 04, 2014 9:13 am
by Thomas Lohrum
CintaNotes Developer wrote:Yes, I can reproduce this, thanks Thomas!
Regsitered in the tracker and will be fixed soon.

Maybe the issue is not as easy to fix, as it is reproducible. This is because the paragraph shortcuts don't take part on the stateful handling. After all the issue is caused by pressing ENTER which applies the current state to the next paragraph as well. Nevertheless, the example is a use-case that i actually use quite often.

Thomas

Re: stateful shortcuts

Posted: Wed Nov 05, 2014 12:17 pm
by CintaNotes Developer
I don't think it will be difficult to fix, but tomorrow I will ask Denis who manages text formatting issues.