update
This commit is contained in:
@@ -4,38 +4,12 @@ AccessModifierOffset: -2
|
||||
|
||||
AlignConsecutiveAssignments: true
|
||||
|
||||
AllowAllArgumentsOnNextLine: false
|
||||
|
||||
AllowAllParametersOfDeclarationOnNextLine: false
|
||||
|
||||
AllowShortBlocksOnASingleLine: Empty
|
||||
|
||||
AllowShortCaseLabelsOnASingleLine: true
|
||||
|
||||
AllowShortFunctionsOnASingleLine: Inline
|
||||
|
||||
AllowShortLambdasOnASingleLine: All
|
||||
|
||||
# BreakAfterReturnType: All
|
||||
|
||||
BinPackArguments: false
|
||||
|
||||
BinPackParameters: false
|
||||
|
||||
ColumnLimit: 0
|
||||
|
||||
CompactNamespaces: false
|
||||
|
||||
ContinuationIndentWidth: 4
|
||||
|
||||
Cpp11BracedListStyle: true
|
||||
|
||||
EmptyLineBeforeAccessModifier: LogicalBlock
|
||||
|
||||
FixNamespaceComments: true
|
||||
|
||||
IncludeBlocks: Regroup
|
||||
SortIncludes: true
|
||||
IncludeCategories:
|
||||
- Regex: '^<ext/.*\.h>'
|
||||
Priority: 2
|
||||
@@ -48,16 +22,10 @@ IncludeCategories:
|
||||
|
||||
IndentWidth: 4
|
||||
|
||||
KeepEmptyLinesAtTheStartOfBlocks: true
|
||||
|
||||
InsertNewlineAtEOF: true
|
||||
|
||||
MaxEmptyLinesToKeep: 1
|
||||
|
||||
TabWidth: 4
|
||||
|
||||
UseTab: Never
|
||||
|
||||
SeparateDefinitionBlocks: Always
|
||||
|
||||
QualifierAlignment: Left
|
||||
ColumnLimit: 0
|
||||
|
||||
@@ -1,26 +1,17 @@
|
||||
[Settings]
|
||||
gtk-application-prefer-dark-theme=true
|
||||
gtk-button-images=true
|
||||
gtk-cursor-blink=true
|
||||
gtk-cursor-blink-time=1000
|
||||
gtk-theme-name=catppuccin-mocha-blue-standard+default
|
||||
gtk-icon-theme-name=Papirus
|
||||
gtk-font-name=Sarasa UI SC 10
|
||||
gtk-cursor-theme-name=Bibata-Modern-Ice
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-decoration-layout=icon:minimize,maximize,close
|
||||
gtk-enable-animations=true
|
||||
gtk-toolbar-style=GTK_TOOLBAR_ICONS
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-button-images=0
|
||||
gtk-menu-images=0
|
||||
gtk-enable-event-sounds=1
|
||||
gtk-enable-input-feedback-sounds=0
|
||||
gtk-font-name=Sarasa UI SC, 10
|
||||
gtk-icon-theme-name=Papirus
|
||||
gtk-menu-images=true
|
||||
gtk-modules=colorreload-gtk-module:appmenu-gtk-module
|
||||
gtk-primary-button-warps-slider=true
|
||||
gtk-shell-shows-menubar=1
|
||||
gtk-sound-theme-name=ocean
|
||||
gtk-theme-name=catppuccin-mocha-blue-standard+default
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-toolbar-style=3
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-dpi=122880
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintslight
|
||||
gtk-xft-rgba=rgb
|
||||
gtk-application-prefer-dark-theme=1
|
||||
|
||||
@@ -1,14 +1,7 @@
|
||||
[Settings]
|
||||
gtk-application-prefer-dark-theme=true
|
||||
gtk-cursor-blink=true
|
||||
gtk-cursor-blink-time=1000
|
||||
gtk-theme-name=catppuccin-mocha-blue-standard+default
|
||||
gtk-icon-theme-name=Papirus
|
||||
gtk-font-name=Sarasa UI SC 10
|
||||
gtk-cursor-theme-name=Bibata-Modern-Ice
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-decoration-layout=icon:minimize,maximize,close
|
||||
gtk-enable-animations=true
|
||||
gtk-font-name=Sarasa UI SC, 10
|
||||
gtk-icon-theme-name=Papirus
|
||||
gtk-primary-button-warps-slider=true
|
||||
gtk-sound-theme-name=ocean
|
||||
gtk-theme-name=catppuccin-mocha-blue-standard+default
|
||||
gtk-xft-dpi=122880
|
||||
gtk-application-prefer-dark-theme=1
|
||||
|
||||
@@ -36,8 +36,8 @@ ITERM2_EXPECTED_RESPONSE=$(printf "\033]1337;") # followed by "ReportCellSize=..
|
||||
FENCE_CODE=$(printf "\033[c")
|
||||
|
||||
# Set terminal to raw mode with timeout
|
||||
stty_orig=$(stty -g)
|
||||
trap 'stty "$stty_orig"' EXIT INT TERM HUP
|
||||
stty_orig=$(stty -g < /dev/tty)
|
||||
trap 'stty "$stty_orig" < /dev/tty' EXIT INT TERM HUP
|
||||
stty -echo -icanon min 1 time 0
|
||||
|
||||
printf "%s%s%s" "$ITERM2_QUERY_CODE" "$KGP_QUERY_CODE" "$FENCE_CODE" > /dev/tty
|
||||
@@ -48,7 +48,7 @@ support_sixel=0
|
||||
|
||||
response=""
|
||||
while true; do
|
||||
IFS= read -r -N 1 -t "$TIMEOUT" char || {
|
||||
IFS= read -r -N 1 -t "$TIMEOUT" char < /dev/tty || {
|
||||
[ -z "$char" ] && break
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ EXPECTED_RESPONSE=$(printf "\033]1337;") # followed by "ReportCellSize=...", but
|
||||
FENCE_CODE=$(printf "\033[c")
|
||||
|
||||
# Set terminal to raw mode
|
||||
stty_orig=$(stty -g)
|
||||
trap 'stty "$stty_orig"' EXIT INT TERM HUP
|
||||
stty_orig=$(stty -g < /dev/tty)
|
||||
trap 'stty "$stty_orig" < /dev/tty' EXIT INT TERM HUP
|
||||
stty -echo -icanon min 1 time 0
|
||||
|
||||
printf "%s%s" "$QUERY_CODE" "$FENCE_CODE" > /dev/tty
|
||||
@@ -23,7 +23,7 @@ printf "%s%s" "$QUERY_CODE" "$FENCE_CODE" > /dev/tty
|
||||
response=""
|
||||
ret=1
|
||||
while true; do
|
||||
IFS= read -r -N 1 -t 0.3 char || {
|
||||
IFS= read -r -N 1 -t 0.3 char < /dev/tty || {
|
||||
[ -z "$char" ] && break
|
||||
}
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ EXPECTED_RESPONSE=$(printf "\033_Gi=%d;OK\033\\" "$QUERY_ID")
|
||||
FENCE_CODE=$(printf "\033[c")
|
||||
|
||||
# Set terminal to raw mode with timeout
|
||||
stty_orig=$(stty -g)
|
||||
trap 'stty "$stty_orig"' EXIT INT TERM HUP
|
||||
stty_orig=$(stty -g < /dev/tty)
|
||||
trap 'stty "$stty_orig" < /dev/tty' EXIT INT TERM HUP
|
||||
stty -echo -icanon min 1 time 0
|
||||
|
||||
printf "%s%s" "$QUERY_CODE" "$FENCE_CODE" > /dev/tty
|
||||
@@ -26,7 +26,7 @@ printf "%s%s" "$QUERY_CODE" "$FENCE_CODE" > /dev/tty
|
||||
response=""
|
||||
ret=1
|
||||
while true; do
|
||||
IFS= read -r -N 1 -t 0.3 char || {
|
||||
IFS= read -r -N 1 -t 0.3 char < /dev/tty || {
|
||||
[ -z "$char" ] && break
|
||||
}
|
||||
|
||||
|
||||
@@ -9,15 +9,15 @@ set -euo pipefail
|
||||
QUERY_CODE=$(printf "\033[c")
|
||||
|
||||
# Set terminal to raw mode with timeout as 0.5s
|
||||
stty_orig=$(stty -g)
|
||||
trap 'stty "$stty_orig"' EXIT INT TERM HUP
|
||||
stty_orig=$(stty -g < /dev/tty)
|
||||
trap 'stty "$stty_orig" < /dev/tty' EXIT INT TERM HUP
|
||||
stty -echo -icanon min 1 time 0
|
||||
|
||||
printf "%s" "$QUERY_CODE" >/dev/tty
|
||||
|
||||
response=""
|
||||
while true; do
|
||||
IFS= read -r -N 1 -t 0.3 char || {
|
||||
IFS= read -r -N 1 -t 0.3 char < /dev/tty || {
|
||||
[ -z "$char" ] && break
|
||||
}
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:git"
|
||||
rev = "598cdb6"
|
||||
rev = "b9946d9"
|
||||
hash = "88e56a64b7ce7c4314427452343fef17"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:smart-enter"
|
||||
rev = "598cdb6"
|
||||
rev = "b9946d9"
|
||||
hash = "187cc58ba7ac3befd49c342129e6f1b6"
|
||||
|
||||
[[plugin.deps]]
|
||||
@@ -25,8 +25,8 @@ hash = "5c7802a9ac249be88729978e3b9525bc"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "Rolv-Apneseth/starship"
|
||||
rev = "a837101"
|
||||
hash = "635b0feb9215772d22020eb0abf0bb34"
|
||||
rev = "159eaba"
|
||||
hash = "7de446280b1ba8c49ffd86dbc24bbbe6"
|
||||
|
||||
[flavor]
|
||||
deps = []
|
||||
|
||||
@@ -71,7 +71,7 @@ local old_build = Tab.build
|
||||
Tab.build = function(self, ...)
|
||||
local bar = function(c, x, y)
|
||||
if x <= 0 or x == self._area.w - 1 then
|
||||
return ui.Bar(ui.Edge.TOP):area(ui.Rect.default)
|
||||
return ui.Bar(ui.Edge.TOP)
|
||||
end
|
||||
|
||||
return ui.Bar(ui.Edge.TOP)
|
||||
@@ -87,15 +87,15 @@ Tab.build = function(self, ...)
|
||||
local c = self._chunks
|
||||
self._chunks = {
|
||||
c[1]:pad(ui.Pad.y(1)),
|
||||
c[2]:pad(ui.Pad(1, c[3].w > 0 and 0 or 1, 1, c[1].w > 0 and 0 or 1)),
|
||||
c[2]:pad(ui.Pad.y(1)),
|
||||
c[3]:pad(ui.Pad.y(1)),
|
||||
}
|
||||
|
||||
self._base = ya.list_merge(self._base or {}, {
|
||||
bar("┬", c[1].right - 1, c[1].y),
|
||||
bar("┴", c[1].right - 1, c[1].bottom - 1),
|
||||
bar("┬", c[2].right, c[2].y),
|
||||
bar("┴", c[2].right, c[2].bottom - 1),
|
||||
bar("┬", c[2].x, c[1].y),
|
||||
bar("┴", c[2].x, c[1].bottom - 1),
|
||||
bar("┬", c[2].right - 1, c[2].y),
|
||||
bar("┴", c[2].right - 1, c[2].bottom - 1),
|
||||
})
|
||||
|
||||
old_build(self, ...)
|
||||
|
||||
Reference in New Issue
Block a user