Commit graph

276 commits

Author SHA1 Message Date
Martin Dvorak
8ce60a877d Polishing and optimizing includes which resolves #290. 2018-08-13 17:04:31 +02:00
Martin Dvorak
439d746c7a Long highlighted lines are elided which resolves #149. 2018-08-13 17:04:31 +02:00
Martin Dvorak
ae05fdae83 Removing hstr as param - it's static, resolves #291. 2018-08-13 17:04:31 +02:00
Martin Dvorak
64d39992a5 Introducing long lines elide w/ unit tests which resolves #149. 2018-08-13 17:04:31 +02:00
Martin Dvorak
98b17abd77 Polishing source code - pointer type signature convention. 2018-08-13 17:04:31 +02:00
Martin Dvorak
5c05a89b9b Adding back view rotation help (C+7 is documented in man). 2018-08-13 17:02:53 +02:00
Martin Dvorak
516e42e44a Fixing view rotation on macOS by OS specific keybinidng (C+w) which resolves #182. 2018-08-13 17:02:53 +02:00
Martin Dvorak
d201ef1f84 Ensuring that functions declarations indicate that they have no parameters which resolves #252 2018-08-13 17:02:53 +02:00
Martin Dvorak
f73da7dd18 Adding hashset unit tests, introducing unit tests scripts, refactoring old scripts and test code. 2018-08-13 17:02:53 +02:00
Martin Dvorak
742c51c756 Introducing new main() to enable creation of UNIT tests. 2018-08-13 17:02:53 +02:00
Martin Dvorak
f9ee27a783 Fixing wrong hh vs. hstr command name on WSL which resolves #236 2018-08-13 17:02:14 +02:00
Martin Dvorak
91a8a8a447 Adding initalization of radixsort debug level which resolves #107. 2018-08-13 17:00:22 +02:00
Martin Dvorak
19e9271161 Fixing all unsigned/signed warnings. 2018-08-13 17:00:22 +02:00
Martin Dvorak
be8cf523e9 HSTR can be build w/ qmake, polishing copyright years. 2018-08-13 16:59:32 +02:00
Anton Anikin
1be55e04ce Fix shell name detection 2018-05-11 11:10:24 +08:00
Martin Dvorak
9f1d9bbf99 Getting ready for 1.25 release. 2018-05-06 19:32:32 +02:00
xaizek
88fbedb931
Don't crash after deleting last item in the list
The code used to try to select an element at index `-1`.

Handling of this special case is done after deletion of an item instead
of doing it in `highlight_selection()` assuming that this is the only
place where this condition might not be met.
2018-04-29 15:11:07 +03:00
xaizek
5c97716b13
Make print_help_label() preserve cursor position
Otherwise it might end up in a wrong part of the screen.

An easy way to reproduce is to press <Ctrl-D> right after launching `hh`.
2018-04-29 15:11:07 +03:00
xaizek
4e4fb4618b
Don't use regexp to check for timestamp
It's very slow and its use is unjustified for such a simple pattern.

On a big history file this change reduced startup time from ~111ms to
~60, that is almost halved it.
2018-04-29 15:11:07 +03:00
xaizek
aae170ad3c
Fix Ctrl-R when prompt is at the bottom
It moved cursor in the opposite direction.
2018-04-29 15:11:07 +03:00
xaizek
3e9c3c52e5
Use HH_COLOR_* constants in more places 2018-04-29 15:11:07 +03:00
xaizek
321e731915
No delay for escape key 2018-04-29 15:11:07 +03:00
xaizek
a395fc40dd
Recalculate height on terminal resize 2018-04-29 15:11:07 +03:00
Martin Dvorak
adea111aca Making keywords match the default. 2018-04-27 16:25:48 +02:00
xaizek
b037958df4
Fix padding of currently selected item
* Have a single character highlighted margin on the right.
* Always fill the line completely (was filled partially in wide
  terminal).
2018-04-09 14:04:30 +03:00
sneh-m
e7da5b9dc8 Initialising pointers to avoid warning messeges during source building 2018-03-07 21:32:14 +05:30
sneh-m
5dccec9e13 Initialising all pointers to avoid WARNING messeges during source building. 2018-03-07 21:26:52 +05:30
Martin Dvorak
00c867dc78 Adding binding of -k to C-x k #251. 2018-02-21 09:06:00 +01:00
Martin Dvorak
5cd7e1548b Adding verbose option for kill last command #251. 2018-02-21 08:40:14 +01:00
Martin Dvorak
c0c6db116a PPA update to the current release. 2018-02-18 11:28:52 +01:00
Martin Dvorak
069ad24822 Added CLI parameter to delete the last command from the history and thus fixed #251. 2018-02-18 11:15:14 +01:00
Martin Dvorak
71e20a17b8 Just polishing source code. 2018-02-18 10:25:00 +01:00
Martin Dvorak
be13501e30 Adding detailed PROMPT_COMMAND configuration explanation for #250 and #238. 2018-02-18 09:54:22 +01:00
Martin Dvorak
cc22cf4868 Fixing WLS to WSL fixes. 2018-01-19 12:23:38 +01:00
Martin Dvorak
85909ec588 Fixing bug #238 - delete confirmation can be disabled by env variable e.g. export HH_CONFIG=noconfirm 2018-01-03 12:41:58 +01:00
Martin Dvorak
079d8f9ac1 Fixing bug #237 by making build repeatable (removal of compiler generated build number) + 1.24 update. 2018-01-03 12:41:58 +01:00
Yuri
25129fffbe FreeBSD port patches. 2017-11-24 12:03:15 -08:00
Martin Dvorak
30496160cf Getting ready for 1.23 release. 2017-09-30 12:01:44 +02:00
Martin Dvorak
4d8b7bac91 Polishing option name for keeping the page on exit. 2017-06-11 14:44:09 +02:00
Martin Dvorak
1ad0b9b152 Stabilizing codebase. 2017-06-11 14:37:41 +02:00
Martin Dvorak
af82df1e40 Stabilizing codebase. 2017-06-11 14:35:04 +02:00
Martin Dvorak
4613e4ef62 Changing default behavior to clear page on exit + adding option allowing to change it. 2017-06-11 14:32:50 +02:00
Martin Dvorak
96e4fe403b Merge pull request #215 from CeleritasCelery/master
Adding Vim style C-j and C-k navigation keys + nonl().
2017-06-11 14:18:33 +02:00
Martin Dvorak
d99983de08 Fixing bug #186 and thus finishing Win10 support + fixing fprint() compilation warnings. 2017-06-05 06:38:58 +02:00
Martin Dvorak
533d6c2906 More #186 related fixes. 2017-06-04 15:04:12 +02:00
Martin Dvorak
8e85439aa9 Implementing Bash @ Win detection for bug #164. 2017-06-04 09:33:20 +02:00
Jeremie Miserez
ec741d8b07 164: Use Bash variable to store hstr output instead of tmp file. 2017-05-30 13:35:20 +02:00
Jeremie Miserez
7f37dd29c4 164: Workaround for missing TIOCSTI ioctl call on Cygwin.
Based on the changes by @riedel, slightly cleaned up and minimized:
6bcdcc8ad3
01713eb4c2
2017-05-30 13:23:15 +02:00
CeleritasCelery
0046a4c0f9 added jk keys
bound ctrl-j and ctrl-k to up and down respectively
2017-05-13 08:41:57 -06:00
CeleritasCelery
9b175b9c1e prevent carriage return from being mapped to newline 2017-05-13 08:37:57 -06:00