From 2d5c3c63302ca6810d6fe32699f76a6902d2f2a8 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 27 Mar 2019 10:05:58 -0500 Subject: [PATCH] sc-im dice should result in strings for more flexible formatting and more handy key bindings --- apps/scim/lua/dice.lua | 2 +- apps/scim/rc | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/scim/lua/dice.lua b/apps/scim/lua/dice.lua index 7c2fafa..204c4c5 100644 --- a/apps/scim/lua/dice.lua +++ b/apps/scim/lua/dice.lua @@ -91,5 +91,5 @@ function sc_rollres(c, r) math.randomseed(seed) log("Setting Seed: " .. tostring(seed)) local sum = sc_parserollstr(sc.lgetstr(c, r)) - sc.lsetnum(c + 1, r, sum) + sc.lsetstr(c + 1, r, tostring(sum)) end diff --git a/apps/scim/rc b/apps/scim/rc index adc8594..4120127 100644 --- a/apps/scim/rc +++ b/apps/scim/rc @@ -11,3 +11,5 @@ color "type=STRG fg=WHITE bg=BLACK bold=0 dim=1" color "type=NUMB fg=YELLOW bg=BLACK bold=0 dim=1" nmap "J" "" +nmap "fi" ":format \"#\"" +nmap "B" "Vir"