Jonathan Daugherty
129da5601b
Merge master
2020-07-09 15:22:01 -07:00
Jonathan Daugherty
aad01ae748
Bump version, update changelog
2020-07-09 15:17:08 -07:00
Jonathan Daugherty
a8e48d9655
customMain: restore initial terminal input state on shutdown
...
This change ensures that the initial terminal input state flags are
restored on shutdown (regardless of exceptions) even if changes to the
state flags have occurred via 'suspendAndResume'. Prior to this change,
breaking changes to the input state flags in the last 'suspendAndResume'
before program exit were propagated to the end user's terminal
environment which could lead to broken or garbled terminal I/O.
For more details, see
https://github.com/jtdaugherty/vty/issues/187
This change also increases the lower bound on 'vty' to get access to the
API required to support this behavior.
2020-07-09 15:11:50 -07:00
Jonathan Daugherty
9e3525bf9a
Merge pull request #273 from andys8/patch-1
...
README: Add git-brunch (git checkout utility)
2020-06-12 07:42:56 -07:00
Andy
2b51306142
README: Add git-brunch (git checkout utility)
2020-06-12 13:35:02 +02:00
Jonathan Daugherty
57b1cf8845
Bump version, update changelog
2020-05-25 14:58:22 -07:00
Jonathan Daugherty
0c679531a8
maybeSelectCurrentEntry: add docstring
2020-05-25 14:55:57 -07:00
Jonathan Daugherty
36cf085c61
Merge pull request #272 from romanofski/feature/export-more-filebrowser-functions
...
RFC export current entry selection function
2020-05-25 14:52:58 -07:00
Róman Joost
70ec3db757
RFC export current entry selection function
...
This is a request for comment (RFC) commit. The motivation to export
this function is to allow users of the library to dive into directories,
but use their own distinction when to use the selected files.
2020-05-25 18:24:37 +10:00
Jonathan Daugherty
125f5b536f
Merge pull request #271 from romanofski/feature/add-home-end-keys-to-editor
...
Support Home and End keys in the editor
2020-05-10 07:55:44 -07:00
Róman Joost
144704088e
Support Home and End keys in the editor
...
This adds handlers to support pressing Home and End keys to jump to the
beginning as well as the end. The keys are typically supported by almost
all text input widgets and now provided by Brick as well.
2020-05-10 16:46:07 +10:00
Jonathan Daugherty
5b94b596c4
Clarify meaning of "escapes" in some comments
2020-05-02 15:55:28 -07:00
Jonathan Daugherty
b60917e37c
Bump version, update changelog
2020-05-01 08:40:15 -07:00
Jonathan Daugherty
9ab39545a2
takeColumns: take even zero-width characters as long as possible
...
This change makes it so that takeColumns (which is used by 'str' to
account for the widths of Unicode characters) will continue taking
characters that do not exhaust the allowed width, meaning that it will
now take zero-width characters. Previously it stopped taking characters
as soon as it exhausted the allowed width and that meant it would ignore
zero-width characters following that point.
2020-04-27 09:06:55 -07:00
Jonathan Daugherty
8b5021ff4e
Travis: build demo programs
2020-04-23 09:48:59 -07:00
Jonathan Daugherty
e9f661564f
Merge pull request #269 from jchia/ghc-8.10
...
Bumped base version constraint to allow GHC 8.10 and update GHC 8.8.1 to 8.8.3
2020-04-23 09:47:38 -07:00
Joshua Chia
b4727b5858
Updated .travis.yml
...
- Added GHC 8.10
- Updated GHC 8.8.1 to 8.8.3
2020-04-24 00:39:17 +08:00
Joshua Chia
e981c09673
Bumped base version constraint to allow GHC 8.10
2020-04-23 23:54:01 +08:00
Jonathan Daugherty
e5a1efc6f4
README: add wrapping-editor project
2020-04-10 16:10:06 -07:00
Jonathan Daugherty
4a6b0d8436
Merge pull request #267 from JaSpa/patch-1
...
Defer to horizontal widget size in `vLimitPercent`
2020-04-10 09:18:48 -07:00
Janek Spaderna
3350841d4e
Defer to correct widget size in vLimitPercent
...
The first constructor element is the widgets horizontal sizing policy, which comes from the wrapped widget.
2020-04-10 12:29:52 +02:00
Jonathan Daugherty
7eeb86e498
Bump version, update changelog
2020-03-29 19:11:37 -07:00
Jonathan Daugherty
eb857e6bb1
AttrMap: merge styles while folding attribute map lookup results
...
This change fixes a bug where a more general attribute map entry applied
a style that was not inherited by more specific map entries. This bug
led to the more specific entry's style taking precedence over the style
of the less specific entry, which is not the expected behavior. This
change fixes that behavior so that less specific entry styles are merged
with more specific entry styles.
2020-03-29 19:08:43 -07:00
Jonathan Daugherty
7f5e6307ec
cabal: update description
2020-03-04 08:04:08 -08:00
Jonathan Daugherty
4947938e57
Re-enable unused do binding warning, lower -O3 to -O2, and add -Wcompat for all libs and executables
2020-02-28 15:05:48 -08:00
Jonathan Daugherty
670f48d061
txtWrapWith: remove now-redundant single-line case
2020-02-27 09:36:24 -08:00
Jonathan Daugherty
ab7e3aa50a
txtWrapWith: also pad in the single-line case (see also 926d317c46
, #234 , and #263 )
2020-02-27 09:29:45 -08:00
Jonathan Daugherty
8f91747bd3
Bump version, update changelog
2020-02-13 17:55:43 -08:00
Jonathan Daugherty
08413fcb86
Types: fix base version check for MonadFail import again
2020-02-13 17:44:38 -08:00
Jonathan Daugherty
08d193e76c
Types: fix base version check for MonadFail import
2020-02-13 17:39:48 -08:00
Jonathan Daugherty
8353a6eb35
EventM: derive MonadFail
2020-02-13 17:28:46 -08:00
Jonathan Daugherty
cfc8b2152f
Forms: whitespace
2020-02-07 16:45:43 -08:00
Jonathan Daugherty
7534f4d7be
Clean up compilation warnings on newer GHCs
2020-02-07 16:43:36 -08:00
Jonathan Daugherty
edfe565992
Forms: remove redundant import
2020-02-07 16:29:45 -08:00
Jonathan Daugherty
79474295c3
Forms: improve module documentation
2020-02-07 16:28:09 -08:00
Jonathan Daugherty
0febb15bc3
Forms: document all arguments to radioCustomField
2020-02-07 16:22:35 -08:00
Jonathan Daugherty
874ee51596
Whitespace
2020-02-07 16:21:38 -08:00
Jonathan Daugherty
ad1c3f70fa
Merge pull request #261 from frasertweedale/MonadMask
...
EventM: derive MonadMask, MonadCatch, and MonadThrow
2020-02-07 08:13:51 -08:00
Fraser Tweedale
dde8ccf5df
add instance MonadMask (EventM n)
2020-02-06 11:00:08 +10:00
Jonathan Daugherty
8bfff26b39
FileBrowser: add support for vi-style bindings (relevant to #259 )
...
* j/k: next/previous element
* C-n/C-p: page down/up
* C-d/C-u: half page down/up
* g: select first entry
* G: select last entry
2020-02-02 14:20:08 -08:00
Jonathan Daugherty
b450a0421c
Whitespace
2020-02-02 14:12:35 -08:00
Jonathan Daugherty
21ee0416a4
Whitespace
2020-02-02 14:05:22 -08:00
Jonathan Daugherty
9d5140f20b
Bump version, update changelog
2020-02-01 08:23:51 -08:00
Jonathan Daugherty
3199911894
brick.cabal: include demo program screenshots content in manifest
2020-02-01 08:23:29 -08:00
Jonathan Daugherty
5a23f8d1b7
focusRingToList: update docstring
2020-02-01 08:17:15 -08:00
Jonathan Daugherty
3fd5a2af07
Merge pull request #258 from 4eUeP/master
...
Focus: add focusRingToList function
2020-02-01 08:15:39 -08:00
mu
f97943c8ea
Focus: add focusRingToList function
2020-02-01 11:04:28 +08:00
Jonathan Daugherty
ed86fcb8f8
Whitespace
2020-01-27 18:44:39 -08:00
Jonathan Daugherty
a5d647e6e2
fileExtensionMatch: update docs
2020-01-27 18:44:36 -08:00
Jonathan Daugherty
e690e7089b
Merge pull request #256 from Yvee1/patch-1
...
Fix directories not showing up with fileExtensionMatch
2020-01-27 14:45:35 -08:00