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

Feature Request: Convert a tag into a property (and the other way around) #124

Open
nununo opened this issue Jan 5, 2024 · 2 comments
Open

Comments

@nununo
Copy link

nununo commented Jan 5, 2024

Now that Obsidian allows for notes to have properties, I would like to convert some of my tags into properties. This seems to be something that Tag Wrangler could do.

The easiest scenario is when tags are defined in the frontmatter. Then the conversion is simple.

The hardest case would be for inline tags. In that case then a decision has to be made:

  1. Keep the tag and add the property
  2. Remove the hash from the tag, converting it into plain content
  3. Convert it to a note link (so from #tag to [[tag]]
  4. Something else?

So, 3 doesn't make much sense, 2 may be dangerous, 1 introduces redundancy. Maybe leave it as a setting for the user to set?

Converting a property into a tag should be simple: just remove the property and add a tag to the frontmatter.

What do you think?

Thanks and regards.

@pjeby
Copy link
Owner

pjeby commented Jan 6, 2024

If I were going to do something like this, I'd probably use metadata menu or one of the table-style editors for Obsidian, as I think there are some that let you bulk-edit properties and might support something like this already. I'll keep this on the feature backlog for the time being, but I doubt I'd get to it any time soon.

@nununo
Copy link
Author

nununo commented Jan 9, 2024

Understood. Thank you for acknowledging 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

2 participants