80f5ec3932ae

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 12 Mar 2019 12:24:28 -0400
parents f01b60ea69c5
children ba6a5cb2dc59
branches/tags (none)
files bin/cowhead bin/go-dep-graph bin/moo bin/st-edit bin/stripcolor stumpwmrc vim/custom-dictionary.utf-8.add vim/vimrc weechat/plugins.conf

Changes

--- a/bin/cowhead	Thu Feb 28 14:01:51 2019 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-#!/usr/bin/env bash
-
-COWS=("b" "d" "g" "p" "s" "t" "w" "y")
-COW=${COWS[$RANDOM % ${#COWS[@]}]}
-
-PROGS=("cowsay" "cowthink")
-PROG=${PROGS[$RANDOM % ${#PROGS[@]}]}
-
-toilet -t -k -F gay:crop -f calvins "$@" | $PROG -n -$COW
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/go-dep-graph	Tue Mar 12 12:24:28 2019 -0400
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+function render {
+    echo 'digraph foo {'
+    go mod graph | sed -E 's/(.*) (.*)/    "\1" -> "\2";/' | sed -E 's/@[^; "]*//g'
+    echo '}'
+}
+
+render | dot -o "$1.png" -Tpng
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/moo	Tue Mar 12 12:24:28 2019 -0400
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+COWS=("b" "d" "g" "p" "s" "t" "w" "y")
+COW=${COWS[$RANDOM % ${#COWS[@]}]}
+
+PROGS=("cowsay" "cowthink")
+PROG=${PROGS[$RANDOM % ${#PROGS[@]}]}
+
+toilet -t -k -F gay:crop -f calvins "$@" | $PROG -n -$COW
--- a/bin/st-edit	Thu Feb 28 14:01:51 2019 -0500
+++ b/bin/st-edit	Tue Mar 12 12:24:28 2019 -0400
@@ -3,4 +3,4 @@
 tmpfile=$(mktemp /tmp/st-edit.XXXXXX)
 trap  'rm "$tmpfile"' 0 1 15
 cat > "$tmpfile"
-st -e "nvim" "$tmpfile"
+st -e "nvim" -c "normal! G" "$tmpfile"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/stripcolor	Tue Mar 12 12:24:28 2019 -0400
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
--- a/stumpwmrc	Thu Feb 28 14:01:51 2019 -0500
+++ b/stumpwmrc	Tue Mar 12 12:24:28 2019 -0400
@@ -189,11 +189,11 @@
         with extern = "DP1"
         for (output commands) in `((,laptop ("--off"))
                                    (,extern ("--off"))
-                                   (,laptop ("--auto"))
+                                   ;; (,laptop ("--auto"))
                                    (,extern ("--auto"))
                                    (,extern ("--primary"))
                                    ;; (,extern ("--mode" "2560x1440"))
-                                   (,extern ("--left-of" ,laptop))
+                                   ;; (,extern ("--left-of" ,laptop))
                                    ;; (,extern ("--right-of" ,laptop))
                                    )
         do (pr (uiop:run-program `("xrandr" "--output" ,output ,@commands)))))
--- a/vim/custom-dictionary.utf-8.add	Thu Feb 28 14:01:51 2019 -0500
+++ b/vim/custom-dictionary.utf-8.add	Tue Mar 12 12:24:28 2019 -0400
@@ -279,3 +279,5 @@
 unmarshaling
 deserialize
 lparallel
+subshell
+schemaless
--- a/vim/vimrc	Thu Feb 28 14:01:51 2019 -0500
+++ b/vim/vimrc	Tue Mar 12 12:24:28 2019 -0400
@@ -258,9 +258,15 @@
 silent! digr !, 8816 "U+2270=≰    NEITHER LESS-THAN NOR EQUAL TO
 silent! digr !. 8817 "U+2271=≱    NEITHER GREATER-THAN NOR EQUAL TO
 silent! digr xs 8339 "U+2093=ₓ    SUBSCRIPT X
-silent! digr ns 8345 "U+2093=ₙ    SUBSCRIPT N
+silent! digr ls 8343 "U+2097=ₗ    SUBSCRIPT L
+silent! digr ms 8344 "U+2098=ₗ    SUBSCRIPT M
+silent! digr ns 8345 "U+2099=ₙ    SUBSCRIPT N
+silent! digr ps 8346 "U+209A=ₚ    SUBSCRIPT P
+silent! digr ss 8347 "U+209B=ₛ    SUBSCRIPT S
+silent! digr ts 8348 "U+209C=ₜ    SUBSCRIPT T
 silent! digr >< 8652 "U+21cc=⇌    EQUILIBRIUM
 silent! digr o+ 8853 "U+2295=⊕    CIRCLED PLUS
+silent! digr -^ 8593 "U+2191=↑    UPWARDS ARROW
 
 " }}}
 " Convenience mappings ---------------------------------------------------- {{{
@@ -1406,7 +1412,7 @@
     au FileType go nnoremap <buffer> <silent> M :GoDoc<cr>
     au FileType go nnoremap <buffer> <localleader>t :GoInfo<cr>
     au FileType go nnoremap <buffer> <localleader>h :GoDocBrowser<cr>
-    au FileType go nnoremap <buffer> <localleader>b :GoBuild<cr>
+    au FileType go nnoremap <buffer> <localleader>c :GoBuild<cr>
 
     " this language is incredible
     au FileType go iabbrev <buffer> ernil if err != nil {<cr>return nil, err<esc>jA
@@ -2157,7 +2163,7 @@
 " Fugitive {{{
 
 nnoremap <leader>gd :Gdiff<cr>
-nnoremap <leader>gs :Gstatus<cr>
+nnoremap <leader>gs :Gstatus<cr>:15wincmd_<cr>
 nnoremap <leader>gw :Gwrite<cr>
 nnoremap <leader>ga :Gadd<cr>
 nnoremap <leader>gb :Gblame<cr>
@@ -2165,12 +2171,16 @@
 nnoremap <leader>gci :Gcommit<cr>
 nnoremap <leader>gm :Gmove<cr>
 nnoremap <leader>gr :Gremove<cr>
-nnoremap <leader>gl :Shell git gl -18<cr>:wincmd \|<cr>
+nnoremap <leader>gl :Clam git gll -100 \| stripcolor<cr>
+
 
 augroup ft_fugitive
     au!
 
-    au BufNewFile,BufRead .git/index setlocal nolist
+    au BufRead */.git/index setlocal nolist
+
+    " tpope is back on his bullshit
+    au FileType fugitive if expand('%:p') =~# '.*/.git/index' | nnoremap <buffer> K :q<cr> | endif
 augroup END
 
 " "Hub"
--- a/weechat/plugins.conf	Thu Feb 28 14:01:51 2019 -0500
+++ b/weechat/plugins.conf	Tue Mar 12 12:24:28 2019 -0400
@@ -73,6 +73,9 @@
 python.slack.auto_open_threads = "false"
 python.slack.background_load_all_history = "false"
 python.slack.channel_name_typing_indicator = "true"
+python.slack.color_buflist_muted_channels = "darkgray"
+python.slack.color_reaction_suffix = "darkgray"
+python.slack.color_thread_suffix = "lightcyan"
 python.slack.colorize_private_chats = "false"
 python.slack.debug_level = "3"
 python.slack.debug_mode = "false"
@@ -94,6 +97,7 @@
 python.slack.slack_api_token = "xoxp-3324703083-436133997184-447755985685-90585fad41071ee30fb518ad29831038"
 python.slack.slack_timeout = "20000"
 python.slack.switch_buffer_on_join = "true"
+python.slack.thread_messages_in_channel = "false"
 python.slack.thread_suffix_color = "lightcyan"
 python.slack.unfurl_auto_link_display = "both"
 python.slack.unfurl_ignore_alt_text = "false"
@@ -118,6 +122,9 @@
 python.slack.auto_open_threads = "Automatically open threads when mentioned or inresponse to own messages."
 python.slack.background_load_all_history = "Load history for each channel in the background as soon as it opens, rather than waiting for the user to look at it."
 python.slack.channel_name_typing_indicator = "Change the prefix of a channel from # to > when someone is typing in it. Note that this will (temporarily) affect the sort order if you sort buffers by name rather than by number."
+python.slack.color_buflist_muted_channels = "Color to use for muted channels in the buflist"
+python.slack.color_reaction_suffix = "Color to use for the [:wave:(@user)] suffix on messages that have reactions attached to them."
+python.slack.color_thread_suffix = "Color to use for the [thread: XXX] suffix on messages that have threads attached to them."
 python.slack.colorize_private_chats = "Whether to use nick-colors in DM windows."
 python.slack.debug_level = "Show only this level of debug info (or higher) when debug_mode is on. Lower levels -> more messages."
 python.slack.debug_mode = "Open a dedicated buffer for debug messages and start logging to it. How verbose the logging is depends on log_level."
@@ -138,6 +145,7 @@
 python.slack.slack_api_token = "List of Slack API tokens, one per Slack instance you want to connect to. See the README for details on how to get these."
 python.slack.slack_timeout = "How long (ms) to wait when communicating with Slack."
 python.slack.switch_buffer_on_join = "When /joining a channel, automatically switch to it as well."
+python.slack.thread_messages_in_channel = "When enabled shows thread messages in the parent channel."
 python.slack.thread_suffix_color = "Color to use for the [thread: XXX] suffix on messages that have threads attached to them."
 python.slack.unfurl_auto_link_display = "When displaying ("unfurling") links to channels/users/etc, determine what is displayed when the text matches the url without the protocol. This happens when Slack automatically creates links, e.g. from words separated by dots or email addresses. Set it to "text" to only display the text written by the user, "url" to only display the url or "both" (the default) to display both."
 python.slack.unfurl_ignore_alt_text = "When displaying ("unfurling") links to channels/users/etc, ignore the "alt text" present in the message and instead use the canonical name of the thing being linked to."