Bahex
Bahex
Using version 0.2.2, it seems like the same name can be used multiple times in a context, and only the latest usage stays addressable. So as a stopgap you can...
@fdncred 1. We need to reach consensus about whether this behavior is acceptable/desirable. > ```nushell > let val = [{foo: A}, {baz: B}] > $val > # => ╭───┬─────┬─────╮ >...
After rebasing the branch on main, I ran some benchmarks comparing against main in both profiles, using both a small and a moderately big sample. ```nushell let binaries = [...
I have a module for using `defer` style cleanup that you might find useful: ```nushell # with-defer.nu const key = $"defer-($nu.pid)" | encode base64 @search-terms cleanup defer export def main...
It needs to be set _before_ the language server starts. Try this: ```lua ---@type vim.lsp.Config return { before_init = function(_, client_config) client_config.settings.json = require('schemastore').json.schemas() end } ```
The issue is, we can't know whether an external command failed or not until it terminates. So anything it writes to stderr is will be already printed on your terminal...
@samox73 `ignore` swallowing the errors from external commands _is_ strange, thanks for pointing that out. I'm not sure if that was intended, as `ignore` doesn't swallow internal errors.
You can use multiplication with durations to convert timestamps of arbitrary units to datetimes: ```nushell 1747847038000 * 1ms # converted to duration | into int # converted to number of...
@fdncred can the vscode plugin be made to only use `nu --lsp` so we can deprecate the `--ide-*` flags? If they provide anything that `nu-lsp` doesn't, we can just add...
`path self` added on 0.101.0 should allow this. ```nushell const root = path self .; use $"($root)/scripts/prompt.nu" git_prompt ``` or ```nushell const scripts = path self scripts; use $"($scripts)/prompt.nu" git_prompt...