117 Commits

Author SHA1 Message Date
bbdccb0ff6 Disable syntax highlighting 2025-05-02 14:41:42 -05:00
Luke I. Wilson
25dfc2efe2 Redundancy 2023-08-24 18:53:55 -05:00
Luke I. Wilson
176a6a1b95 Update dependencies 2023-08-24 18:36:46 -05:00
Luke Wilson
2947128857 A lot of changes that I wasn't able to properly commit months ago 2021-08-20 18:58:09 -05:00
Luke Wilson
7074a250a1 Update readme: there is no planned scripting language 2021-04-17 13:06:33 -05:00
Luke Wilson
35464ca714 Updated screenshots 2021-04-17 12:25:44 -05:00
Luke Wilson
fe6970508d Changed project layout and updated readme 2021-04-15 11:59:25 -05:00
Luke Wilson
27b2f564eb Cut TextEdit Draw time in half 2021-04-13 13:12:28 -05:00
Luke Wilson
b9a8b0040a Replace manual utf8.DecodeRune with range string loops 2021-04-13 12:31:42 -05:00
Luke Wilson
06d12b0415 Code tidy 2021-04-13 11:32:22 -05:00
Luke Wilson
2755630929 Upgrade go version 2021-04-13 11:30:03 -05:00
Luke Wilson
1dbba289c8 Make dependencies direct and upgrade go-runewidth 2021-04-13 11:22:52 -05:00
Luke Wilson
faa9c2c410 Added rope buffer anchors test 2021-04-13 11:19:23 -05:00
Luke Wilson
3bf5e6dfd7 Implemented anchors for rope buffer 2021-04-13 11:05:01 -05:00
Luke Wilson
8d775804cb Reimplement simple selection 2021-04-12 18:57:59 -05:00
Luke Wilson
b0ca65a613 Fix not applying cursor operation 2021-04-12 17:48:00 -05:00
Luke Wilson
d96c2f6f03 Refactored cursor architecture into buffer module 2021-04-12 17:38:29 -05:00
Luke Wilson
59856c5e41 Panel: change reference to Focused -> focused 2021-04-12 10:53:25 -05:00
Luke I. Wilson
e0079bbdb5 Panel: inherit from baseComponent struct 2021-04-08 18:39:06 -05:00
Luke I. Wilson
70e32e0b5c Merge branch 'panels' 2021-04-08 13:05:13 -05:00
Luke I. Wilson
8346c52167 Added baseComponent to ui to save boilerplate lines 2021-04-08 12:41:24 -05:00
Luke I. Wilson
2e128e5b36 Remove temporary comments from main.go 2021-04-08 11:11:09 -05:00
Luke I. Wilson
14ba338de9 PanelContainer: bug fix on destroying a panel
This commit fixes a bug where destroying a Panel with a parent of
kind PanelKindSplit... causes the selected to become that split
panel, instead of a child. Now, it chooses the leftmost child of
that parent panel.
2021-04-07 23:03:20 -05:00
Luke I. Wilson
5df772e568 TextEdit: only hide cursor when unfocused 2021-04-07 22:05:58 -05:00
Luke I. Wilson
8142bb2de5 Autofocus new panels 2021-04-07 21:51:18 -05:00
Luke I. Wilson
baafcf3d5c TextEdit: Colorscheme "Column" style + changed column appearance 2021-04-07 21:45:38 -05:00
Luke I. Wilson
cdeb3be359 TabContainer & Theme fixes to better show focused state of TabContainer and MenuBar 2021-04-07 21:06:36 -05:00
Luke I. Wilson
eb17dfec2e Transfer focus to panelContainer on some Menu callbacks 2021-04-07 19:55:11 -05:00
Luke I. Wilson
e7e459b16f PanelContainer: code cleanup 2021-04-07 14:55:20 -05:00
Luke I. Wilson
56b89c6079 PanelContainer: Implement cycling selection 2021-04-07 13:56:32 -05:00
Luke I. Wilson
459087e6d8 PanelContainer: removed multiple comments 2021-04-06 14:35:55 -05:00
Luke I. Wilson
389276ee34 PanelContainer: Bug fixes and integration 2021-04-06 11:14:17 -05:00
Luke I. Wilson
c40be89564 PanelContainer: Floating Panels, but not quite? 2021-04-06 10:06:02 -05:00
Luke I. Wilson
95e4db4d3e PanelContainer: SwapNeighborsSelected() to split left and split top 2021-04-05 17:31:16 -05:00
Luke I. Wilson
cf5803c464 Splitting Panels 2021-04-05 17:15:57 -05:00
Luke I. Wilson
eb8142ea8e PanelContainer: SetFocus and HandleEvent properly 2021-04-05 17:03:52 -05:00
Luke I. Wilson
25b416da3d Injected new PanelContainer into mainloop to replace TabContainer 2021-04-05 16:55:16 -05:00
Luke I. Wilson
03c8c3bcad Created Panel and PanelContainer untested code 2021-04-05 16:22:40 -05:00
Luke I. Wilson
0918afc483 Fixed not setting TextEdit's FilePath field in Save As function 2021-04-05 10:30:51 -05:00
Luke I. Wilson
ccb096a3f6 Add GotoLineDialog and Search->Go to line functionality 2021-04-04 20:00:47 -05:00
Luke I. Wilson
3982628653 Ran go fmt *.go on all sources 2021-04-04 13:15:31 -05:00
Luke I. Wilson
e115855491 TextEdit highlighting: update lang definition 2021-04-04 11:09:34 -05:00
Luke I. Wilson
0c44bd0312 Fix nil ptr bug
Something weird was happening with keeping a global interface
tcell.Screen. Instead, decided to keep a global pointer to interface
*tcell.Screen. I suspect the Go compiler did not see that screen
was supposed to escape to the heap, and so it was kept as a main()
function-scope variable.
2021-04-04 10:34:55 -05:00
Luke I. Wilson
ca68b8d7fa TextEdit: naive fix to rendering selection around hard tabs 2021-04-04 09:36:56 -05:00
Luke I. Wilson
0e0f4b9339 Replaced background style 2021-04-04 08:33:42 -05:00
Luke I. Wilson
28e9af70eb InputField: replace buffer with byte buffer and update appearance 2021-04-04 08:30:09 -05:00
Luke I. Wilson
1b50aff0c6 Main: fix cut selection deleting selection before copying. 2021-04-02 15:05:59 -05:00
Luke I. Wilson
d1dd389dba Main: more robust error handling.
Previously, the editor would panic at any error. After I recently
implemented dialogs, I changed all panics to create error dialogs,
instead. This will make the editor more stable.
2021-04-02 14:30:38 -05:00
Luke I. Wilson
f64af6fa29 DrawStr: made more efficient and renders newline characters
Before, DrawStr would copy all bytes into a []rune slice, and later
copy the rune slice (by accident) in the for i, v := range loop. Now,
it uses a []byte slice and iterates with for i := range slice.
2021-04-02 13:30:37 -05:00
Luke I. Wilson
9192d35b3c Implement Save As and have Save redirect to Save As when the file is unnamed 2021-04-01 21:07:28 -05:00