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

Allow custom tag to be changed #1439

Closed
xahodo opened this issue May 7, 2023 · 4 comments
Closed

Allow custom tag to be changed #1439

xahodo opened this issue May 7, 2023 · 4 comments
Labels
enhancement Request: New feature or improvement

Comments

@xahodo
Copy link

xahodo commented May 7, 2023

There's the custom tag. However seeing that you can rename its label, wouldn't it be better to have the custom tag follow the label of whatever it's renamed to? People could have multiple custom tags, each with their own name. This could cause confusion for them if I had the custom tags foo and bar, they would both be considered custom tags by NovelWriter, being cause of confusion.

What I would like to see:

Create new custom tag, and name it "foo", from that moment onward I would address it with @foo: in my documents/notes.
Then I'd create another custum tag, and name it "bar", from that moment I would address it as @bar: in my documents/notes.
They would show up in the project tree as "foo" and "bar", and so they need to be able to be referenced as such.

@xahodo xahodo added the enhancement Request: New feature or improvement label May 7, 2023
@bar
Copy link

bar commented May 7, 2023

@xahodo I guess you didn't mean to tag me here, right?

@vkbo
Copy link
Owner

vkbo commented May 7, 2023

Sorry about this. Unfortunately, people keep tagging random users on GitHub due to the @ symbol being used for commands in this application. I've edited the issue and wrapped the relevant parts in backticks to disable tagging.

@xahodo
Copy link
Author

xahodo commented Sep 16, 2023

There's one consideration to take note of with this: fools (me, for example) creating a double tag for a built-in one. "Characters" for example. Will this just result in another category with the same name, which will be iterated, or will it result in an error?

@vkbo
Copy link
Owner

vkbo commented Jan 31, 2024

There's one consideration to take note of with this: fools (me, for example) creating a double tag for a built-in one. "Characters" for example. Will this just result in another category with the same name, which will be iterated, or will it result in an error?

What do you mean by "double tag"? Two "Character" folders? You can do that if you want to. novelWriter treats them as the same and combines the content. It is the type of root folder that matters, not what they're named either. If you have a Custom type root folder named "Characters", the content will still not be treated as characters.

Making the @ tag user-definable is not likely to happen simply because it makes the indexing system much more complicated. It also means I can never add new @ type commands, because any give project can have one defined that has the same name.

As discussed in #1556, your best option is to make the type of custom tag a part of its name:

@custom: foo/bar

If you have a suggestion for a new category you would like added, in addition to the current 6 + custom, you can suggest it.

I'm closing this issue as well since it will not be implemented as suggested due to the consequences as mentioned in my second paragraph above.

@vkbo vkbo closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request: New feature or improvement
Projects
None yet
Development

No branches or pull requests

3 participants