From 07fa7ad1000f6ac6fd76fc9233c150bdbde2e67b Mon Sep 17 00:00:00 2001 From: defanor Date: Thu, 23 Nov 2017 06:20:50 +0300 Subject: Allow user-defined digits and radices for reference numbering --- Pancake/Configuration.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Pancake/Configuration.hs') 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. -- cgit v1.2.3