aboutsummaryrefslogtreecommitdiff
path: root/src/Rahm/Desktop/Keys
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2023-11-25 20:03:34 -0700
committerJosh Rahm <joshuarahm@gmail.com>2023-11-25 20:03:34 -0700
commit02198e22932192aede4a73e7a121007c76093e5f (patch)
treeedb126d22eddc4064ab6b008758b0111f634f8e9 /src/Rahm/Desktop/Keys
parent2beef57017fa4662dc5c062ea75b28785fcb2a02 (diff)
downloadrde-02198e22932192aede4a73e7a121007c76093e5f.tar.gz
rde-02198e22932192aede4a73e7a121007c76093e5f.tar.bz2
rde-02198e22932192aede4a73e7a121007c76093e5f.zip
Change history to work on a per-screen basis.
This change is still experimental, but it is more intuitive that each screen has its own history because each screen is generally dedicated to a specific use case. I'm going to try this on for size, though it is possible that per-workspace history mighte prove to be more useful. We'll see.
Diffstat (limited to 'src/Rahm/Desktop/Keys')
-rw-r--r--src/Rahm/Desktop/Keys/Wml.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Rahm/Desktop/Keys/Wml.hs b/src/Rahm/Desktop/Keys/Wml.hs
index 71551e8..e7a7cb9 100644
--- a/src/Rahm/Desktop/Keys/Wml.hs
+++ b/src/Rahm/Desktop/Keys/Wml.hs
@@ -71,10 +71,10 @@ import Rahm.Desktop.Common
windowsInWorkspace,
)
import Rahm.Desktop.History
- ( getMostRecentLocationInHistory,
+ ( -- getMostRecentLocationInHistory,
lastLocation,
nextLocation,
- pastHistory,
+ -- pastHistory,
)
import Rahm.Desktop.Logger (LogLevel (Info, Trace), logs)
import Rahm.Desktop.Marking
@@ -543,11 +543,11 @@ readNextLocationSet =
-- A character is the base-case. Refers to a collection of windows.
(_, _, [ch]) | isAlpha ch -> mt $ getMarkedLocations [ch]
-- Goes to the most recent location in history.
- (_, _, "0") -> (: []) <$> MaybeT (fromX getMostRecentLocationInHistory)
+ -- (_, _, "0") -> (: []) <$> MaybeT (fromX getMostRecentLocationInHistory)
-- A Digit goes to the past history.
- (_, _, [ch])
- | isDigit ch ->
- (: []) <$> MaybeT (fromX $ pastHistory (ord ch - 0x30))
+ -- (_, _, [ch])
+ -- | isDigit ch ->
+ -- (: []) <$> MaybeT (fromX $ pastHistory (ord ch - 0x30))
-- The current window.
(_, _, ".") -> (: []) <$> mt getCurrentLocation
-- The window on the far-left of the screens.