Jari Vetoniemi
|
994d6074bc
|
Stop assuming filter is static array anymore.
|
2014-04-12 23:09:35 +03:00 |
|
Jari Vetoniemi
|
3f0f507e4f
|
Improve CMakeLists and make stuff installable.
|
2014-04-12 22:42:37 +03:00 |
|
Jari Vetoniemi
|
27b71db67a
|
Add TODO about options.
|
2014-04-12 22:15:46 +03:00 |
|
Jari Vetoniemi
|
06972a3579
|
CLI interface, aka option parsing.
|
2014-04-12 22:12:44 +03:00 |
|
Jari Vetoniemi
|
01ff5f48ed
|
The list will be copied now.
|
2014-04-12 20:56:00 +03:00 |
|
Jari Vetoniemi
|
ab54f2bc07
|
Here be dragons comments.
|
2014-04-12 20:55:45 +03:00 |
|
Jari Vetoniemi
|
f03e03cdd9
|
Make filter to pointer.
|
2014-04-12 20:52:29 +03:00 |
|
Jari Vetoniemi
|
5599e1aa8e
|
Store tmp to tokv in for loop, so we can free it if something fails.
|
2014-04-12 20:52:01 +03:00 |
|
Jari Vetoniemi
|
6692f73c5c
|
Meh, no (null) it's empty if it's empty.
|
2014-04-12 20:51:32 +03:00 |
|
Jari Vetoniemi
|
bfc53136c8
|
Add print attribute and fix warning it catched.
|
2014-04-12 20:21:40 +03:00 |
|
Jari Vetoniemi
|
d54381f009
|
Fix out of bound access, and provide better tokenize api.
|
2014-04-12 20:16:33 +03:00 |
|
Jari Vetoniemi
|
e738ae1772
|
Discard unprintable single width characters instead.
|
2014-04-12 19:59:58 +03:00 |
|
Jari Vetoniemi
|
57e76dda1c
|
Cleanup header includes.
|
2014-04-12 19:59:45 +03:00 |
|
Jari Vetoniemi
|
311e4b3676
|
Use strcspn instead of strtok
|
2014-04-12 19:59:21 +03:00 |
|
Jari Vetoniemi
|
cd73a1ba61
|
Read items from stdin nicer (assumes stdin can fit on one buffer)
|
2014-04-12 19:21:40 +03:00 |
|
Jari Vetoniemi
|
042448798d
|
Add more keybindings to curses interface.
|
2014-04-12 18:44:52 +03:00 |
|
Jari Vetoniemi
|
3ad042c625
|
S-Return (C-t, insert in curses) should return input, C-Return is mark. (C-r, C-space in curses)
|
2014-04-12 18:44:03 +03:00 |
|
Jari Vetoniemi
|
ad4e0425a6
|
Make page scrolling work like it should. (Shfit+pgup/pgdwn for old
behaviour)
|
2014-04-12 18:42:30 +03:00 |
|
Jari Vetoniemi
|
fc08cb9cff
|
Dmenu outputs input text, if no matches were found.
|
2014-04-12 14:38:42 +03:00 |
|
Jari Vetoniemi
|
9e9b671fa3
|
Remove highlight logic from filters, it does not belong there.
Plus it seems dmenu always just highlights first item on filter change.
|
2014-04-12 14:36:12 +03:00 |
|
Jari Vetoniemi
|
544b1973c4
|
Why is this here? Remove commented memmove.
|
2014-04-12 14:16:25 +03:00 |
|
Jari Vetoniemi
|
f2608c3c64
|
Handle empty items.
|
2014-04-12 14:15:37 +03:00 |
|
Jari Vetoniemi
|
9d867bea0c
|
Sort results like dmenu does.
|
2014-04-12 12:56:34 +03:00 |
|
Jari Vetoniemi
|
471046d1b2
|
Make comparator functions follow standard more.
|
2014-04-12 12:55:05 +03:00 |
|
Jari Vetoniemi
|
058d8a98ed
|
Try ncursesw and then ncruses as fallback.
|
2014-04-12 11:15:22 +03:00 |
|
Jari Vetoniemi
|
29c34b0861
|
Consistency.
|
2014-04-12 00:01:06 +03:00 |
|
Jari Vetoniemi
|
46486abc64
|
Delete is emitted on mac terminal.
|
2014-04-12 00:00:39 +03:00 |
|
Jari Vetoniemi
|
5a0a2659ed
|
Cleanup dmenu filter.
|
2014-04-11 23:58:36 +03:00 |
|
Jari Vetoniemi
|
3c6e167578
|
Silly me, why not just get the highlighted item once..
|
2014-04-11 23:58:09 +03:00 |
|
Jari Vetoniemi
|
28a44b9e41
|
Add cast for conversion when type isn't unsigned.
|
2014-04-11 23:11:54 +03:00 |
|
Jari Vetoniemi
|
c82ebb768c
|
Support mac, duplicate stdin/stdout to make piping possible.
|
2014-04-11 23:09:01 +03:00 |
|
Jari Vetoniemi
|
48cf42f0c9
|
Buffer grown too much.
|
2014-04-11 02:02:11 +03:00 |
|
Jari Vetoniemi
|
cc93ff905f
|
Draw lines properly.
|
2014-04-11 01:59:50 +03:00 |
|
Jari Vetoniemi
|
40bd036c53
|
Free the old list.
|
2014-04-11 01:59:05 +03:00 |
|
Jari Vetoniemi
|
dfdb810099
|
This is actually better without the count check.
|
2014-04-11 00:40:21 +03:00 |
|
Jari Vetoniemi
|
590c5d9f85
|
Undef get_wch
|
2014-04-10 23:50:55 +03:00 |
|
Jari Vetoniemi
|
8e0dd1ab39
|
Make it possible to set filter text manually.
|
2014-04-10 23:05:37 +03:00 |
|
Jari Vetoniemi
|
71beb7583f
|
Make it possible filter manually, and optimized filtering.
|
2014-04-10 23:05:13 +03:00 |
|
Jari Vetoniemi
|
45e2117159
|
Don't run filtering if there is no filter.
|
2014-04-10 22:15:01 +03:00 |
|
Jari Vetoniemi
|
45502a2fd9
|
Proper filtering functions.
|
2014-04-10 22:02:47 +03:00 |
|
Jari Vetoniemi
|
05212f5e44
|
Improve documentation.
|
2014-04-10 20:19:15 +03:00 |
|
Jari Vetoniemi
|
1f51a67589
|
Don't sort documentation members.
|
2014-04-10 20:15:25 +03:00 |
|
Jari Vetoniemi
|
49fc7cd08c
|
Include index parameter in documentation.
|
2014-04-10 20:12:42 +03:00 |
|
Jari Vetoniemi
|
9525c77f55
|
Setter first, then getter.
|
2014-04-10 20:11:41 +03:00 |
|
Jari Vetoniemi
|
702d808b28
|
Make it possible to set and get userdata pointers.
|
2014-04-10 20:09:34 +03:00 |
|
Jari Vetoniemi
|
a6d0413b97
|
Implement list structure, and feature for multiple selections.
|
2014-04-10 20:04:06 +03:00 |
|
Jari Vetoniemi
|
16e023aa3e
|
Assert and whitespace.
|
2014-04-10 20:02:27 +03:00 |
|
Jari Vetoniemi
|
e874818889
|
Cleanup curses better.
|
2014-04-10 20:01:34 +03:00 |
|
Jari Vetoniemi
|
8631506d9d
|
Update documentation, include only public API in doxygen output.
|
2014-04-10 17:26:42 +03:00 |
|
Jari Vetoniemi
|
4a931c5ed4
|
Nicer doxygen output
|
2014-04-10 15:48:55 +03:00 |
|