Skip to content

Commit

Permalink
🐛 Added new patterns to wezterm
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafaqanbaryan committed Dec 21, 2024
1 parent d93a556 commit 7d88fd0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ansible/rofi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
become: true
community.general.pacman:
executable: "yay"
name: ["rofi-lbonn-wayland", "rofi-emoji-git"]
name: ["rofi-lbonn-wayland-git", "rofi-emoji-git"]
state: "present"
tags:
- install
Expand Down
5 changes: 4 additions & 1 deletion fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ function fish_greeting
zoxide init fish | source
end

source ~/env.fish
if ! test -f "$HOME/.env.fish"
touch $HOME/.env.fish
end
source $HOME/.env.fish

# Editor
alias s "sessions"
Expand Down
2 changes: 1 addition & 1 deletion scripts/sessions
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ "$(command -v zellij)" = "" ]; then
exit 1
fi

LAST_SESSION="$(cat /tmp/zellij_last_session)"
LAST_SESSION="$(cat /tmp/zellij_last_session || '')"

home_replacer() {
HOME_REPLACER="" # default to a noop
Expand Down
3 changes: 3 additions & 0 deletions wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ return {

disable_default_quick_select_patterns = true,
quick_select_patterns = {
'(?:[.\\w\\-@~]+)?(?:/+[.\\w\\-@]+)+', -- path
'(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})', -- IPv4
'(?:[^.\\s]+\\.)?[^.\\s]+\\.(?:ir|com|net|org|me)(?:\\/[^\\s]+)?', -- Domains
'(?:[a-z0-9]+\\d[a-z][a-z0-9]+)', -- Hash ids
'(?:[a-zA-Z0-9]+\\-)+[a-zA-Z0-9]+', -- Snackcase for docker names
'#[0-9a-fA-F]{6}', -- Hex colors
"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" -- UUIDs
}
}

0 comments on commit 7d88fd0

Please sign in to comment.