Compare commits

...

3 Commits

@ -0,0 +1,289 @@
register /home/trivernis/.cargo/bin/nu_plugin_dialog {
"sig": {
"name": "ask",
"usage": "",
"extra_usage": "",
"search_terms": [],
"required_positional": [
{
"name": "subcommand",
"desc": "The ask subcommand to run",
"shape": "String",
"var_id": null,
"default_value": null
}
],
"optional_positional": [],
"rest_positional": null,
"vectorizes_over_list": false,
"named": [
{
"long": "help",
"short": "h",
"arg": null,
"required": false,
"desc": "Display the help message for this command",
"var_id": null,
"default_value": null
}
],
"input_type": "Any",
"output_type": "Any",
"input_output_types": [],
"allow_variants_without_examples": false,
"is_filter": false,
"creates_scope": false,
"allows_unknown_args": false,
"category": "Default"
},
"examples": []
}
register /home/trivernis/.cargo/bin/nu_plugin_dialog {
"sig": {
"name": "ask confirm",
"usage": "Prompt the user with a confirmation prompt.",
"extra_usage": "",
"search_terms": [],
"required_positional": [
{
"name": "prompt",
"desc": "The question to ask the user.",
"shape": "String",
"var_id": null,
"default_value": null
}
],
"optional_positional": [],
"rest_positional": null,
"vectorizes_over_list": false,
"named": [
{
"long": "help",
"short": "h",
"arg": null,
"required": false,
"desc": "Display the help message for this command",
"var_id": null,
"default_value": null
},
{
"long": "abortable",
"short": null,
"arg": null,
"required": false,
"desc": "If set users can abort the prompt.",
"var_id": null,
"default_value": null
},
{
"long": "default",
"short": null,
"arg": "Boolean",
"required": false,
"desc": "The default selection.",
"var_id": null,
"default_value": null
}
],
"input_type": "Any",
"output_type": "Any",
"input_output_types": [],
"allow_variants_without_examples": false,
"is_filter": false,
"creates_scope": false,
"allows_unknown_args": false,
"category": "Misc"
},
"examples": []
}
register /home/trivernis/.cargo/bin/nu_plugin_dialog {
"sig": {
"name": "ask password",
"usage": "Prompt the user with a password input.",
"extra_usage": "",
"search_terms": [],
"required_positional": [],
"optional_positional": [],
"rest_positional": null,
"vectorizes_over_list": false,
"named": [
{
"long": "help",
"short": "h",
"arg": null,
"required": false,
"desc": "Display the help message for this command",
"var_id": null,
"default_value": null
},
{
"long": "prompt",
"short": null,
"arg": "String",
"required": false,
"desc": "The prompt to this password input",
"var_id": null,
"default_value": null
},
{
"long": "confirm",
"short": null,
"arg": null,
"required": false,
"desc": "Prompts the user twice for matching password inputs",
"var_id": null,
"default_value": null
},
{
"long": "allow-empty",
"short": null,
"arg": null,
"required": false,
"desc": "Allows the user to input an empty password",
"var_id": null,
"default_value": null
}
],
"input_type": "Any",
"output_type": "Any",
"input_output_types": [],
"allow_variants_without_examples": false,
"is_filter": false,
"creates_scope": false,
"allows_unknown_args": false,
"category": "Misc"
},
"examples": []
}
register /home/trivernis/.cargo/bin/nu_plugin_dialog {
"sig": {
"name": "ask select",
"usage": "Prompt the user with a selection prompt.",
"extra_usage": "",
"search_terms": [],
"required_positional": [
{
"name": "items",
"desc": "The items out of which one can be selected.",
"shape": {
"List": "String"
},
"var_id": null,
"default_value": null
}
],
"optional_positional": [],
"rest_positional": null,
"vectorizes_over_list": false,
"named": [
{
"long": "help",
"short": "h",
"arg": null,
"required": false,
"desc": "Display the help message for this command",
"var_id": null,
"default_value": null
},
{
"long": "fuzzy",
"short": null,
"arg": null,
"required": false,
"desc": "To add a fuzzy search to the select.",
"var_id": null,
"default_value": null
},
{
"long": "abortable",
"short": null,
"arg": null,
"required": false,
"desc": "If set users can abort the prompt.",
"var_id": null,
"default_value": null
},
{
"long": "prompt",
"short": null,
"arg": "String",
"required": false,
"desc": "An optional prompt that can be shown to the user for the selection.",
"var_id": null,
"default_value": null
},
{
"long": "default",
"short": null,
"arg": "Number",
"required": false,
"desc": "The default selection.",
"var_id": null,
"default_value": null
}
],
"input_type": "Any",
"output_type": "Any",
"input_output_types": [],
"allow_variants_without_examples": false,
"is_filter": false,
"creates_scope": false,
"allows_unknown_args": false,
"category": "Misc"
},
"examples": []
}
register /home/trivernis/Documents/Programming/nu_plugin_dialog/target/debug/nu_plugin_dialog {
"sig": {
"name": "confirm",
"usage": "Prompt the user with a confirmation prompt.",
"extra_usage": "",
"search_terms": [],
"required_positional": [
{
"name": "prompt",
"desc": "The question to ask the user.",
"shape": "String",
"var_id": null,
"default_value": null
}
],
"optional_positional": [],
"rest_positional": null,
"vectorizes_over_list": false,
"named": [
{
"long": "help",
"short": "h",
"arg": null,
"required": false,
"desc": "Display the help message for this command",
"var_id": null,
"default_value": null
},
{
"long": "default",
"short": null,
"arg": "Boolean",
"required": false,
"desc": "The default selection.",
"var_id": null,
"default_value": null
}
],
"input_type": "Any",
"output_type": "Any",
"input_output_types": [],
"allow_variants_without_examples": false,
"is_filter": false,
"creates_scope": false,
"allows_unknown_args": false,
"category": "Misc"
},
"examples": []
}

@ -0,0 +1,88 @@
local wezterm = require 'wezterm'
local act = wezterm.action
local config = {}
config.enable_scroll_bar = true
config.font = wezterm.font_with_fallback {
'Fira Code',
'FiraCode NF',
'FiraMono',
'Jetbrains Mono',
}
config.font_size = 10
config.color_scheme = 'Dracula'
config.window_background_gradient = {
orientation = 'Vertical',
colors = {
'#230022',
'#1A002A',
},
}
config.window_frame = {
active_titlebar_bg = '#1A002A',
inactive_titlebar_bg = '#1A002A',
}
config.colors = {
tab_bar = {
active_tab = {
bg_color = '#4383a7',
fg_color = '#FFFFFF',
},
inactive_tab = {
bg_color = '#46007c',
fg_color = '#FFFFFF',
},
inactive_tab_hover = {
bg_color = '#58008f',
fg_color = '#FFFFFF',
},
new_tab = {
bg_color = '#46007c',
fg_color = '#FFFFFF',
},
new_tab_hover = {
bg_color = '#57008f',
fg_color = '#FFFFFF',
},
}
}
-- keybinds, mostly inspired by konsole
config.keys = {
{
key = 't',
mods = 'CTRL|SHIFT',
action = act.SpawnTab 'CurrentPaneDomain',
},
{
key = 'w',
mods = 'CTRL',
action = act.CloseCurrentTab { confirm = true }
},
{
key = 'RightArrow',
mods = 'SHIFT',
action = act.ActivateTabRelative(1)
},
{
key = 'LeftArrow',
mods = 'SHIFT',
action = act.ActivateTabRelative(-1)
},
{
key = 'w',
mods = 'CTRL|SHIFT',
action = act.ActivateTabRelative(-1)
}
}
if wezterm.target_triple == 'x86_64-pc-windows-msvc' then
-- Windows specific configuration
config.default_prog = { 'nu' }
else
-- Linux specific configuration
end
return config
Loading…
Cancel
Save