Beta 9 Bug: CTRL-Z can delete highlighter styles.

Martin Folley
Martin Folley Member Posts: 1,153 ✭✭

I cannot find this reported elsewhere ...

  1. create a 'new style' (I used a purple natural highlight and double red natural line)
  2. apply the style to some text
  3. apply the style again to some more text
  4. Press undo (ctrl-z)
  • The 'new style' is removed from the highlighter palette.
  • Where the 'new style' was applied, the text is now highlighted in a pale yellow natural highlighting, which I call the 'default'
  • The 'default' highlight can still be erased like a normal highlight.
  • The 'default' highlight can still be navigated using the arrows (a fantastic feature when going back over some text after a while)
  • The 'default' highlight is still stored when a resource is closed and opened.
  • The 'default' highlight seems to work in every way like a normal style except that it is not the Ghastly purple/red concoction that I created to test this bug.

Expected Behaviour: I would have expected ctrl-z to undo the last action (which was apply highlight). At the very least do nothing. It should not delete the new created style given that creating the style was not the last action.

I called the 'cream/yellow' highlight the 'default' because it gives the impression of the default behavior if a highlighting tag within a resource cannot find the original style.

BTW: This is the second time that I have typed this. Somehow I went backwards in my browser, and immediately coming forwards again left me with an empty description and subject. Is there a way to avoid this, or to recover the forum text?, or to stop the ability to navigate backwards from the keyboard?

Regards

Martin.

2017 15" MBP, iPad Pro

Comments

  • Rosie Perera
    Rosie Perera Member Posts: 26,194 ✭✭✭✭✭


    BTW: This is the second time that I have typed this. Somehow I went backwards in my browser, and immediately coming forwards again left me with an empty description and subject. Is there a way to avoid this, or to recover the forum text?, or to stop the ability to navigate backwards from the keyboard?

    Navigating away from a forum post that you haven't posted yet is a notorious way of losing all your work, in most online forums. I've done it so many times here I've lost count. You just need to train yourself not to accidentally do it, or at least if you're working on a long post, then every so often select all the text (Ctrl+A) and copy it to the clipboard (Ctrl+C) so you've got it as a backup if you accidentally forget and navigate away and lose it all. If that happens, you just paste it back in from your last backup point, and you're good to go. I always as a habit now copy the entire post to the clipboard immediately before clicking Post in case something hangs up on the server and the post doesn't go through and I lose everything.

  • Todd Phillips
    Todd Phillips Member Posts: 6,736 ✭✭✭

    I would have expected ctrl-z to undo the last action (which was apply highlight). At the very least do nothing. It should not delete the new created style given that creating the style was not the last action.

    Ah that explains my missing styles.  I sometimes use CTRL-Z without thinking (even though I know it doesn't work for highlighting).  I lost some styles this way.

    MacBook Pro (2019), ThinkPad E540

  • Melissa Snyder
    Melissa Snyder Member Posts: 4,702 ✭✭✭

    I created a new style, as you did, and applied it to text in my open resource. Before pressing Ctrl+Z, I clicked back in the resource panel to make it the active panel. When I pressed Ctrl+Z, nothing happened.  I created another new style, and this time I pressed Ctrl+Z right after selecting text and clicking on the new style in the Highlighting panel. This time the new style was deleted.

    So, it appears that you cannot undo highlight application, but you can undo the addition of a new style, if the highlighting panel is active when you press Ctrl+Z. Unfortunately, after undoing the addition of the new style, I pressed Ctrl+Y to redo the style, and Logos 4 crashed. I'll be reporting the crash to development. When that bug is fixed, you should be able to press Ctrl+Y to get your style back.

    Btw, I also found that if I applied a style that I created a week ago, even if the Highlighting panel was active, that style was not deleted, since I hadn't just added it.

    Thanks,
    Melissa

     

  • Melissa Snyder
    Melissa Snyder Member Posts: 4,702 ✭✭✭

    Unfortunately, after undoing the addition of the new style, I pressed Ctrl+Y to redo the style, and Logos 4 crashed. I'll be reporting the crash to development. When that bug is fixed, you should be able to press Ctrl+Y to get your style back.

    This has been fixed in 4.0b Beta 11.

This discussion has been closed.