Ryooooooga
a8212b9aea
implement navigate by word using alt+left/right in editor
2022-10-01 19:55:28 +09:00
Ryooooooga
3ffecb9c31
implement C-k
2022-08-26 18:41:51 +09:00
Ryooooooga
619315bf75
implement clipboard and yank
2022-08-26 18:41:51 +09:00
Ryooooooga
1ffdcd846b
Add Ctrl+W keybind to delete word like shell
2022-08-26 18:41:50 +09:00
Jesse Duffield
156fda5e04
export simple editor
2022-08-15 19:57:08 +10:00
Jesse Duffield
8bf4a4666b
more
2021-10-17 20:10:15 +11:00
Jesse Duffield
b68948e63c
fix editor problems
2021-10-17 14:52:23 +11:00
Jesse Duffield
37f7943420
remove force flushing and instead allow writing to a string to an editor
2021-04-17 21:07:45 +10:00
Jesse Duffield
de7bb5079f
prevent race condition when deleting characters in editor
2021-04-12 23:04:53 +10:00
Jesse Duffield
ee65bd542c
prevent issues from re-rendering views
2021-04-12 21:32:12 +10:00
Jesse Duffield
77a1b96317
support alt-enter key
2021-04-02 15:07:18 +11:00
Jesse Duffield
bcc4dcd991
return if trying to type a character with no width
2021-03-30 00:11:48 +11:00
Jesse Duffield
26d4f4c887
more mutexes
2021-03-30 00:11:48 +11:00
Jesse Duffield
5a8b8cb853
add write mutex to editor
2021-03-30 00:11:48 +11:00
Jesse Duffield
20cddf8f54
missed a spot
2021-02-18 19:38:41 +11:00
Jesse Duffield
77056cf8e0
prioritise editor keybindings over other views
2021-02-18 19:37:00 +11:00
Ryooooooga
967880a447
fix a bug related to inserting and deleting wide characters
...
see: https://github.com/jesseduffield/lazygit/pull/1119
2021-02-09 20:42:44 +11:00
Jesse Duffield
f5a9733d18
awesome WIP
...
WIP
WIP
WIP
WIP
WIP
2020-12-24 15:19:37 +11:00
Jesse Duffield
625842035f
keybindings in simple editor for going to start/end of line and deleting the whole line
2019-05-26 12:26:29 +10:00
Jesse Duffield
985c2f8d59
use go-errors package to give stack traces to new errors
2019-02-11 21:59:59 +11:00
Jesse Duffield
c4051ef0fb
move cursor directly rather than through function because the old way was causing issues
2018-09-05 19:02:37 +10:00
hidaruma
5d9e836837
merged jesseduffield/gocui
2018-08-25 16:27:06 +09:00
Roi Martin
75a7ad2750
Do not move the cursor beyond EOF
2017-08-19 00:06:54 +02:00
Roi Martin
ad91aa2b83
Refactoring of *View.writeRune
2017-08-18 09:21:00 +02:00
Roi Martin
2677ad0445
Fix trailing \x00 bug in edition mode
2017-08-18 01:00:47 +02:00
Roi Martin
0f8c8e3c9e
Remove unneeded parentheses
2017-08-15 21:13:34 +02:00
Roman Lisagor
d1b6db5a49
Bug fix: v.MoveCursor
with dx < -1 or dx > 1 does not work if origin needs to be adjusted
...
The existing logic moves the origin by 1 in either direction. The new logic
adjusts the origin by the appropriate amount, and moves the cursor to the
beginning or end of the line.
2017-08-15 21:11:04 +02:00
Kobe Lipkens
d666c9f652
Visually wide character support
2016-11-05 11:46:56 +01:00
Roi Martin
4e9ce9a8e2
Revert changes in *View.MoveCursor
2016-10-11 10:18:38 +02:00
Roi Martin
8d16527c1d
Fix edition mode when Editable = true
...
Fix issue #53
2016-10-11 07:37:42 +02:00
Roi Martin
4aed924ceb
Editor refactoring. Add doc. Simplify _examples.
2016-01-30 02:36:10 +01:00
Roi Martin
faa12e105a
Full mouse support. Add mouse example. Make golint happy.
...
- Full mouse support based on hazbo's initial work.
- Add example to show mouse support.
- Fix comments, naming conventions, etc. to make golint happy.
2016-01-23 16:07:42 +01:00
Roi Martin
e2590f1300
Decouple edition mode via Editor interface
2015-02-24 13:05:33 +01:00
Roi Martin
4dfc4973e0
Decouple edition mode
2015-02-24 00:26:26 +01:00
Roi Martin
4ad26839aa
Mark views as tainted when they are resized
2015-02-23 16:37:49 +01:00
Roi Martin
60388aa361
Add comments to View.editDelete()
2015-02-23 11:13:25 +01:00
Roi Martin
37e2387e4a
Minor refactoring
2015-02-23 11:09:31 +01:00
Roi Martin
e009f09eb8
Fix detection of start/end of line in View.editDelete()
2015-02-23 11:07:08 +01:00
Roi Martin
ca0f876ab6
Fix cursor behaviour of View.editDelete()
2015-02-23 10:20:22 +01:00
Roi Martin
e63645a119
Support full edition mode in non-wrapping views
2015-02-23 02:01:49 +01:00
Roi Martin
622e7cbdf9
Initial implementation of the full edition mode
2015-02-23 00:34:41 +01:00
Roi Martin
f53d985c4e
Break lines on enter when needed
2015-02-14 20:17:44 +01:00
Roi Martin
311dedb655
Move handleEdit to edit.go
2015-02-13 18:40:45 +01:00
Roi Martin
708261503b
Fix edit mode when View.Wrap is enabled
2015-02-04 01:59:03 +01:00
Roi Martin
98a2fe7a6a
Add missing LICENSE header. Fix typo in LICENSE headers
2015-01-31 20:39:43 +01:00
Roi Martin (@nibble_ds)
60c77d0e40
Refactoring of edit functions
2014-01-23 21:26:53 +01:00
Roi Martin (@nibble_ds)
79ed19102a
Add comments
2014-01-23 00:00:07 +01:00
Roi Martin (@nibble_ds)
aeeaaa4951
Add LICENSE header to edit.go
2014-01-22 23:44:42 +01:00
Roi Martin (@nibble_ds)
4b396e1d8b
Move edit functions to edit.go
2014-01-22 23:44:08 +01:00