aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/syntax (follow)
Commit message (Collapse)AuthorAgeFilesLines
* global: bump dateJason A. Donenfeld2022-01-062-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: interface{} -> anyJason A. Donenfeld2021-12-161-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: apply gofumptJason A. Donenfeld2021-12-092-20/+20
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: use unsafe.Add where possibleJason A. Donenfeld2021-10-121-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: support turning off automatic routing tableJason A. Donenfeld2021-06-182-3/+21
| | | | | | | This supports the familiar "Table = off" syntax as on Linux, and then interprets other valid values as simply "on". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump copyright dateJason A. Donenfeld2021-02-012-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: update headersJason A. Donenfeld2020-11-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: enable {Pre,Post}{Up,Down} scripts gated behind admin knobJason A. Donenfeld2020-11-221-3/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: switch to using %w instead of %v for ErrorfJason A. Donenfeld2020-11-131-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: port to goSimon Rozman2020-11-136-1158/+1013
| | | | | | | | | Arm has no CGo support, so port the syntax editor C code to Go and hope that it's fast enough. This is a pretty literal/unsafe translation from the C. Signed-off-by: Simon Rozman <simon@rozman.si> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: skip highlights if too many spansJason A. Donenfeld2020-06-091-5/+9
| | | | | | | | The rich text control is slow, so keep in plain text if there's too many. Suggested-by: Simon Rozman <simon@rozman.si> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: update to latest from wireguard-tools, for dns search domainsJason A. Donenfeld2020-06-052-7/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: insist on 256-bit keys, not 257-bit or 258-bitJason A. Donenfeld2020-04-041-2/+23
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: disable events when highlightingJason A. Donenfeld2019-12-111-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: allow (Shift+)Tab to move focus to sibling controls in RichEditSimon Rozman2019-10-261-0/+8
| | | | | | | | | | | With RTF control consuming Tab and Enter keystrokes, there was no way to create or edit a tunnel using keyboard only. This was a major concern for accessibility. Should user want to explicitly insert \t into configuration, one can use Ctrl+Tab, paste it, or use Alt+09 (on numeric keyboard). Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: fix popup menu placement in syntaxeditSimon Rozman2019-09-131-3/+4
| | | | | | | When pop-up menu is invoked using keyboard, the coordinates are (-1,-1). However, LOWORD/HIWORD return (65535, 65535). Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: syntax: support Shift+Ins pasting tooSimon Rozman2019-09-051-5/+5
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: syntax: xor colors with backgroundSimon Rozman2019-09-051-1/+8
| | | | | | | | | | This makes syntax highlighting retain text contrast on black background (e.g. high-contrast mode) Maybe using a smarter arithmetic than XOR could be used to retain errors in red. They turn cyan on black background now. Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: add layout item helper for new layout systemJason A. Donenfeld2019-07-171-0/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: correct names and patterns for go lintJason A. Donenfeld2019-05-161-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: react to DPI changes in syntax editorJason A. Donenfeld2019-05-163-4/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: syntax: rehighlight on DPI changeJason A. Donenfeld2019-05-131-0/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: syntax: fix indentationJason A. Donenfeld2019-05-131-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: syntax: implement trafic blocking semanticsJason A. Donenfeld2019-05-053-2/+86
| | | | | | This is our "auto kill switch". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: replace PrivateKeyEvent with walk.StringEventAlexander Neumann2019-04-231-37/+2
| | | | | Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: syntax: guard calls to highlightJason A. Donenfeld2019-04-151-13/+17
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: initial stab at a better confviewJason A. Donenfeld2019-03-123-352/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: lazily load ui libraryJason A. Donenfeld2019-03-074-12/+10
| | | | | | | This way we don't have msftedit.dll loaded into the address space of the process doing real crypto. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: safe dll loadingJason A. Donenfeld2019-03-062-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntaxeditor: reject keys we don't parseJason A. Donenfeld2019-03-051-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: add temporary confview disgusting kludgeJason A. Donenfeld2019-03-053-0/+353
| | | | | | | This is not the right way to show this information and this commit should be reverted as soon as we have a real UI. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* syntax: flat borderJason A. Donenfeld2019-03-022-2/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: move walk to go module replace operationJason A. Donenfeld2019-02-281-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: move syntaxedit to sub-packageJason A. Donenfeld2019-02-285-0/+1144
This speeds up compilation time considerably by not needing to invoke cgo for changes in the main UI. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>