Commit Graph

10 Commits

Author SHA1 Message Date
Érico Nogueira a265492706 Add intial query command line option.
It has an existing bug where the filter is only applied after the first
user interaction.
2022-08-13 00:19:05 -03:00
Érico Nogueira 69efce1d95 Add print_prompt funtion. 2022-08-13 00:11:32 -03:00
Érico Nogueira 55ae15eb6f Token length is now limited.
Otherwise it's necessary to be able to propagate back into the token
list the new location of a resized string.
2022-08-13 00:05:50 -03:00
Érico Nogueira a0951f2aa5 Only deal with ASCII printable characters.
At least for now, it's easier than dealing with unicode properly.
2022-08-13 00:05:50 -03:00
Érico Nogueira 8bf7ceef41 Clean up ef.c.
Use do{ /*things*/ }while(0) for macro with code, update comments and remove
unnecessary one.
2022-08-12 23:48:50 -03:00
Érico Nogueira ec6014a0e5 Duplicate stdin fd before reading from it.
Otherwise, stdin will have an error state of EOF, leading to wgetch()
returning -1, which is unexpected, given that we polled the file
descriptor for data.
2022-08-12 23:48:50 -03:00
Érico Nogueira 8f38a81690 Add some command line options.
- delimiter choice
- compatibility with fzf
2022-08-12 23:48:50 -03:00
Érico Nogueira b734660c96 Use poll(3) and self pipe for signal handling.
Actually safe to perform the terminal cleanup here. We keep using
exit(3) and quick_exit(3) so that only one of them actually prints the
results to the screen.
2022-08-12 23:48:36 -03:00
Érico Nogueira a0ce797775 Use /dev/tty instead of stderr for interactivity. 2022-08-12 15:03:10 -03:00
Érico Rolim 4e174d9126 Rename executable to ef.
Maybe ef for "érico's finder"?

Also add install target.
2021-01-08 02:02:52 -03:00