* feat(completions): ✨ add PDM custom completions
* feat(completions): ✨ add dependency groups detection from pyproject.toml for relevant commands
* fix: 🐛 nuopen to open as it should be
* feat(completions): ✨ user script completions in pdm run
* chore: 🔥 remove vscode settings
* fix pass-completion as `let` cannot be used at module level
`let` cannont be used at module level. #8248 proposes to add `const` for modules, but in the meantime, a function is the best way to make this script useable as a module.
* remove calls to system commands for better portability
`^realpath` and `^find` are replaced with `path expand` and `ls` in an effort not to rely on system commands. Literal "/" are also replaced with native path operations.
---------
Co-authored-by: Benoît Sierro <benoit.sierro@bluewin.ch>
* function to display bars of given percentage from given width
* adding --progress, moving width to options
thanks @amtoine
* typos of ESL studnet
* added examples and tests
* feat(nano): add completions (#479)
* feat(nano): add completions
* feat(nano): add readme
* removed escape symbols from tests, fixed fraction indexing
* fixed tests
Fixed tests, although they need escape sequences, as the bar function has the ability to change the colors of both the background and foreground and uses the default color by default.
* Rename bar_fn.nu to bar.nu
---------
Co-authored-by: Emily Grace Seville <EmilySeville7cfg@gmail.com>
* refactor: ✨ move in one commit
Eveything in modules should probably be changed to `exported` defs.
The idea is to move everything first to keep proper history.
* refactor: 📝 add modules readme (wip)
* refactor: ✨ small move
* refactor: 📝 changed nestring, updated modules readme
* refactor: 📝 to document or not to document
* fix: 🐛 themes
replaced the template to use `main` and regenerated them
from lemnos themes.
* Revert "fix: 🐛 themes"
This reverts commit 4918d3633c.
* refactor: ✨ introduce sourced
- Created a source `root` in which sourcable demos are stored.
Some might get converted to modules later on.
- Moved some files to bin too.
* fix: 🐛 fehbg.nu
* fix: 🐛 modules/after.nu
* moved some other stuff around
---------
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
The different commands such as `git checkout`, `git switch`, `git
cherry-pick` and `git rebase` all accept slightly differing refspecs.
This commit separates the extraction of refspecs and combines them in
individual completion commands for the different external commands.
All git commands complete with a table of `value | description` now.
Addresses #406
Co-authored-by: Simon Gasse <sgasse@users.noreply.github.com>
Added branch, remote, diff, commit, pull, stash, init, status, add, rm,
help, log, bisect
Also removed ? from `git rebase --onto` which was putting a literal `?`
into the flag when completing.
* Add generated completions for nix
Add initial completions for nix, generated by parsing
the nix help pages with a script.
* Add completion for nix log-format
* add README for nix completions
* allow taking arguments