Commit graph

365 commits

Author SHA1 Message Date
Martin Dvorak 6e0e06a01c Removing custom HISTFILE configuration which is not needed. 2019-12-08 23:12:40 +01:00
Martin Dvorak fc81bbd4c6 Getting ready for 2.1 release & zsh/Zsh bash/Bash 2019-12-08 21:14:23 +01:00
Martin Dvorak c367541799 Ensuring hstr won't be shown in history, fixed correct history file in zsh which resolves #317 2019-12-08 20:48:05 +01:00
Martin Dvorak ba8efffd07 Improving zsh related documentation + fixing zsh bindkey as suggested by @hoto in #248 2019-12-07 22:44:28 +01:00
Martin Dvorak 5a16a9fe42 Ensuring warning-free build w/ new GCCs #356 2019-09-18 06:46:39 +02:00
Martin Dvorak 4217806d83 Disabling swiss knife dumper. 2018-08-27 17:23:57 +02:00
Martin Dvorak 442da6ec86 hh2hstr fixing documentation and manual page #309 2018-08-26 07:17:39 +02:00
Martin Dvorak 9c18305e48 Cfg: finishing configuration keywords polishing #309 2018-08-26 07:17:39 +02:00
Martin Dvorak 3acd30149a Cfg: fixing matching configuration names #309 2018-08-26 07:17:39 +02:00
Martin Dvorak 459c121b72 Cfg: favorites > favorites-view, favs > favorites #309 2018-08-26 07:17:39 +02:00
Martin Dvorak 2107bf7c8c Cfg: static-favs > static-favorites #309 2018-08-26 07:17:39 +02:00
Martin Dvorak 1c35092d12 hh2hstr c source code fixed #309 2018-08-26 07:17:39 +02:00
Martin Dvorak 2af7bdf6e9 hh2hstr HSTR configuration code fixed #309 2018-08-26 07:17:39 +02:00
Martin Dvorak 1dbfdb4758 hh2hstr fixing tests #309 2018-08-26 07:17:35 +02:00
Martin Dvorak d9f190ca4a Fixing strdup() compilation warning (not ISO C) #309 2018-08-26 07:17:31 +02:00
Martin Dvorak 1ebc0c1518 hh2hstr autotools fixed #309 2018-08-26 07:17:26 +02:00
Martin Dvorak 38afeb1408 hh2hstr changelog fixed #309 2018-08-26 07:17:14 +02:00
Martin Dvorak b3de7eedd8 hh2hstr source code defines #309 2018-08-26 07:17:06 +02:00
Martin Dvorak 59a6c5e7a8 hh2hstr automake and man 2018-08-22 08:21:13 +02:00
Martin Dvorak 52726718e4 HH > HSTR rollback. 2018-08-21 17:31:56 +02:00
Martin Dvorak 638b7a0020 Removing TIOCSTI runtime option (compile time will be better). 2018-08-21 08:05:08 +02:00
Martin Dvorak f831ca53c9 Introducing option allowing to skip comments (lines) in .hh_favorites which resolves #302 2018-08-21 07:56:24 +02:00
Martin Dvorak 981d425ec3 Fixing preliminary free of readline/history which resolves #306 and resolves #305. 2018-08-21 07:21:06 +02:00
Martin Dvorak 9ef36c0782 Trimming string matched by regexp on its selection + test which resolves #228 2018-08-20 23:18:46 +02:00
Martin Dvorak 480375f774 Getting ready for 1.28 release. 2018-08-20 19:34:58 +02:00
Martin Dvorak bbc4048ce8 NO leaks for non-interactive history w/ 1 item. 2018-08-20 19:27:09 +02:00
Martin Dvorak 8e8b3246c9 Fixing selection memleak for #68. 2018-08-20 17:14:00 +02:00
Martin Dvorak 5dc3596237 Fixing early hashmap free for memleaks #68 2018-08-20 17:03:57 +02:00
Martin Dvorak 7c075ef4d1 Leaks down to 3 w/ 1 entry #68. 2018-08-20 09:40:35 +02:00
Martin Dvorak 49292789b1 Leaks: fixing premature free for #68 2018-08-18 08:43:15 +02:00
Martin Dvorak 00a4c700d1 Memleaks: down to 4 issues when non-interactive 1 history entry #68 2018-08-18 08:38:56 +02:00
Martin Dvorak fa7622ae1b Leaks: non-interactive HSTR w/ EMPTY history has NO leaks 2018-08-17 20:51:33 +02:00
Martin Dvorak 2a4e3a908f Fixing header reserved identifiers to comply with naming convention #299. 2018-08-14 19:36:00 +02:00
Martin Dvorak 15586dcc33 Making sure that HSTR compiles on Fedora. 2018-08-13 17:45:01 +02:00
Martin Dvorak ba91233135 Polishing version references. 2018-08-13 17:18:14 +02:00
Martin Dvorak b7d89c02b8 Adding call for help w/ zsh@WSL/Cygwin trick in shell for #262. 2018-08-13 17:05:18 +02:00
Martin Dvorak e69511cc76 Fixing timestamp detection in .zsh_history which resolves #296. 2018-08-13 17:05:18 +02:00
Martin Dvorak a2ff8b45c5 Polishing defines. 2018-08-13 17:05:18 +02:00
Martin Dvorak c51dc863cc Adding configuration option that disables favorites reordering on choice which resolves #276. 2018-08-13 17:05:18 +02:00
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
Martin Dvorak 0a0711736f Updating version 1.21 > 1.22. 2017-01-21 20:27:26 +01:00
Martin Dvorak 74ab6be36b Fixed #200 by detection of Zsh timestamps in history and trimming it. 2017-01-21 20:27:26 +01:00
Martin Dvorak ae1cd1c96c Added prompt to delete action. 2016-11-11 23:21:36 +01:00
Martin Dvorak a121619bf7 Fixed #194 so that case sensitivity is correctly handled for keywords. 2016-11-11 22:37:49 +01:00
Martin Dvorak 7b4f6e30f2 Fixed #195 memory leak by free() reuse. 2016-11-11 21:47:49 +01:00
Martin Dvorak 9358a500ff Getting ready for Yakkety 1.21 release. 2016-10-22 11:46:04 +02:00
dvorka 3000453f73 Fixed #192 by adding parameter/arguments separator. 2016-09-27 08:44:27 +02:00
Martin Dvorak 8f7a051f7c Updating version to next release version. 2016-03-24 23:31:31 +01:00
Martin Dvorak 773560994c Fixing favorites message in bottom prompt mode. 2016-03-24 23:31:31 +01:00
Martin Dvorak 767c59164f Adding prompt-bottom option allowing to have prompt at the bottom of the page. 2016-03-24 23:31:31 +01:00
Martin Dvorak 09cf028aa5 Changing help for view rotation key to C-7 that works reliably in all terminals (C-/ supported). 2016-03-24 23:31:31 +01:00