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

Trying to create a node with a tag leaves a space in the node name #7

Open
verveguy opened this issue Jan 2, 2023 · 0 comments
Open

Comments

@verveguy
Copy link
Contributor

verveguy commented Jan 2, 2023

When trying to use tana-paste to generate a new library node that is tagged, the node name ends up with a space in it.
Subsequenty uses of tana-paste to create nodes elsewhere that reference the library node end up creating new library nodes.

e.g.

%%tana%%
- John Doe #person
  - Best friend of Jane

followed by a paste of

%%tana%%
- I met with [[John Doe]] today
  - We discussed many things

results in Tana creating a new library node for John Doe when the second paste is done rather than referencing the already existing node.

Removing the #person tag resolves the problem. If you then look closely, you'll see there's a trailing space on the John Doe node. Removing it and then attempting the second paste resolves the issue.

So it appears that tana-paste needs to strip the trailing space off the string before creating the node and then tagging it.

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

1 participant