Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editing entry with hybrid heading (link and text) changes heading when updated #14

Open
mbafford opened this issue Sep 27, 2021 · 1 comment

Comments

@mbafford
Copy link

BT Version: 0.9.6 / Chrome

Problem

Discovered as part of #13 - which allows you to introduce this state entirely within BT - although I think anyone who edits the org file externally will encounter this issue.

If you create a complex heading that has a link and text, it renders fine in the tree:

2021_09_27_08_11_04

2021_09_27_08_11_43

However, editing the entry will break the structure:

2021_09_27_08_12_01

2021_09_27_08_12_34

Proposed Solutions

  • Accept as-is - the title will always be a full link - maybe add a warning that saving will change the heading irrevocably
  • Make the heading read-only if it's not in standard BT format - in which case, you can still edit the description field without affecting the heading
  • Add a toggle button which allows for editing in org syntax or plain-text syntax, which the caveat that plain-text will wipe out custom syntax (and would then default to org editing if this scenario is encountered)
@tconfrey
Copy link
Owner

I like the third option. The note field is already, by default, plain text but at some point I'd like to support a more naive user friendly markup editor. So being able to switch back and forth makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants