1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 14:47:47 +00:00

New custom completions for ani-cli, btm, glow & tealdeer (#304)

* New custom completions for ani-cli, btm, glow, gsudo & tealdeer

* Delete README.md

* Delete gsudo-completions.nu

* Update btm-completions.nu

* fixed error in btm completions
This commit is contained in:
DWTW321 2022-10-09 23:56:50 +01:00 committed by GitHub
parent dab62c255b
commit daf23a9b77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 173 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# ani-cli Custom Completions
This script provides custom completions for ani-cli. It can be used by importing its exported commands via:
```
use path/to/ani-cli/ani-cli-completions.nu
```
With 'path/to' being either the relative path of the file to your current directory or its absolute path.

View file

@ -0,0 +1,23 @@
# authour: DWTW
def videoQuality [] {
[ "best", "worst", "360", "480", "720", "1080" ]
}
# Collaborative cheatsheets for console commands
export extern "ani-cli" [
string?
-q: string@videoQuality # Set video quality
-s # Watch using Syncplay
-f # Use FZF for selection
-a # Specify episode
-d # Download episode
-p # Download episode to specified directory
-c # Continue watching anime from history
-h # Show help text
-D # Delete history
-U # Fetch update from github
-V # Print version number
-r # Select provider
-x # Print all video links
]

View file

@ -0,0 +1,9 @@
# Bottom Custom Completions
This script provides custom completions for Bottom. It can be used by importing its exported commands via:
```
use path/to/btm/btm-completions.nu
```
With 'path/to' being either the relative path of the file to your current directory or its absolute path.

View file

@ -0,0 +1,47 @@
# authour: DWTW
def colorScheme [] {
[ "default", "default-light", "gruvbox", "gruvbox-light", "nord", "nord-light" ]
}
def widgetType [] {
[ "cpu", "mem", "net", "proc", "temp", "disk", "bat" ]
}
# Yet another cross-platform graphical process/system monitor.
export extern "btm" [
--autohide-time # Hide time-scale in graphs automatically
--basic(-b) # Use a more basic look
--battery # Show battery widget
--case_sensitive(-S) # Enables case sensitivity
--celsius(-c) # Sets temp type to celcius
--color: string@colorScheme # Use a pre-defined colorscheme
--config(-C): string # Sets the location of the config file
--curent_usage(-u) # Set CPU% to current system CPU%
--default_time_value(-t): int # Time value for graphs
--default_widget_count: int # Sets nth selected widget type to use default widget
--default_widget_type: string@widgetType # Set default select widget
--disable_advanced_kill # Hide advanced options
--disable_click # Disables mouse
--dot_marker(-m) # Uses dot marker for graphs
--fahrenheit(-f) # Sets temp type to fahrenheit
--group(-g) # Groups processes
--help(-h) # Prints help information
--hide_avg_cpu(-a) # Hide average CPU usage
--hide_table_gap # Hides spacing between table headers and entries
--hide_time # Completely hides the time scale
--kelvin(-k) # Sets temp type to kelvin
--left-legend(-l) # Puts the CPU chart to left
--men_as_value # Default sort by memory usage
--network_use_binary_prefix # Network widget with binary prefixes
--network_use_bytes # Network widget as bytes
--network_use_logs # Network eidget with logs
--process_command # Show processes as commands
--rate(-r): int # Sets referesh
--regex(-R) # Enable regex by default
--show_table_scroll_position # Show scroll position
--time-delta(-d): int # Amout changed when zooming in/out
--tree(-T) # Show processes as tree
--version(-V) # Prints version information
--whole-word(-w) # Search results match entrie query
]

View file

@ -0,0 +1,9 @@
# Glow Custom Completions
This script provides custom completions for Glow. It can be used by importing its exported commands via:
```
use path/to/glow/glow-completions.nu
```
With 'path/to' being either the relative path of the file to your current directory or its absolute path.

View file

@ -0,0 +1,38 @@
# authour: DWTW
def commandsGlow [] {
[ "config", "help", "stash" ]
}
# Render markdown on the CLI, with pizzazz!
export extern "glow" [
string?
--all(-a) # Show system files and directories (TUI)
--config: string # Specify config file
--help(-h) # Help for glow
--local(-l) # Show local files only
--pager(-p) # Display with pager
--style(-s): string # Style name or JSON path
--width(-w): int # Word-wrap width
]
# Create a config file
export extern "glow config" [
--help(-h) # Help for config
--config: string # Specify config file
]
# Provides help for any command
export extern "glow help" [
string?: string@commandsGlow
--help(-h) # Help for config
--config: string # Specify config file
]
# Do stash stuff
export extern "glow stash" [
string?
--memo: string # Memo or note for stashing
--help(-h) # Help for config
--config: string # Specify config file
]

View file

@ -0,0 +1,9 @@
# Tealdeer Custom Completions
This script provides custom completions for tealdeer. It can be used by importing its exported commands via:
```
use path/to/tldr/tldr-completions.nu
```
With 'path/to' being either the relative path of the file to your current directory or its absolute path.

View file

@ -0,0 +1,29 @@
# authour: DWTW
def platformOveride [] {
[ "linux", "macos", "windows", "sunos", "osx", "android" ]
}
def whenColor [] {
[ "always", "auto", "never" ]
}
# Collaborative cheatsheets for console commands
export extern "tldr" [
string?
--list(-l) # Lists all commands in the cache
--render(-f): string # Render a specific markdown file
--platform(-f): string@platformOveride # Override the operating system
--language(-L): string # Override the language
--update(-u) # Update the local cache
--no-auto-update # If auto update is configured. disable it for this run
--clear-cache(-c) # Clear the local cache
--pager # Use a pager to page output
--raw(-r) # Display the raw markdown instead of rendering it
--quiet(-q) # Suppress informational message
--show-paths # Show file and directory paths using tealdeer
--seed-config # Create a basic config
--color: string@whenColor # Controls whether to use color
--version(-v) # Print the version
--help # Print the help information
]