7512e93d3529

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 14 Sep 2023 10:08:18 -0400
parents 72b5c315bd1d
children bf8002ba462c
branches/tags (none)
files bin/mark fish/config.fish stumpwmrc vim/custom-dictionary.utf-8.add

Changes

--- a/bin/mark	Fri Sep 08 17:16:04 2023 -0400
+++ b/bin/mark	Thu Sep 14 10:08:18 2023 -0400
@@ -4,6 +4,8 @@
 
 EVENT="$1"
 shift
+HOST=$(hostname)
+DIR="$HOME/Sync/marks/$HOST/"
 
-mkdir -p "$HOME/.marks"
-echo "$(date --iso-8601=seconds --utc)" "$@" >> "$HOME/.marks/$EVENT"
+mkdir -p "$DIR"
+echo "$(date --iso-8601=seconds --utc)" "$@" >> "$DIR/$EVENT"
--- a/fish/config.fish	Fri Sep 08 17:16:04 2023 -0400
+++ b/fish/config.fish	Thu Sep 14 10:08:18 2023 -0400
@@ -193,9 +193,23 @@
     end
 end
 
+function hg-managed
+    set --local d "$(pwd)"
+    while test "/" != "$d"
+        if test -d "$d/.hg"
+            return 0
+        end
+        set d (path dirname "$d")
+    end
+
+    return 1
+end
+
 function hg_prompt
     if test -z "$NOVCSPROMPT"
-        hg prompt --angle-brackets $hg_promptstring 2>/dev/null
+        if hg-managed
+            hg prompt --angle-brackets $hg_promptstring 2>/dev/null
+        end
     end
 end
 
--- a/stumpwmrc	Fri Sep 08 17:16:04 2023 -0400
+++ b/stumpwmrc	Thu Sep 14 10:08:18 2023 -0400
@@ -548,6 +548,9 @@
   (when-let-window (w "^Zoom Meeting.*")
     (focus-window w t)))
 
+(defcommand papers () ()
+  (run-or-raise "jabref" '(:class "org.jabref.gui.MainApplication")))
+
 
 ;;;; Timers -------------------------------------------------------------------
 (defparameter *pop-timer-minutes* nil)
@@ -729,7 +732,7 @@
   ("H-n" "next-in-frame")
   ("H-p" "prev-in-frame")
   ("H-N" "pull-hidden-next")
-  ("H-P" "prev-in-frame")
+  ("H-P" "papers")
 
   ("H-," "pull-from-windowlist"))
 
--- a/vim/custom-dictionary.utf-8.add	Fri Sep 08 17:16:04 2023 -0400
+++ b/vim/custom-dictionary.utf-8.add	Thu Sep 14 10:08:18 2023 -0400
@@ -338,3 +338,6 @@
 tradeoff
 Snakefile
 Snakemake
+melanosomes
+melanosome
+threonine