diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2022-04-18 23:00:26 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-10-09 12:19:46 -0600 |
| commit | 72b8128da9ac8f7d188a4c6eab751533334ef992 (patch) | |
| tree | 3aa5a9e17c3576a5130e6e2e349c505f91c0f105 /src/Rahm/Desktop/Keys.hs | |
| parent | d41def38570056f97c841c82d053f2c2d87cb32b (diff) | |
| download | rde-72b8128da9ac8f7d188a4c6eab751533334ef992.tar.gz rde-72b8128da9ac8f7d188a4c6eab751533334ef992.tar.bz2 rde-72b8128da9ac8f7d188a4c6eab751533334ef992.zip | |
Highlight windows for marking too
Diffstat (limited to 'src/Rahm/Desktop/Keys.hs')
| -rw-r--r-- | src/Rahm/Desktop/Keys.hs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/Rahm/Desktop/Keys.hs b/src/Rahm/Desktop/Keys.hs index 69873e4..9ae9c30 100644 --- a/src/Rahm/Desktop/Keys.hs +++ b/src/Rahm/Desktop/Keys.hs @@ -354,14 +354,16 @@ keymap = runKeys $ do doc "For mosaic layout, shrink the size-share of the current window" $ sendMessage =<< shrinkPositionAlt - bind xK_m $ do + bind xK_m $ justMod $ - doc "Mark the current window with the next typed character." $ - runMaybeT_ $ do - locs <- readNextLocationSet - mapNextString $ \_ str -> lift $ - case str of - [ch] | isAlpha ch -> markAllLocations str locs + doc "Mark the current window with the next typed character." $ do + locs <- fromMaybe [] <$> runMaybeT readNextLocationSet + withBorderColor "#00ffff" (mapMaybe locationWindow locs) $ do + runMaybeT_ $ do + mapNextString $ \_ str -> lift $ + case str of + [ch] | isAlpha ch -> markAllLocations str locs + _ -> return () bind xK_plus $ do justMod $ |