File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ set -g @easymotion-debug 'false'
3737
3838# Performance logging - writes timing info to ~/easymotion.log (default: false)
3939set -g @easymotion-perf ' false'
40+
41+ # Case sensitive search (default: false)
42+ set -g @easymotion-case-sensitive ' false'
4043```
4144
4245
Original file line number Diff line number Diff line change 1414
1515# Configuration from environment
1616HINTS = os .environ .get ('TMUX_EASYMOTION_HINTS' , 'asdfghjkl;' )
17+ CASE_SENSITIVE = os .environ .get ('TMUX_EASYMOTION_CASE_SENSITIVE' , 'false' ).lower () == 'true'
1718VERTICAL_BORDER = os .environ .get ('TMUX_EASYMOTION_VERTICAL_BORDER' , '│' )
1819HORIZONTAL_BORDER = os .environ .get ('TMUX_EASYMOTION_HORIZONTAL_BORDER' , '─' )
1920USE_CURSES = os .environ .get (
@@ -491,7 +492,10 @@ def find_matches(panes, search_ch):
491492 # Search each position in the line
492493 pos = 0
493494 while pos < len (line ):
494- idx = line .lower ().find (search_ch .lower (), pos )
495+ if CASE_SENSITIVE :
496+ idx = line .find (search_ch , pos )
497+ else :
498+ idx = line .lower ().find (search_ch .lower (), pos )
495499 if idx == - 1 :
496500 break
497501
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ HORIZONTAL_BORDER=$(get_tmux_option "@easymotion-horizontal-border" "─")
2020USE_CURSES=$( get_tmux_option " @easymotion-use-curses" " false" )
2121DEBUG=$( get_tmux_option " @easymotion-debug" " false" )
2222PERF=$( get_tmux_option " @easymotion-perf" " false" )
23+ CASE_SENSITIVE=$( get_tmux_option " @easymotion-case-sensitive" " false" )
2324
2425# Execute Python script with environment variables
2526tmux bind $( get_tmux_option " @easymotion-key" " s" ) run-shell " TMUX_EASYMOTION_HINTS='$HINTS ' \
@@ -28,4 +29,5 @@ tmux bind $(get_tmux_option "@easymotion-key" "s") run-shell "TMUX_EASYMOTION_HI
2829 TMUX_EASYMOTION_USE_CURSES='$USE_CURSES ' \
2930 TMUX_EASYMOTION_DEBUG='$DEBUG ' \
3031 TMUX_EASYMOTION_PERF='$PERF ' \
32+ TMUX_EASYMOTION_CASE_SENSITIVE='$CASE_SENSITIVE ' \
3133 $CURRENT_DIR /easymotion.py"
You can’t perform that action at this time.
0 commit comments