about summary refs log tree commit diff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2020-06-25 r/1081 feat(tvl.el): Add push-wip commandGriffin Smith1-0/+11
P W, to push as a work-in-progress CL Change-Id: Ibc6973512e8dcd3ce77b2f1064906a98e9a3a182 Reviewed-on: https://cl.tvl.fyi/c/depot/+/575 Reviewed-by: tazjin <mail@tazj.in>
2020-06-24 r/1074 fix(tvl.el): Use 'canon' branch instead of 'master'Vincent Ambo1-3/+3
Change-Id: I779c3c979cc21a428188d31b399fd8ba97017f8d Reviewed-on: https://cl.tvl.fyi/c/depot/+/567 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-21 r/1056 fix(gerrit-cli): don't output the path to SSH if it's on the pathLuke Granger-Brown1-2/+2
Change-Id: Ic5ef3e9ae7984cc6c84ef99553bc94a7d44c3929 Reviewed-on: https://cl.tvl.fyi/c/depot/+/551 Reviewed-by: tazjin <mail@tazj.in>
2020-06-20 r/1045 chore(cheddar): Clean up all clippy lintsVincent Ambo1-11/+10
Change-Id: I5544c10e964b57891fce6ea01f09eeec406e9bef Reviewed-on: https://cl.tvl.fyi/c/depot/+/510 Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-20 r/1044 feat(cheddar): Add Sourcegraph-compatible highlighting serverVincent Ambo3-51/+765
Sourcegraph uses a component called syntect_server to syntax-highlight source files. Since we already have custom syntaxes, overrides and configuration we might as well use them with Sourcegraph! This implements the syntect_server "protocol" (it's just a single endpoint) so that we can swap out the syntect_server component with cheddar. Note: There's a few clippy lints here, but they're being solved in a followup commit because I wanted to take care of all of them at once (not just the ones introduced in this change). Change-Id: Ib518a2fa1b9fee299fe599482403599583cac479 Reviewed-on: https://cl.tvl.fyi/c/depot/+/509 Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-19 r/1040 feat(emacs-pkgs/tvl): Add #'tvl-depot-status functionVincent Ambo1-0/+9
This function opens the depot in magit. By default the depot path is assumed to be `/depot`, but that is made available as a customise option that users can override. Change-Id: Iefc127cad515dbae330d7af3aa69a0c53aa02015 Reviewed-on: https://cl.tvl.fyi/c/depot/+/504 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-19 r/1039 feat(emacs-pkgs/tvl): Add magit shortcuts for reviews & coVincent Ambo2-9/+48
Introduces two new shortcuts in the magit popup for pushing: * R: Push for review * S: Push to submit The existing "P" command remains, but has been renamed to "rubberstamp" and documented with a warning. To make this work across people's different setups, customisation options for TVL-specific code are being added. Change-Id: I48e75db55b5f793342fc898093629e437f58dcb2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/503 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-19 r/1036 feat(emacs-packages/tvl): Init with magit gerrit suffixGriffin Smith3-0/+45
Add a simple tvl.el, with only one magit transient command to push and submit in one go to Gerrit Change-Id: If02065797a8db39669b85acf87a1c4b43d1482ee Reviewed-on: https://cl.tvl.fyi/c/depot/+/494 Reviewed-by: tazjin <mail@tazj.in>
2020-06-19 r/1034 style(cheddar): Reformat with rustfmtVincent Ambo1-37/+44
Change-Id: I9a0764f23c1269447a8b18f3128074fc58f70456 Reviewed-on: https://cl.tvl.fyi/c/depot/+/492 Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-19 r/1033 refactor(cheddar): Pass references readers & writers into renderersVincent Ambo1-15/+18
This paves the way for using other things than stdin/stdout as sources/sinks, which is required for example for implementing a syntect_server replacement based on cheddar. Change-Id: I5779db8dbf7b7ced109c26b940f721d237d60785 Reviewed-on: https://cl.tvl.fyi/c/depot/+/491 Reviewed-by: glittershark <grfn@gws.fyi> Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-18 r/1025 chore(tazjin/emacs): Move //tools/emacs to //users/tazjin/emacsVincent Ambo13-1446/+0
Change-Id: I9dfbd0bb1fd3e215bb91c5734fb0934ee3faeae6
2020-06-18 r/1019 feat(tools/emacs): Enable go-mode in .go2-filesVincent Ambo1-1/+2
Change-Id: I03cf0641b22828eb400b9220e0756d9b7aca01cd
2020-06-17 r/1010 chore(tools/emacs): Remove hardcoded TVL meeting codeVincent Ambo1-5/+0
Change-Id: I76d24c20dc41969efe242008a2dec4a2a7944c5a Reviewed-on: https://cl.tvl.fyi/c/depot/+/450 Reviewed-by: tazjin <mail@tazj.in>
2020-06-17 r/1005 refactor(cheddar): Switch to clap-rs for command line argumentsVincent Ambo3-30/+29
The complexity of the arg parsing is increasing somewhat because we're adding more features to cheddar, so to set us up for that this switches the arg parsing to the somewhat more flexible clap. Change-Id: I187bc0c1b6c6bd596fa0f6bb494b04e335262ba9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/445 Reviewed-by: lukegb <lukegb@tvl.fyi> Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/1004 chore(cheddar): Bump all dependenciesVincent Ambo2-215/+106
Manual updates: comrak 0.6 -> 0.7 syntect 3.3 -> 4.2.0 Leading to these automatic updates: Updating crates.io index Updating adler32 v1.0.4 -> v1.1.0 Adding autocfg v1.0.0 Updating base64 v0.10.1 -> v0.12.2 Removing bindgen v0.53.3 Removing cexpr v0.4.0 Adding chrono v0.4.11 Removing clang-sys v0.29.3 Updating comrak v0.6.2 -> v0.7.0 Removing env_logger v0.7.1 Removing glob v0.3.0 Updating hermit-abi v0.1.13 -> v0.1.14 Removing humantime v1.3.0 Adding indexmap v1.4.0 Updating itoa v0.4.5 -> v0.4.6 Updating libc v0.2.70 -> v0.2.71 Removing libloading v0.5.2 Removing log v0.4.8 Updating miniz_oxide v0.3.6 -> v0.3.7 Removing nom v5.1.1 Adding num-integer v0.1.43 Adding num-traits v0.2.12 Updating onig v5.0.0 -> v6.0.0 Removing peeking_take_while v0.1.2 Updating plist v0.4.2 -> v1.0.0 Updating proc-macro2 v1.0.17 -> v1.0.18 Removing quick-error v1.2.3 Updating quote v1.0.6 -> v1.0.7 Updating regex v1.3.7 -> v1.3.9 Updating regex-syntax v0.6.17 -> v0.6.18 Removing rustc-hash v1.1.0 Updating ryu v1.0.4 -> v1.0.5 Updating serde v1.0.110 -> v1.0.112 Updating serde_derive v1.0.110 -> v1.0.112 Updating serde_json v1.0.53 -> v1.0.55 Removing shlex v0.1.1 Updating syn v1.0.25 -> v1.0.31 Updating syntect v3.3.0 -> v4.2.0 Removing termcolor v1.1.0 Removing version_check v0.9.2 Removing which v3.1.1 Updating yaml-rust v0.4.3 -> v0.4.4 Change-Id: I2c2ee6a45bf7a5286fe30d61de52d7993871e7e1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/444 Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-16 r/1002 chore: Remove traces of HoundVincent Ambo2-6/+0
We can always revert this if we want it back. Change-Id: I1332b6dd541199584b7b5b94a8651172d79e53a9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/442 Reviewed-by: glittershark <grfn@gws.fyi> Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-16 r/999 fix(tools/gerrit-cli): Don't wrap ssh sniffing in a subshellGriffin Smith1-1/+1
This was actually executing ssh, which was kinda silly - we really just want to check the return code of the `which` invocation Change-Id: I8a4b277a2be3b0c6a43d2da830cb82a32f9ee51e Reviewed-on: https://cl.tvl.fyi/c/depot/+/428 Reviewed-by: tazjin <mail@tazj.in>
2020-06-16 r/983 feat(gerrit-cli): Add gerrit CLI scriptGriffin Smith1-0/+13
Add a script to run gerrit commands on the depot host, which reads the gerrit username from the TVL_USERNAME env var or $(whoami) by default. At some point this may want to solve the configuration problem in a more general fashion, but for now this seems relatively obvious. Change-Id: Ied91c1d26daf4770aef74b2e755d1760c486bb7b Reviewed-on: https://cl.tvl.fyi/c/depot/+/396 Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: glittershark <grfn@gws.fyi>
2020-06-15 r/970 feat(depot-build): Add a tool to build at arbitrary tree locationsVincent Ambo1-0/+8
Assuming you're in `/depot/fun/clbot`, you can do this: tazjin@frog /d/f/clbot (master)> depot-build Building //fun/clbot /nix/store/i1zc6g58wa4819kyhaqi12zsh3hr31ph-clbot It is automatically added to the $PATH using direnv, too. Change-Id: Ia3341704e6317c2b8de40a3fa1be3b680d21a42d Reviewed-on: https://cl.tvl.fyi/c/depot/+/388 Reviewed-by: eta <eta@theta.eu.org>
2020-06-15 r/967 feat(cheddar): Override syntax highlighting for 'rules.pl' to PrologVincent Ambo2-17/+34
Adds a mechanism for per-filename overrides of the chosen language syntax and configures it for Gerrit's submit rule file. This also switches the syntax set used to the one from //third_party/bat_syntaxes, which contains custom additions such as Prolog support. Change-Id: I2023dbad5b326305ef2ef0ecf34ef66a3f7575ab Reviewed-on: https://cl.tvl.fyi/c/depot/+/349 Reviewed-by: riking <rikingcoding@gmail.com> Reviewed-by: lukegb <lukegb@tvl.fyi>
2020-06-11 r/913 chore(tools/emacs): Update window management configuration for frogVincent Ambo1-15/+15
Change-Id: I848d4c1d58a81a66800f25459fee8f85d3f269f6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/64 Reviewed-by: tazjin <mail@tazj.in>
2020-06-11 r/894 feat(tools/emacs): Configurable depot path, defaulting to /depotVincent Ambo2-1/+8
2020-06-11 r/893 chore(tools/emacs): Remove unused #'notmuch-depot-apply-patchVincent Ambo1-22/+1
2020-06-11 r/889 fix(tools/emacs): Fix path to explain-pause-modeVincent Ambo1-1/+1
2020-06-03 r/879 feat(3p/emacs): Check in derivation for explain-pause-modeVincent Ambo1-0/+1
This mode makes it possible to track down slowness in Emacs functions across the board. https://github.com/lastquestion/explain-pause-mode Very useful for some things I need to debug ...
2020-05-27 r/860 feat(tools/emacs): Install and configure hound package at cs.tazj.inVincent Ambo2-0/+7
2020-05-26 r/856 feat(tools/emacs): Add vterm-send-ctrl-x functionVincent Ambo1-0/+5
This is useful if something accidentally opens nano.
2020-05-25 r/851 chore(tools/cheddar): Bump dependencies & upgrade to LLVM 10Vincent Ambo2-241/+177
2020-05-22 r/812 fix(tools/emacs): Use explicit includesVincent Ambo1-8/+5
2020-05-19 r/764 feat(tools/emacs): Configure eglot to shut down automaticallyVincent Ambo1-0/+6
When all buffers related to a specific eglot instance are gone, eglot can shut down.
2020-05-17 r/751 feat(tools/emacs): Install meson-modeVincent Ambo1-0/+1
2020-05-16 r/719 refactor(tools/emacs): Move third-party overrides to //third_partyVincent Ambo1-23/+3
EXWM and vterm are overridden, but this shouldn't be happening outside of //third_party
2020-05-16 r/718 fix(tools/emacs): Configure xkb switching shortcuts on EXWM launchVincent Ambo1-15/+19
This enables half of the shortcuts for switching keyboard languages when EXWM launches. The cyrillic ones are commented out because Emacs doesn't start otherwise, I've no idea why and don't care at the moment.
2020-04-20 r/642 feat(defzone): Add plist argument format for SOA recordsVincent Ambo2-34/+52
These records have so many fields that it's difficult to track what's what in a long list. For convenience they're now specified in plist format (see the example). There isn't really a point to this because the SOA record is the one I care the *least* about practically as Cloud DNS sets it for me, but whatever.
2020-04-20 r/641 feat(defzone): Add an Emacs package for generating zone filesVincent Ambo2-0/+87
This currently only supports a small subset of available records, but I actually kind of like the nesting.
2020-04-18 r/632 feat(tools/emacs): Add screen layouts for nugget to EXWM configVincent Ambo1-9/+35
2020-04-17 r/631 feat(tools/emacs): Refactor monitor layout setup in EXWMVincent Ambo1-41/+47
vauxhall (my laptop) now has an additional screen connected at home, but sometimes I use that screen for my desktop computer (nugget). This refactors the randr configuration for EXWM to support somewhat more dynamic, multi-monitor layouts and adds key bindings to toggle between some of the different configurations I want.
2020-04-06 r/628 feat(tools/emacs): Install polymode & protobuf-modeVincent Ambo1-0/+2
... how did I not have protobuf-mode installed? What?
2020-04-04 r/627 feat(tools/emacs): Title the TVL window correctlyVincent Ambo1-0/+5
2020-04-04 r/624 fix(tools/emacs): Include date in scrot screenshot namesVincent Ambo1-1/+1
2020-04-02 r/609 fix(tools/emacs): Fix notmuch-show-open-or-close-subthreadVincent Ambo1-4/+4
Accidentally dropped a key parameter, also restored interactive functionality via prefix arguments..
2020-04-02 r/608 feat(tools/emacs): Bindings for (un)collapsing notmuch subthreadsVincent Ambo2-7/+15
Modifies notmuch-show-open-or-close-subthread to take a parameter instead of using prefix to toggle the argument, and binds that function to C-, and C-. in notmuch-show-mode-map to enable convenient collapsing/uncollapsing of subthreads from point.
2020-04-01 r/607 feat(tools/emacs): Implement 'notmuch-show-open-or-close-subthread'Vincent Ambo1-0/+13
Does what it says on the tin.
2020-03-29 r/603 feat(tools/emacs): Install eglot & dependenciesVincent Ambo1-0/+3
2020-03-11 r/599 chore(tools/emacs): Remove unimportant 'important' label from graphVincent Ambo1-1/+1
2020-03-09 r/598 fix(tools/emacs): Set correct file name format for org-journalVincent Ambo1-0/+1
2020-03-09 r/597 feat(tools/emacs): Configure org-journalVincent Ambo1-0/+24
Configures org-journal to store journal files on camden and encrypt them to my GPG key. Journal entries are weekly, with weeks starting Saturday (yes, there's a reason for this).
2020-03-09 r/596 fix(tools/emacs): Set scratch buffer to Emacs Lisp modeVincent Ambo1-1/+2
This used to be the case, but it changed to lisp-interaction-mode at some point which is incredibly annoying.
2020-03-09 r/595 chore(tools/emacs): Configure all-tags list in notmuch-helloVincent Ambo1-1/+3
I've been setting these options manually in my sessions for some reason. Let's make it official!
2020-03-08 r/594 feat(tools/emacs): Add a function to graph unread emails per labelVincent Ambo1-0/+24
This uses the built-in chart.el library to create a quick graph of the number of unread emails in each notmuch tag. Some generic tags are excluded from the overview.