Commit graph

300 commits

Author SHA1 Message Date
9539b2ad76
add serde 2021-04-20 04:09:12 +02:00
921377c2cc
some prototype mini utils 2021-04-19 05:02:46 +02:00
e21b888b6c
move nested into a lib crate 2021-04-19 05:02:11 +02:00
c63fd6d1f2
script to enable/disable no_deadlocks::RwLock instead of std::sync::RwLock 2021-03-30 22:47:05 +02:00
0fcf852b72
sequence.flatten: remove unnecessary mut 2021-02-17 18:21:26 +01:00
eb6dc43e53
use projection helper in terminal compositor 2021-02-17 18:18:39 +01:00
4485b3cf13
further simplify projection helper usage 2021-02-17 18:18:12 +01:00
a2d5ea7707
improve ProjectionArg, ProjectionHelper 2021-02-05 01:18:46 +01:00
8d73e67615
flatten() for SequenceViews 2021-01-24 23:49:13 +01:00
0f21a6dcd6
VecSequence: fix reset
update length in reset
2021-01-24 17:43:23 +01:00
687936b098
first CellLayout
not very efficient atm, but functional
2021-01-22 20:55:42 +01:00
ef4bdf5b1a
fix locks in StringInsertView 2021-01-22 15:39:08 +01:00
b896dd897a
add ProjectionArg helper to simplify projection views with multiple inputs 2021-01-22 14:56:56 +01:00
3514e41432
add gitignore 2021-01-19 23:18:50 +01:00
4229278369
improve vec buffer
add get_mut() and refactor wrapper methods
2021-01-19 23:15:55 +01:00
6aef446134
impl View traits for Option<V> 2021-01-19 23:12:31 +01:00
c2b4683a1a
GridView: add range() function
add GridWindowIterator from RangeInclusive
2021-01-18 22:05:57 +01:00
afaa9d220b
refactor string editor 2021-01-18 17:00:53 +01:00
d1c523335b
MapIndexItem: pass key and item to function 2021-01-18 16:59:35 +01:00
fffb23cd12
add to_sequence() in ViewPort<Vec> 2021-01-17 11:29:48 +01:00
4fceafcac4
index/sequence: get() always return Option 2021-01-16 20:19:52 +01:00
b62bfa54a0
terminal compositor: move area calculation into impl IndexView 2021-01-16 18:00:56 +01:00
0a1b4c2c23
fix warnings 2021-01-16 16:09:16 +01:00
981ec3438f
disable code causing deadlock 2021-01-16 15:31:37 +01:00
28970658c0
first VecBuffer 2021-01-16 14:03:49 +01:00
589052977c
make SequenceView a separate trait which can be converted into an IndexView with a projection 2021-01-16 13:59:48 +01:00
9d6b1aee74
add MapIndexKey 2021-01-16 13:58:31 +01:00
6fe50416b5
index view: replace range() with area() 2021-01-16 13:57:53 +01:00
f3fa8a7af1
map_item() projection for index views 2021-01-12 23:13:27 +01:00
9c21ddbda1
separate modules for index, sequence & singleton 2021-01-12 23:09:46 +01:00
c574bf6ad2
move GridView & GridOffset into separate grid module 2021-01-12 22:40:15 +01:00
f76a56f7b9
add GridOffset 2021-01-12 22:33:47 +01:00
ceb0a8a5a9
port: add_[observer|reset]_fn return the observer object instead of view
now because we use Weak in ObserverBroadcast, we need at least one Arc somewhere else
2021-01-12 22:31:19 +01:00
5007fdea3c
make Observer::reset() mutable
use RwLock in ObserverBroadcast
2021-01-11 01:18:32 +01:00
86562614cc
refactoring 2021-01-09 01:45:17 +01:00
cdd06eb9b8
add first StringEditor 2020-12-14 19:37:59 +01:00
c776a1a08e
terminal resizing events 2020-12-14 19:35:35 +01:00
eebabdda2d
add ObserverExt with notify_each() 2020-12-14 19:21:03 +01:00
49f189f3db
terminal: fix write loop 2020-12-14 19:17:51 +01:00
2a79b2753c
fix warnings 2020-12-09 17:56:33 +01:00
4a29d7a5cf
add TerminalCompositor
and some nice utilities for ports
2020-12-09 17:31:08 +01:00
62f3a85736
add terminal 2020-12-09 12:56:38 +01:00
bf56185ca1
add some operations to VecBuffer 2020-12-09 12:56:16 +01:00
9faaf8e38e
ChannelReceiver: add recv() function to receive the complete chunk instead of iterating 2020-12-09 12:51:43 +01:00
4988db36e8
move VecBuffer & SingletonBuffer into separate files 2020-12-08 15:58:23 +01:00
852e1807db
OuterViewPort: map_value() & map_key() 2020-12-08 15:51:24 +01:00
2da96c5482
add impls for Arc<dyn View> and Arc<dyn Observer> 2020-12-07 18:28:28 +01:00
ebd11796ad
improve ports
add Send+Sync as supertraits for View and Observer and notify() immutable
2020-12-07 18:09:48 +01:00
9d9f21405b
simplify singleton channel
we can directly use Option<T> without wrapping it
2020-12-05 11:31:03 +01:00
166e75a5c7
initial commit 2020-12-04 20:38:51 +01:00