Jesse Duffield
d99ac1a5a2
extend mouse events to include view frame edges
2019-06-29 10:35:26 +10:00
Jesse Duffield
e030e03fac
allow ignoring carriage returns on a view
2019-06-23 08:12:29 +10:00
Jesse Duffield
619845fffd
support tabs on views
2019-06-09 12:01:46 +10:00
Jesse Duffield
efab7b041c
reset escape interpreter on clear, and clear with a lock
2019-06-05 20:07:02 +10:00
Jesse Duffield
77d7618000
add IsTainted function
2019-05-18 20:00:17 +10:00
Jesse Duffield
9f871b6b9d
use defer rather than call unlock at end of function
2019-05-18 12:49:10 +10:00
Jesse Duffield
3cd3a41702
use mutex when writing to views to prevent out of bounds panics
2019-05-18 12:44:28 +10:00
Jesse Duffield
e70eea4359
add loader animations to views with the HasLoader bool set
2019-02-15 20:51:46 +11: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
cfa9e452ba
don't truncate lines on wrapped views
2019-01-15 19:47:58 +11:00
Jesse Duffield
fe55a32c8a
convert tab runes to 4 spaces
2018-12-09 21:47:58 +11:00
Jesse Duffield
03e26ff3f1
use LinesHeight instead of ViewLinesHeight
2018-09-21 16:56:32 +10:00
Jesse Duffield
4fca348422
missed a couple of imports that I need to switch to my fork of termbox
2018-09-19 19:58:27 +10:00
Tommy Nguyen
9cfb2a5aad
view.go: add ViewLinesHeight()
2018-09-16 23:28:09 -04:00
Jesse Duffield
2cb6e95bbb
support subtitles on panels
2018-09-05 20:40:05 +10:00
hidaruma
5d9e836837
merged jesseduffield/gocui
2018-08-25 16:27:06 +09:00
Jesse Duffield
8cecad864f
use dimensions method rather than function
2018-08-12 11:49:26 +10:00
Jesse Duffield
b46a743016
make view dimensions accessible
2018-08-12 11:33:36 +10:00
Jesse Duffield
b8c5d2cb4c
support collapsed edges (WIP)
2018-08-05 21:44:09 +10:00
Jesse Duffield
677cd7d1d5
bold highlighted text
2018-06-05 18:43:49 +10:00
gulyasm
c055c87ae8
adds ViewBufferLines to View
2018-04-11 17:57:51 +02:00
gulyasm
2cda4f9f05
adds BufferLines func to View
2018-04-11 17:57:51 +02:00
Roi Martin
2677ad0445
Fix trailing \x00 bug in edition mode
2017-08-18 01:00:47 +02:00
Roi Martin
78f1aee25c
Set viewLines to nil on *View.Clear()
2016-11-14 21:56:17 +01:00
Roi Martin
aacdc2698f
Rewind on *View.Clear()
2016-11-14 01:12:37 +01:00
Dustin Willis Webber
ff841413b6
256 OutputMode support
2016-11-13 14:06:04 -05:00
Kobe Lipkens
d666c9f652
Visually wide character support
2016-11-05 11:46:56 +01:00
Roi Martin
aa4ac778d3
Move Editor into View. Update docs
2016-10-27 00:43:28 +02:00
Roi Martin
c0ae071931
Use *Gui.{SelFgColor,SelBgColor} to set current view's color
...
- Use *Gui.{FgColor,BgColor} to set GUI's color.
- Use *Gui.{SelFgColor,SelBgColor} to set current view's color.
- Drop *Gui.ActiveColor and *View.ActiveColor.
2016-10-18 22:49:31 +02:00
Roi Martin
463428abda
Minor refactoring. Update examples
2016-10-18 00:24:16 +02:00
Henri Koski
7779534f95
Add attribute ActiveColor to configure the color of the current view
2016-10-17 23:25:56 +02:00
Roi Martin
d822523f8c
Make golint happy. Fix typo.
2016-10-11 08:52:03 +02:00
Roi Martin
8d16527c1d
Fix edition mode when Editable = true
...
Fix issue #53
2016-10-11 07:37:42 +02:00
Roi Martin
2e62b6ba19
Respect view's default background and foreground colors
...
Fix issue #58
2016-10-03 19:38:40 +02:00
Roi Martin
a67a34cd60
Use View's default colors in View.writeRune
2016-05-23 00:16:59 +02:00
Roi Martin
40dec91023
Initial support for colored text
...
- View contents are stored as cells (rune + colors) instead of runes.
- Uses the escape interpreter coded by @deweerdt in #39 .
2016-05-23 00:16:59 +02:00
Roi Martin
0707386452
Fix #50 : highlight for wrapped lines
2016-05-17 22:40:24 +02:00
Roi Martin
7ffb37ef13
Add example for mask
2016-04-20 14:34:09 +02:00
Danny Tylman
65dfdbf77a
Add support for masked views
2016-04-20 14:33:14 +02:00
Roi Martin
bb01d13a95
Add view title (based on the implementation of @conejoninja)
2016-02-06 14:50:30 +01:00
Roi Martin
4aed924ceb
Editor refactoring. Add doc. Simplify _examples.
2016-01-30 02:36:10 +01:00
Roi Martin
e5bf60e36b
Add method View.ViewBuffer
2015-08-16 18:08:34 +02:00
Roi Martin
4dfc4973e0
Decouple edition mode
2015-02-24 00:26:26 +01:00
Roi Martin
622e7cbdf9
Initial implementation of the full edition mode
2015-02-23 00:34:41 +01:00
Roi Martin
b1ad4a9fa7
Remove internal call to View.SetCursor() and fix comment
2015-02-16 23:39:37 +01:00
Roi Martin
03998dd72c
Refactor View.breakLine()
2015-02-15 02:17:13 +01:00
Roi Martin
f53d985c4e
Break lines on enter when needed
2015-02-14 20:17:44 +01:00
Roi Martin
0e85b51ed2
Remove View.WrapPrefix
2015-02-04 10:37:15 +01:00
Roi Martin
0992dc1df0
Fix bug in realPosition() when len(v.viewLines) == 0
2015-02-04 09:25:25 +01:00
Roi Martin
708261503b
Fix edit mode when View.Wrap is enabled
2015-02-04 01:59:03 +01:00