aboutsummaryrefslogtreecommitdiff
path: root/src/Rahm/Desktop/Keys.hs
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2022-04-18 10:11:05 -0600
committerJosh Rahm <rahm@google.com>2022-04-18 10:11:05 -0600
commit8b6c4a54f79b35ba153acf6dd6b6f1804237c545 (patch)
treee490e573a9f2ea384a5114b6118753d94a74e0d0 /src/Rahm/Desktop/Keys.hs
parentdac3bec93f90b58d1bf97e81d992651b1cf83458 (diff)
downloadrde-8b6c4a54f79b35ba153acf6dd6b6f1804237c545.tar.gz
rde-8b6c4a54f79b35ba153acf6dd6b6f1804237c545.tar.bz2
rde-8b6c4a54f79b35ba153acf6dd6b6f1804237c545.zip
Extend marking language to the mark command itself
Diffstat (limited to 'src/Rahm/Desktop/Keys.hs')
-rw-r--r--src/Rahm/Desktop/Keys.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Rahm/Desktop/Keys.hs b/src/Rahm/Desktop/Keys.hs
index 23927ef..da3b695 100644
--- a/src/Rahm/Desktop/Keys.hs
+++ b/src/Rahm/Desktop/Keys.hs
@@ -355,10 +355,11 @@ keymap = runKeys $ do
bind xK_m $ do
justMod $
doc "Mark the current window with the next typed character." $
- runMaybeT_ $ mapNextString $ \_ str -> lift $
+ runMaybeT_ $ do
+ locs <- readNextLocationSet
+ mapNextString $ \_ str -> lift $
case str of
- [ch] | isAlpha ch -> markCurrentWindow str
- _ -> return ()
+ [ch] | isAlpha ch -> markAllLocations str locs
bind xK_plus $ do
justMod $