I have a zle like:
function _ctrl-shift-left() {
((REGION_ACTIVE)) || zle set-mark-command # Selection
zle backward-word
}
zle -N _ctrl-shift-left
bindkey '^[[1;6D' _ctrl-shift-left # Ctrl+Shift+Left to select till the beginning of the previous word.
For example for the bellow command
$ curl -s "https://samplesite.com/101146/07/data-processing/13/?#/101146-132519042909.html " | grep -oP 'https://dl\d*\.samplesite\.com/Files/[^ "]+\.rar' | sed 's/\?nocache=[^&]*//g'
when I press ctrl-shift-left, I want to stop the cursor at
'
and "
.
How can I do that?
Asked by Ahmad Ismail
(2998 rep)
Apr 9, 2025, 10:25 AM
Last activity: Apr 12, 2025, 12:57 PM
Last activity: Apr 12, 2025, 12:57 PM