Skip to content

API listDocsByPath add an optional parameter maxListCount #7993

Closed
@GuangDai

Description

@GuangDai

In what scenarios do you need this feature?

  • I need an API to get all subdocs including the hidden docs in the filetree. The current API "/api/filetree/listDocsByPath" can only get limited docs. The widget ListDocTree can only list limited docs.

Describe the optimal solution

Maybe need to add an new api based on the listDocsByPath?

Describe the candidate solution

No response

Other information

No response

Activity

88250

88250 commented on Apr 14, 2023

@88250
Member

Hello, what is the usage scenario for this requirement?

GuangDai

GuangDai commented on Apr 14, 2023

@GuangDai
Author

Hello, what is the usage scenario for this requirement?

In widget ListDocTree, I can only get limited results because of the global config. I have many docs(more than 100) in one dir. So I set the config to 30. If I raise the limit in global config, it will mess up my file tree. The widget can display sub docs in several columns, which is much easier to find doc than doing it in file tree.

88250

88250 commented on Apr 14, 2023

@88250
Member

Understood, the next release will add a parameter maxListCount to this interface, which is used to specify the maximum list limit.

self-assigned this
on Apr 14, 2023
added this to the 2.8.5 milestone on Apr 14, 2023
GuangDai

GuangDai commented on Apr 14, 2023

@GuangDai
Author

Hello, what is the usage scenario for this requirement?

I hope there will be an api to get subdocs based on the para I requested. If 0, get all. If bigger than 0, get limited.

changed the title [-]Need new api to get all subdocs.[/-] [+]API `listDocsByPath` add an optional parameter `maxListCount`[/+] on Apr 14, 2023
88250

88250 commented on Apr 14, 2023

@88250
Member

I hope there will be an api to get subdocs based on the para I requested. If 0, get all. If bigger than 0, get limited.

It's a good idea!

OpaqueGlass

OpaqueGlass commented on Feb 1, 2024

@OpaqueGlass
Contributor

请问是否可以考虑在指定maxListCount时不再pushMsg提示;或增加参数忽略提示?

关联 https://ld246.com/article/1706681659402

88250

88250 commented on Feb 1, 2024

@88250
Member

请问是否可以考虑在指定maxListCount时不再pushMsg提示;或增加参数忽略提示?

关联 https://ld246.com/article/1706681659402

添加参数 ignoreMaxListHint #10290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@OpaqueGlass@GuangDai

      Issue actions

        API `listDocsByPath` add an optional parameter `maxListCount` · Issue #7993 · siyuan-note/siyuan