CamelCase

Home Forums cherrytree CamelCase

Tagged: 

This topic contains 10 replies, has 3 voices, and was last updated by  mikeyww 9 months, 2 weeks ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #124703

    mikeyww
    Member

    Would be nice to be able to disable CamelCase, either globally or for a specific page or link.

    Mike

    #124707

    Cosmo
    Member

    Can you explain, what CamelCase means? English is not my primary language and I cannot make any sense out of this term.

    #124710

    mikeyww
    Member
    #124711

    Cosmo
    Member

    Thanks for answering. Now I understand, what this is, but I do not understand the question. If I want e. g.. to write CherryTree I have to do it explicitly, so what do you want to disable.

    #124715

    mikeyww
    Member

    When a CamelCase word matches any node’s name, the word is automatically linked to the node. I would like to disable this linking when desired, either globally, per node, or per link.

    Mike

    #124716

    Cosmo
    Member

    To my knowledge disabling the behavior for CamelCase node names is not possible – a case for a feature request. It seems, that at now you only have the option to write the word without CamelCase (= camelcase) and edit if afterwards or to remove the link afterwards.

    #124717

    eureka
    Member

    If it doesn’t happen too often one way of clearing the link is ..

    highlight the CamelCase link
    use keys .. Shift+Ctrl+R .. to remove formatting

    Correction ..

    I see that the link comes back after this when new line is hit.

    • This reply was modified 9 months, 2 weeks ago by  eureka.
    • This reply was modified 9 months, 2 weeks ago by  eureka.
    #124720

    Cosmo
    Member

    ctrl-shift-r does indeed remove formatting, this has nothing to do with removing a link. The idea with a shortcut would be an alternative, if it would be possible to assign one to the command to remove a link. But this command does only appear in the context menu, not in the main menu and it seems, as if in the configuration window for shortcuts only those commands can get a shortcut, which are in the main menu available.

    #124721

    mikeyww
    Member

    It would be useful to have a global preferences option that requires the use of brackets for creating links to other nodes.

    #124723

    Cosmo
    Member

    Something similar does already exist. If you have a node name without CamelCase you can set it as a link during writing by putting it inside of 2 squared brackets (e. g. [[Linux]], if a node with this name does exist. There is no option for that, and I do not see, why it should be made as an option.

    The problem is only CamelCase, as this works without the 2 brackets and is a little bit uncomfortable to undo.

    #124725

    mikeyww
    Member

    The fix would be simple. It would be a global option that says, “Require brackets for internal links”. That would disable CamelCase. This page has examples of how to implement this concept.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.