1
0
Эх сурвалжийг харах

Enforced spelling for markdown files in vim

arianagiroux 3 долоо хоног өмнө
parent
commit
3b7818cafc
4 өөрчлөгдсөн 20 нэмэгдсэн , 3 устгасан
  1. 1 0
      .gitignore
  2. 3 0
      .vimrc
  3. 4 0
      Readme.md
  4. 12 3
      main.go

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
 .undodir
+.local.utf*

+ 3 - 0
.vimrc

@@ -1,3 +1,6 @@
 nmap <leader>g :!go run %
 nmap <leader>gdl :!go doc -u -all ./pkg/logic/
 nmap <leader>gdm :!go doc -u -all .
+
+autocmd BufReadPre,BufNewFile *.txt,*.md setlocal spell spellfile=./.local.utf-8.add
+set spellfile=./.local.utf-8.add

+ 4 - 0
Readme.md

@@ -10,6 +10,10 @@ additionally, see `bin/` for additional pre-compiled binaries
 
 - main.go:// TODO(main): set chart height by user flag
 - main.go:// TODO(main): determine chart heights dynamically by number of addresses
+- main.go:// TODO(performance): implement ping message channel buffering
+- main.go:// TODO(tui): notify user when an address is not resolving
+
+> NOTE: generate this list via `git grep '// TODO' -- ':(exclude)Readme.md'`
 
 # Core
  - [x] Implements Bubbletea framework

+ 12 - 3
main.go

@@ -1,6 +1,16 @@
+// A simple TUI application that charts latency times to specified hosts.
+//
 // TODO(main): set chart height by user flag
+//
 // TODO(main): determine chart heights dynamically by number of addresses
-
+//
+// TODO(performance): implement ping message channel buffering
+//
+// TODO(tui): notify user when an address is not resolving
+//
+//	i.e, change the address title to red so long as there is a single -1 in
+//	the display buffer, and a toast notification (???) if a display buffer is
+//	entirely composed of -1
 package main
 
 import (
@@ -22,8 +32,7 @@ func main() {
 		fmt.Println("Must specify hosts!")
 		return
 	}
-	var model = tui.InitialModel( // TODO(argv) set args via argv
-		// []string{"doesntresolve.comdoasdf", "google.ca"},
+	var model = tui.InitialModel(
 		hosts, time.Duration(*speed),
 	)