add hotkey and unify config naming to snake_case

BREAKING CHANGE: The configuration option `pageSize` has been renamed to `page_size` to maintain a consistent style. Users need to update their personal configurations.
This commit is contained in:
Elflare
2025-07-08 09:53:38 +08:00
parent cb9fadd5eb
commit f5c87ad10a
4 changed files with 42 additions and 21 deletions

View File

@@ -24,11 +24,11 @@ function M.get_current_user(callback)
end)
end
function M.list_memos(parent, filter, pageSize, pageToken, callback)
function M.list_memos(parent, filter, page_size, pageToken, callback)
local list_url = config.host .. '/api/v1/memos'
local params = {}
table.insert(params, "parent=" .. parent)
table.insert(params, "pageSize=" .. tostring(pageSize))
table.insert(params, "page_size=" .. tostring(page_size))
if pageToken and pageToken ~= "" then table.insert(params, "pageToken=" .. pageToken) end
if filter and filter ~= '' then
table.insert(params, 'filter=content.contains("' .. vim.fn.escape(filter, '\\"') .. '")')