Compare commits
11 commits
acc2496bd6
...
b6e3af4593
| Author | SHA1 | Date | |
|---|---|---|---|
| b6e3af4593 | |||
| f514ebe008 | |||
| 51fd5b51c7 | |||
| 7f2520ece5 | |||
| c1eb686cd3 | |||
| 56916f90d1 | |||
| 4e3edc7832 | |||
| 72f0651bd9 | |||
| 9548bb3441 | |||
| 0ce2c1b7da | |||
| 24120f55b2 |
8 changed files with 47 additions and 14 deletions
|
|
@ -20,7 +20,6 @@ return {
|
||||||
require("rainbow-delimiters.setup").setup({})
|
require("rainbow-delimiters.setup").setup({})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ "nushell/tree-sitter-nu", version = false },
|
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local enabled_parsers = {}
|
local enabled_parsers = {}
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ rq = :reply -aq<Enter>
|
||||||
rR = :reply<Enter>
|
rR = :reply<Enter>
|
||||||
rQ = :reply -q<Enter>
|
rQ = :reply -q<Enter>
|
||||||
|
|
||||||
c = :cf<space>
|
c = :menu -d :cf<Enter>
|
||||||
! = :term<space>
|
! = :term<space>
|
||||||
| = :pipe<space>
|
| = :pipe<space>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,8 @@ alias tal="task log"
|
||||||
alias tan="task annotate"
|
alias tan="task annotate"
|
||||||
|
|
||||||
alias tn="task next +READY"
|
alias tn="task next +READY"
|
||||||
alias td="task +TODAY or +OVERDUE"
|
alias td="task +TODAY or +OVERDUE or sched.before:tom" # scheduled and due for today or before
|
||||||
|
alias TD="task +TODAY or +OVERDUE" # DUE today or before
|
||||||
alias tun="task next urgency \> 4"
|
alias tun="task next urgency \> 4"
|
||||||
|
|
||||||
if exist timew; then
|
if exist timew; then
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
# CONFIG_FILE = full path to goimapnotify config file to be used
|
# CONFIG_FILE = full path to goimapnotify config file to be used
|
||||||
# PROFILE = name of yaml file in goimapnotify config dir (without extension)
|
# PROFILE = name of yaml file in goimapnotify config dir (without extension)
|
||||||
# THROTTLE_RATE = amount of time to wait before retrying if connection fails
|
# THROTTLE_RATE = amount of time to wait before retrying if connection fails
|
||||||
DEFAULT_PROFILE="goimapnotify"
|
PROFILE="goimapnotify"
|
||||||
DEFAULT_THROTTLE_RATE=10
|
THROTTLE_RATE=10
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
@ -15,17 +15,16 @@ if [ "$CONFIG_FILE" != "" ]; then
|
||||||
config_path="$CONFIG_FILE"
|
config_path="$CONFIG_FILE"
|
||||||
else
|
else
|
||||||
config_dir="${XDG_CONFIG_HOME:-$HOME/.config}"
|
config_dir="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
config_path="${config_dir}/goimapnotify/${PROFILE:-$DEFAULT_PROFILE}.yaml"
|
config_path="${config_dir}/goimapnotify/${PROFILE}.yaml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Throttle before running watcher
|
# Throttle before running watcher
|
||||||
snooze -H /1 -M /1 -S /1 -t timefile -T "${THROTTLE_RATE:-$DEFAULT_THROTTLE_RATE}" || exit 1
|
snooze -H /1 -M /1 -S /1 -t timefile -T "${THROTTLE_RATE}" || exit 1
|
||||||
touch timefile
|
touch timefile
|
||||||
|
|
||||||
if [ ! -f "$config_path" ]; then
|
if [ ! -f "$config_path" ]; then
|
||||||
echo "Config path not found: $config_path"
|
echo "goimapnotify config path not found: $config_path"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "starting program"
|
|
||||||
exec chpst -e "$TURNSTILE_ENV_DIR" goimapnotify -conf "$config_path" 2>&1
|
exec chpst -e "$TURNSTILE_ENV_DIR" goimapnotify -conf "$config_path" 2>&1
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ alias rcat="$(which cat)"
|
||||||
if command -v batcat >/dev/null 2>&1; then
|
if command -v batcat >/dev/null 2>&1; then
|
||||||
# For Ubuntu and Debian-based `bat` packages
|
# For Ubuntu and Debian-based `bat` packages
|
||||||
# the `bat` program is named `batcat` on these systems
|
# the `bat` program is named `batcat` on these systems
|
||||||
alias cat="$(which batcat)"
|
alias cat="batcat"
|
||||||
elif command -v bat >/dev/null 2>&1; then
|
elif command -v bat >/dev/null 2>&1; then
|
||||||
# For all other systems
|
# For all other systems
|
||||||
alias cat="$(which bat)"
|
alias cat="bat"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
#
|
#
|
||||||
# This file is loaded after env.nu and before login.nu
|
# This file is loaded after env.nu and before login.nu
|
||||||
#
|
#
|
||||||
$env.config.show_banner = true # TODO: FOR TESTING PURPOSES
|
$env.config.show_banner = false # TODO: FOR TESTING PURPOSES
|
||||||
|
|
||||||
$env.config.edit_mode = "vi"
|
$env.config.edit_mode = "vi"
|
||||||
$env.config.buffer_editor = "nvim"
|
$env.config.buffer_editor = "nvim"
|
||||||
|
|
@ -51,6 +51,16 @@ $env.config.keybindings = [
|
||||||
{send: Enter}
|
{send: Enter}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name: insert_last_token
|
||||||
|
modifier: alt
|
||||||
|
keycode: char_.
|
||||||
|
mode: ["emacs", "vi_normal", "vi_insert"]
|
||||||
|
event: [
|
||||||
|
{ edit: InsertString, value: "!$" }
|
||||||
|
{ send: Enter }
|
||||||
|
]
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name: open_editor
|
name: open_editor
|
||||||
modifier: control
|
modifier: control
|
||||||
|
|
@ -60,6 +70,16 @@ $env.config.keybindings = [
|
||||||
send: OpenEditor
|
send: OpenEditor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name: toggle_sudo
|
||||||
|
modifier: alt
|
||||||
|
keycode: char_s
|
||||||
|
mode: [emacs vi_insert vi_normal]
|
||||||
|
event: {
|
||||||
|
send: executehostcommand
|
||||||
|
cmd: "let cmd = (commandline); commandline edit (if $cmd starts-with sudo { $cmd | str replace -r '^sudo ' '' } else { 'sudo ' ++ $cmd });"
|
||||||
|
}
|
||||||
|
}
|
||||||
{
|
{
|
||||||
name: run_zoxide
|
name: run_zoxide
|
||||||
modifier: alt
|
modifier: alt
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,8 @@ $go\
|
||||||
$lua\
|
$lua\
|
||||||
$nodejs\
|
$nodejs\
|
||||||
$python\
|
$python\
|
||||||
|
$terraform\
|
||||||
|
$typst\
|
||||||
$package
|
$package
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
@ -81,9 +83,20 @@ symbol = " "
|
||||||
style = 'bold yellow'
|
style = 'bold yellow'
|
||||||
format = "[$symbol]($style)"
|
format = "[$symbol]($style)"
|
||||||
|
|
||||||
|
[terraform]
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[typst]
|
||||||
|
disabled = false
|
||||||
|
symbol = ' '
|
||||||
|
|
||||||
[custom.shell_bash_indicator]
|
[custom.shell_bash_indicator]
|
||||||
command = 'echo '
|
command = 'echo '
|
||||||
when = ''' test "$0" = "/usr/bin/bash" '''
|
when = ' test "$STARSHIP_SHELL" = "bash" '
|
||||||
|
|
||||||
|
[custom.shell_nushell_indicator]
|
||||||
|
command = 'echo '
|
||||||
|
when = ' test $env.STARSHIP_SHELL "==" "nu" '
|
||||||
|
|
||||||
# TODO: Would be lovely to have jujutsu support here
|
# TODO: Would be lovely to have jujutsu support here
|
||||||
# An example implementation: https://github.com/jj-vcs/jj/wiki/Starship
|
# An example implementation: https://github.com/jj-vcs/jj/wiki/Starship
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ alias jlo="jj log --summary -T builtin_log_compact_full_description -r 'recent()
|
||||||
alias JLO="jj log --summary -T builtin_log_compact_full_description -r 'all()'"
|
alias JLO="jj log --summary -T builtin_log_compact_full_description -r 'all()'"
|
||||||
alias jloo="jj log --patch -r 'recent()'"
|
alias jloo="jj log --patch -r 'recent()'"
|
||||||
alias JLOO="jj log --patch -r 'all()'"
|
alias JLOO="jj log --patch -r 'all()'"
|
||||||
|
alias jlr="jj log" # 'raw' log mode for custom opts
|
||||||
alias jol="jj op log"
|
alias jol="jj op log"
|
||||||
jlf() {
|
jlf() {
|
||||||
jj log -r "description(substring-i:\"$*\")"
|
jj log -r "description(substring-i:\"$*\")"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue