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] support multiple rendering block with custom label #27

Open
TenviLi opened this issue Jul 28, 2021 · 0 comments
Open

Comments

@TenviLi
Copy link

TenviLi commented Jul 28, 2021

I hope OQL can support rendering the note list of the directory structure into the following markdown.

And you can customize the block label's format just like the format: field.

In other words, you can go deep through the directory structure(or in other ways such as tags?) and render multiple times.

Let's see an example ⬇️:

# your oql options
name: Daily notes
query:
  path: "'docs"
template: "list"
badge: true
sort: "title"
format: "{title}"
# new option
multiple:
  labelFormat: '### {index} {relative_path}' # new field {relative_path}
  field: 'relative_path'

when your directory structure like this

- docs
    - oh
		- a.md
	- thats
    	- b.md
	- good
    	- c.md

it will be rendered into

### 1 oh

- [[a]]

### 2 thats

- [[b]]

### 3 good

- [[c]]

#26

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