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

Auto-incrementing ID, or just numbered list #2499

Open
thealkaizer opened this issue Jan 1, 2025 · 0 comments
Open

Auto-incrementing ID, or just numbered list #2499

thealkaizer opened this issue Jan 1, 2025 · 0 comments
Labels
feature-request New feature or request.

Comments

@thealkaizer
Copy link

Is your feature request related to a problem? Please describe.
It's not a problem, but maybe the use case I have in mind could be useful. Obsidian and Dataview are very popular with roleplaying games. I like to use Dataview to fetch plenty of notes in a neat little list. But sometimes, I need to select something randomly. The most simple, common and elegant method is to have a table where you roll your dice, lookup the number and see the result.

Describe the solution you'd like
We currently have features to sort and group our data. Have a toggle option where the elements of your list would behave like a numbered list instead of a unnumbered list. In the case of a table, maybe we could have a column that has an auto-incrementing ID from first to last element.

These numbers would not be tied to the individual elements of the array, but just by the order. So sorting alphabetically, or sorting another way, the 1. would just be the first element in the list, and so on.

Describe alternatives you've considered
I have some JavaScript knowledge and tried to find a simple solution. But I'd prefer to use the query language.

@thealkaizer thealkaizer added the feature-request New feature or request. label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant