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

Environment Scope #216

Merged
merged 4 commits into from
Sep 7, 2024
Merged

Environment Scope #216

merged 4 commits into from
Sep 7, 2024

Conversation

Grueslayer
Copy link
Contributor

@Grueslayer Grueslayer commented Sep 6, 2024

Pushes request responses and environment variables to vim buffer variables, so each file can have different values for same requests variable. That is the same behaviour like vscode-rest-client: scope of variables and requests is per file.

You can switch back to "global" scope by config.

DEV: Keep in mind to use DB.get() instead of DB.data

@gorillamoe gorillamoe added the enhancement New feature or request label Sep 6, 2024
@gorillamoe
Copy link
Member

Does this break .replay()? Have to check 👀

gorillamoe
gorillamoe previously approved these changes Sep 7, 2024
@gorillamoe
Copy link
Member

I also added tests for the DB change I introduced and made sure it works as expected:
https://github.com/mistweaverco/kulala.nvim/actions/runs/10751816491/job/29819466848

Jan Stocker and others added 4 commits September 7, 2024 17:14
The reasoning behind this is to make it easier to
find code that does updates, or just fetches a single item,
or fetches the whole dataset.

Additionally add global data which is currently only used for
.replay().

.replay() should enable the user to run the last command in any buffer,
not only in .http or .rest buffers.
The reasoning behind this is to make it easier to
find code that does updates, or just fetches a single item,
or fetches the whole dataset.

Additionally add global data which is currently only used for
.replay().

.replay() should enable the user to run the last command in any buffer,
not only in .http or .rest buffers.
@gorillamoe gorillamoe merged commit e01f764 into mistweaverco:main Sep 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants