Skip to content

Commit f5bf350

Browse files
committed
feat: oauth improvements, @curl-data-urlencode, various fixes (#532)
* feat: include payload in verbose and Copy to curl if < 1000 chars * feat: allow empty headers * feat: add `kulala_keymaps_prefix` option * feat: support @curl-data-urlencode flag * feat(oauth): make effective @curl-global and additional_curl_options for oauth requests * feat(oauth): add support for SSL Configuration in http-client.private.env.json * fix(oauth): do not override expire_in if provided * fix: copy as curl recognize --data-urlencode * fix(parser): revert stripping \n from body * fix(parser): add human errors to external path resolvers * fix(lsp): add checks for invalid buf/win * fix(ui): auth_manager - show when no configs * fix(scripting): request.replay() * Fix var prompt * Fix compatibility with Neovim 0.10+ and older versions * docs: update CLI/CI docs * docs: Add note about url encoding * docs: add scripting examples and demos for request.replay/skip
1 parent c73376e commit f5bf350

File tree

7 files changed

+37
-41
lines changed

7 files changed

+37
-41
lines changed

doc/kulala.NEWS.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@ Table of Contents *kulala.NEWS-table-of-contents*
1616
VERSION 5.3.0 *kulala.NEWS-kulala-news-version-5.3.0*
1717

1818

19-
ENHANCEMENT: CONFIG OPTION KULALA_KEYMAPS_PREFIX TO SET CUSTOM PREFIX FOR KULALA KEYMAPS
20-
21-
22-
ENHANCEMENT: SUPPORT @CURL-DATA-URLENCODE FLAG
23-
24-
2519
ENHANCEMENT: SUPPORT SSL CONFIGURATION IN HTTP-CLIENT.PRIVATE.ENV.JSON FILES
2620

2721

doc/kulala.README.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ CONFIGURATION
103103
-- your configuration comes here
104104
global_keymaps = false,
105105
global_keymaps_prefix = "<leader>R",
106-
kulala_keymaps_prefix = "",
107106
},
108107
},
109108
})

doc/kulala.authentication.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ For example:
358358

359359
If you need to set custom curl flags for authentication requests, e.g.,
360360
`--insecure` to skip secure connection verification - you can do this with `#
361-
@curl-global-..` flags in your .http file or by setting
361+
@curl-global-..` flags in you .http file or by setting
362362
`additional_curl_options` in Kulala’s config.
363363

364364

doc/kulala.cli-ci.txt

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -35,39 +35,44 @@ The CLI comes with some sane defaults, but you can override them in
3535

3636
KULALA CLI *kulala.cli-ci-cli-and-ci-kulala-cli*
3737

38-
>text
39-
Usage:
40-
41-
Kulala CLI [--list] [--halt] [-m] [-h]
42-
43-
[-v {body,headers,headers_body,verbose,script_output,report}]
44-
45-
[-e <env>] [-n <name> ...] [-l <line> ...]
38+
Usage:
39+
40+
>
41+
Kulala CLI [--list] [--halt] [-m] [-h]
4642
47-
[<input>] ...
43+
[-v {body,headers,headers_body,verbose,script_output,report}]
4844
49-
Arguments:
45+
[-e <env>] [-n <name> ...] [-l <line> ...]
5046
51-
input Path to folder or HTTP file/s
47+
[<input>] ...
48+
<
49+
50+
Arguments:
51+
52+
>
53+
input Path to folder or HTTP file/s
54+
55+
<
56+
57+
Options:
58+
59+
>
60+
--list List requests in HTTP file
5261
53-
Options:
54-
55-
--list List requests in HTTP file
56-
57-
--name (-n) [<name>] ... Filter requests by name
58-
59-
--line (-l) [<line>] ... Filter requests by line #
60-
61-
--env (-e) <env> Environment
62-
63-
--view (-v) Response view
64-
{body,headers,headers_body,verbose,script_output,report}
65-
66-
--halt Halt on error
67-
68-
--mono (-m) No color output
69-
70-
--help (-h) Help
62+
--name (-n) [<name>] ... Filter requests by name
63+
64+
--line (-l) [<line>] ... Filter requests by line #
65+
66+
--env (-e) <env> Environment
67+
68+
--view (-v) Response view
69+
{body,headers,headers_body,verbose,script_output,report}
70+
71+
--halt Halt on error
72+
73+
--mono (-m) No color output
74+
75+
--help (-h) Help
7176
<
7277

7378
>bash

doc/kulala.custom-curl-flags.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ USAGE *kulala.custom-curl-flags-custom-curl-flags-usage*
2828

2929
Local flags take precedence over global flags.
3030

31-
If you need to apply curl flags to OAuth requests, you have to use `#
31+
If you need to apply curl flags to Oauth requests, you have to use `#
3232
@curl-global-..` flags.
3333

3434
Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>

doc/kulala.http-file-spec.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ request.
2121
`Absolute` format: `HTTPMethod` `URL` `HTTPVersion`:
2222

2323
>http
24-
GET https://weather.com:7220/weatherforecast?city=New York&day=2025-05-07
24+
GET https://weater.com:7220/weatherforecast?city=New York&day=2025-05-07
2525
<
2626

2727
`Origin` format: `HTTPMethod` `URL`:

docs/docs/usage/cli-ci.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ The CLI comes with some sane defaults, but you can override them in `kulala.nvim
1616

1717
## Kulala CLI
1818

19-
```text
2019
Usage:
2120

2221
Kulala CLI [--list] [--halt] [-m] [-h]
@@ -49,7 +48,6 @@ Options:
4948
--mono (-m) No color output
5049
5150
--help (-h) Help
52-
```
5351

5452
```bash
5553
kulala_cli http_examples/cli.http -e prod -v report -n Login Request -l 15 20

0 commit comments

Comments
 (0)