summaryrefslogtreecommitdiff
path: root/Pancake/Configuration.hs
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-11-23 06:20:50 +0300
committerdefanor <defanor@uberspace.net>2017-11-23 06:20:50 +0300
commit07fa7ad1000f6ac6fd76fc9233c150bdbde2e67b (patch)
treec62b1466168392c3d04e1827b31b317428a6251c /Pancake/Configuration.hs
parentb6b3b20e30bf7e05a317522b7c5284a4f7b92223 (diff)
Allow user-defined digits and radices for reference numbering
Diffstat (limited to 'Pancake/Configuration.hs')
-rw-r--r--Pancake/Configuration.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Pancake/Configuration.hs b/Pancake/Configuration.hs
index 5c52dda..2d20985 100644
--- a/Pancake/Configuration.hs
+++ b/Pancake/Configuration.hs
@@ -44,6 +44,9 @@ data Config = Config { commands :: M.Map String String
, historyDepth :: Int
-- ^ The amount of history entries (into either
-- direction) to keep.
+ , referenceDigits :: String
+ -- ^ Digits to use for reference numbering, must
+ -- be unique.
} deriving (Generic, Show)
-- | For configuration parsing.
@@ -78,6 +81,7 @@ instance Default Config where
, ("vs", "gopher://gopher.floodgap.com/7/v2/vs?")]
, paginate = True
, historyDepth = 100
+ , referenceDigits = "0123456789"
}
-- | Loads configuration from an XDG config directory.