Comments (4)
I read the lua code. but i'm noob for lua .
local function display_questions(search_query)
local graphql_endpoint = config.graphql_endpoint
local variables = {
limit = 20,
filters = {
difficulty = M.difficulty,
searchKeywords = search_query,
status = M.status,
},
}
local query = [[
query problemsetQuestionList($limit: Int, $filters: QuestionListFilterInput) {
]] .. (config.domain == "cn" and [[
problemsetQuestionList(
]] or [[
problemsetQuestionList: questionList(
]]) .. [[
categorySlug: ""
limit: $limit
filters: $filters
) {
]] .. (config.domain == "cn" and [[
total
questions {
paidOnly
titleCn
frontendQuestionId
]] or [[
total: totalNum
questions: data {
paidOnly: isPaidOnly
titleCn: title
frontendQuestionId: questionFrontendId
]]) .. [[
difficulty
isFavor
status
titleSlug
}
}
}
]]
limit 20 is a hard code for questions query.
in my situation, domain is "cn"..
so the graphql query is this.
query problemsetQuestionList($limit: Int, $filters: QuestionListFilterInput) {
problemsetQuestionList(
categorySlug: ""
limit: $limit
filters: $filters
) {
total
questions {
paidOnly
titleCn
frontendQuestionId
difficulty
isFavor
status
titleSlug
}
}
}
at the moment, I find we can only find the 1-20 problem..
do you consider add page scroll for this? a configured page size for every page. maybe it's 20 '30 '50, and user can press shortcut to jump into next page or prev page? just a little suggessstion.
any way,the simple way for developer is let limit vars can be configured ..
from leetbuddy.nvim.
the same question
from leetbuddy.nvim.
from leetbuddy.nvim.
You can check the README for the keymaps on the paginating problems in Telescope. Also, you can now increase the total number of problems displayed with limit
in config, the default is 30 now.
from leetbuddy.nvim.
Related Issues (20)
- Window layout different HOT 1
- Wrong window split, fixed. HOT 1
- Extremely laggy HOT 4
- Starter code not loading HOT 2
- Wrong credentials, how to reset? HOT 1
- post code load function HOT 6
- Post request fails to write HOT 2
- Post request fails to write HOT 5
- Filter by difficulty HOT 2
- [FIXED] Timeout when validating cookies HOT 1
- Tests not working HOT 12
- input.txt shows only one test case HOT 2
- LBQuestions not work after reinstall HOT 3
- vim-plug installation example
- suggest and some question HOT 1
- How to trigger login? HOT 1
- Feature Request: Have the question as a file
- LSP doesn't work for Rust HOT 1
- Run test code or Submit Code got some error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leetbuddy.nvim.