Update dotfiles/.local/functions, dotfiles/.config/slack-term/config
This commit is contained in:
parent
a0a0b3bfd6
commit
6a1e131555
2 changed files with 103 additions and 0 deletions
88
dotfiles/.config/slack-term/config
Normal file
88
dotfiles/.config/slack-term/config
Normal file
|
@ -0,0 +1,88 @@
|
|||
{
|
||||
"slack_token": "yourslacktokenhere",
|
||||
|
||||
// OPTIONAL: set the width of the sidebar (between 1 and 11), default is 1
|
||||
"sidebar_width": 1,
|
||||
|
||||
// OPTIONAL: turn on desktop notifications for all incoming messages, set
|
||||
// the value as: "all". For only mentions and im messages set the
|
||||
// value as: "mention", default is turned off: ""
|
||||
"notify": "",
|
||||
|
||||
// OPTIONAL: turn on emoji's, default is false
|
||||
"emoji": false,
|
||||
|
||||
// OPTIONAL: define custom key mappings, defaults are:
|
||||
"key_map": {
|
||||
"command": {
|
||||
"i": "mode-insert",
|
||||
"/": "mode-search",
|
||||
"k": "channel-up",
|
||||
"j": "channel-down",
|
||||
"g": "channel-top",
|
||||
"G": "channel-bottom",
|
||||
"K": "thread-up",
|
||||
"J": "thread-down",
|
||||
"<previous>": "chat-up",
|
||||
"C-b": "chat-up",
|
||||
"C-u": "chat-up",
|
||||
"<next>": "chat-down",
|
||||
"C-f": "chat-down",
|
||||
"C-d": "chat-down",
|
||||
"n": "channel-search-next",
|
||||
"N": "channel-search-previous",
|
||||
"'": "channel-jump",
|
||||
"q": "quit",
|
||||
"<f1>": "help"
|
||||
},
|
||||
"insert": {
|
||||
"<left>": "cursor-left",
|
||||
"<right>": "cursor-right",
|
||||
"<enter>": "send",
|
||||
"<escape>": "mode-command",
|
||||
"<backspace>": "backspace",
|
||||
"C-8": "backspace",
|
||||
"<delete>": "delete",
|
||||
"<space>": "space"
|
||||
},
|
||||
"search": {
|
||||
"<left>": "cursor-left",
|
||||
"<right>": "cursor-right",
|
||||
"<escape>": "clear-input",
|
||||
"<enter>": "clear-input",
|
||||
"<backspace>": "backspace",
|
||||
"C-8": "backspace",
|
||||
"<delete>": "delete",
|
||||
"<space>": "space"
|
||||
}
|
||||
},
|
||||
|
||||
// OPTIONAL: override the default theme, defaults are:
|
||||
"theme": {
|
||||
"view": {
|
||||
"fg": "white",
|
||||
"bg": "default",
|
||||
"border_fg": "white",
|
||||
"border_bg": "",
|
||||
"label_fg": "white",
|
||||
"label_bg": ""
|
||||
},
|
||||
"channel": {
|
||||
"prefix": "",
|
||||
"icon": "",
|
||||
"text": ""
|
||||
},
|
||||
"message": {
|
||||
// This uses golang time formatting:
|
||||
// - https://yourbasic.org/golang/format-parse-string-time-date-example/
|
||||
// - https://golang.org/pkg/time/#Time.Format
|
||||
"time_format": "15:04",
|
||||
|
||||
// You can use 'colorize' to give every name an individual color
|
||||
"name": "",
|
||||
|
||||
"time": "",
|
||||
"text": ""
|
||||
}
|
||||
}
|
||||
}
|
|
@ -72,6 +72,21 @@ resetdocker() {
|
|||
docker system prune -a --force
|
||||
}
|
||||
|
||||
# ripgrep-all
|
||||
rga-fzf() {
|
||||
RG_PREFIX="rga --files-with-matches"
|
||||
local file
|
||||
file="$(
|
||||
FZF_DEFAULT_COMMAND="$RG_PREFIX '$1'" \
|
||||
fzf --sort --preview="[[ ! -z {} ]] && rga --pretty --context 5 {q} {}" \
|
||||
--phony -q "$1" \
|
||||
--bind "change:reload:$RG_PREFIX {q}" \
|
||||
--preview-window="70%:wrap"
|
||||
)" &&
|
||||
echo "opening $file" &&
|
||||
xdg-open "$file"
|
||||
}
|
||||
|
||||
# Easy file sharing from the command line, using transfer.sh
|
||||
transfer() {
|
||||
if [ $# -eq 0 ]; then
|
||||
|
|
Loading…
Reference in a new issue