update hop offset

This commit is contained in:
DefectingCat
2023-11-30 10:06:09 +08:00
parent 35d2426cc0
commit e580863b52
3 changed files with 39 additions and 39 deletions

View File

@ -131,7 +131,7 @@ M.rua = {
function()
local hop = require "hop"
local directions = require("hop.hint").HintDirection
hop.hint_words { direction = directions.AFTER_CURSOR, current_line_only = false, hint_offset = -1 }
hop.hint_words { direction = directions.AFTER_CURSOR, current_line_only = false }
end,
"Hop motion search words after cursor",
},
@ -139,7 +139,7 @@ M.rua = {
function()
local hop = require "hop"
local directions = require("hop.hint").HintDirection
hop.hint_words { direction = directions.BEFORE_CURSOR, current_line_only = false, hint_offset = 1 }
hop.hint_words { direction = directions.BEFORE_CURSOR, current_line_only = false }
end,
"Hop motion search words before cursor",
},

View File

@ -34,17 +34,17 @@ do
--subscribe space.$sid mouse.clicked
done
space_creator=(
icon=􀆊
icon.font="$FONT:Heavy:16.0"
padding_left=10
padding_right=8
label.drawing=off
display=active
click_script='yabai -m space --create'
script="$PLUGIN_DIR/space_windows.sh"
icon.color=$WHITE
)
# space_creator=(
# icon=􀆊
# icon.font="$FONT:Heavy:16.0"
# padding_left=10
# padding_right=8
# label.drawing=off
# display=active
# click_script='yabai -m space --create'
# script="$PLUGIN_DIR/space_windows.sh"
# icon.color=$WHITE
# )
sketchybar --add item space_creator left \
--set space_creator "${space_creator[@]}" \

View File

@ -18,32 +18,31 @@ yabai -m config right_padding 10
yabai -m config window_gap 10
# Sketchybar support
# yabai -m config external_bar main:30:0
yabai -m config external_bar all:35:0 \
mouse_follows_focus off \
focus_follows_mouse off \
window_zoom_persist off \
window_placement second_child \
window_topmost off \
window_shadow float \
window_opacity on \
window_opacity_duration 0.2 \
active_window_opacity 1.0 \
normal_window_opacity 0.95 \
window_animation_duration 0.3 \
insert_feedback_color 0xff9dd274 \
split_ratio 0.50 \
auto_balance off \
auto_padding on \
mouse_modifier fn \
mouse_action1 move \
mouse_action2 resize \
mouse_drop_action swap \
\
top_padding 14 \
bottom_padding 8 \
left_padding 8 \
right_padding 8 \
window_gap 10
# yabai -m config external_bar all:35:0 \
# mouse_follows_focus off \
# focus_follows_mouse off \
# window_zoom_persist off \
# window_placement second_child \
# window_topmost off \
# window_shadow float \
# window_opacity on \
# window_opacity_duration 0.2 \
# active_window_opacity 1.0 \
# normal_window_opacity 0.95 \
# window_animation_duration 0.3 \
# insert_feedback_color 0xff9dd274 \
# split_ratio 0.50 \
# auto_balance off \
# auto_padding on \
# mouse_modifier fn \
# mouse_action1 move \
# mouse_action2 resize \
# mouse_drop_action swap \
# top_padding 14 \
# bottom_padding 8 \
# left_padding 8 \
# right_padding 8 \
# window_gap 10
# Window borders -- Removed: https://github.com/koekeishiya/yabai/issues/1889
# yabai -m config window_border on
@ -75,3 +74,4 @@ yabai -m rule --add app="^QuickLookUIService" manage=off
yabai -m rule --add app="^WeChat$" manage=off
yabai -m rule --add app="^(LuLu|Calculator|Software Update|Dictionary|VLC|System Preferences|System Settings|zoom.us|Photo Booth|Archive Utility|Python|LibreOffice|App Store|Steam|Alfred|Activity Monitor)$" manage=off
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
yabai -m rule --add label="Mail" app="^Mail$" manage=off