tconfrey/BrainTool

Pressing enter in heading field breaks org link

mbafford opened this issue · 2 comments

BT Version: 0.9.6 / Chrome

Problem

Edit an already saved entry:

2021_09_27_08_06_09

Press enter at the end of the title:

2021_09_27_08_06_18

Save the entry:

2021_09_27_08_06_35
(the newline is converted to a space in the tree view)

Edit the entry again:

2021_09_27_08_07_02

You can fix the link here if you know org link syntax, and save, and everything looks normal.

Proposed Solution

  • Disable enter in this field
  • add a toggle for editing the org-syntax directly vs. editing just the displayed text (see issue: #14 )

thanks @mbafford . I have a fix for this as part of the next release that I'm currently in the final stages of testing. BTW I do want you to be able to edit the title shown in the tree, or the url and as a result write back out the appropriate [[link][title]] to org.

Closing this as fixed in the latest 0.9.7 version of the extension