You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set extension on temporary file when editing recipe body in TUI
When editing a JSON body in the TUI, the created temp file will have .json as the extension, so your editor can use syntax highlighting and other language-specific features.
Fixed
Fix crash when previewing a profile value that returns a binary value
Prompts in CLI/Python frontend no longer block other request building tasks
Install slumber 5.2.5
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/LucasPickering/slumber/releases/download/v5.2.5/slumber-installer.sh | sh
5.0 is a huge release that focuses on two main areas:
A major refactor of the TUI includes:
A new layout with a collapsible sidebar to speed up navigation
Query/export command history navigation (similar to shell history)
QoL improvements such as selecting list items by click
CLI commands have been reorganized to be more consistent and discoverable
While is is a major release with breaking changes, the breakages are fairly limited. It's unlikely you'll need to make any changes to upgrade, other than getting used to the new TUI layout.
Breaking
The breaking changes in this release are mostly limited to CLI commands. The only change to the collection format is that JSON keys are now treated as templates. This will only impact you if you have any JSON keys containing {{. If you want these to be treated literally, you'll need to escape them: {_{
JSON body object keys are now parsed as templates and can be dynamically modified #698 (@SignalWhisperer)
slumber show command has been removed; its functionality has be split up across a set of more discoverable subcommands:
slumber show config -> slumber config
slumber show collection -> slumber collection
slumber show paths removed
slumber show paths config -> slumber config --path
slumber show paths collection -> slumber collection --path
slumber show paths db -> slumber db --path
slumber show paths log -> slumber --print-log-path
slumber collections and slumber history have been moved under slumber db
slumber collections ... -> slumber db collection ...
slumber history ... -> slumber db request ...
The goal is to group all commands related to direct DB access together. These are advanced/niche commands that are often used together.
Logs are now written to temporary files. Each Slumber session uses a different log file. To find the log file:
In the TUI, open the help menu with ?
CLI commands that fail will automatically print the log path. You can also pass --print-log-path to have it always print
Remove left_click and right_click mappable actions
Mouse clicks can no longer be mapped to keys
Replace the RUST_LOG environment variable with a --log-level argument
ERROR/WARN log output is not longer shown by default in stderr for CLI commands
Added
Add Copy as CLI action to generate a slumber request CLI command for the selected recipe/profile
Add Copy as Python action to generate Python code that uses the slumber-python API to make a request with the selected recipe/profile
Add flags to override various parts of a recipe from the CLI
--url <url> overrides the entire URL
--query <param=value> overrides a single query parameter
Request/Response pane > Actions menu (x) > Resend Request
Changed
Reconfigured the TUI layout. The main change is that the recipe, profile, and history lists open in an expandable sidebar now
Switching between recipes and profiles should feel faster and more intuitive
prompt() and select() calls are now grouped into a single form modal in the TUI
Previously, you'd be fed a series of modals one-by-one to fill out
Some menu actions have been moved into nested sections for better organization
Refactor significant portions of the TUI logic. There should be no user-facing changes, but if you notice any bugs please report them!
List items can now be selected by click
Recipe templates are now edited inline instead of in a pop-up modal
Help modal has been moved to a fullscreen page a better layout
Make slumber request aliases rq and req visible
slumber db collection delete now accepts more than 1 collection at a time
Distinguish between different request body types in the history DB better
Past requests that didn't have a body persisted because the body was streamed or too large will now look like there was no body at all. Future requests will not have this issue.
Added default keybindings for vim-style (h/j/k/l) navigation
Use native terminal cursor in text box
That means the style of the cursor will match your terminal theme, instead of using Slumber's primary color
Fixed
Invalid body override template is displayed instead of being thrown away #531
Fix panic when SIGTERM is sent to a TUI process that failed to start and is displaying a collection error
Fix indentation in TUI display of multi-line errors
Fix collection file watching for vim, helix, and other editors that swap instead of writing #706
Previously, the file watching would break after the first write because these editors replace the edited file (specifically, the inode) instead of just writing to it
Install slumber 5.0.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/LucasPickering/slumber/releases/download/v5.0.0/slumber-installer.sh | sh
index() gets a single element from a string or array
slice() slices a portion out of a string or array
upper() and lower() convert strings to upper/lower case respectively
replace() replaces occurrences of one string (or regex) with another
Changed
Default config file no longer contains all known configuration fields
Instead it's just a single example field and a link to the docs now
If you have an old default file, it will be replaced by the new one. Any file that's been modified from the default in any way (including just whitespace/comments) will not be modified