selector.git
15 years agoChanged the option to remove duplicates from -r to -d.
Francois Fleuret [Mon, 16 Mar 2009 18:03:10 +0000 (19:03 +0100)]
Changed the option to remove duplicates from -r to -d.

15 years agoCosmetics. Moved the hash-table routines.
Francois Fleuret [Mon, 16 Mar 2009 17:58:51 +0000 (18:58 +0100)]
Cosmetics. Moved the hash-table routines.

15 years agoChanged the -r option to removing of all duplicates, wherever they
Francois Fleuret [Mon, 16 Mar 2009 17:57:58 +0000 (18:57 +0100)]
Changed the -r option to removing of all duplicates, wherever they
are. Needed a hash-table to do it kind of properly. Seems to work so
far. Wonder if the hash_table_size being ten times the maximum number
of lines makes sense.

15 years agoFixed the odd number of lines bug.
Francois Fleuret [Mon, 16 Mar 2009 13:38:00 +0000 (14:38 +0100)]
Fixed the odd number of lines bug.

15 years agoChanged the color option description to make clear it takes numbers as
Francois Fleuret [Mon, 16 Mar 2009 11:44:03 +0000 (12:44 +0100)]
Changed the color option description to make clear it takes numbers as
parameters.

15 years agoApplied Olivier's patches.
Francois Fleuret [Mon, 16 Mar 2009 11:41:47 +0000 (12:41 +0100)]
Applied Olivier's patches.

15 years agoIgnore generated files, and vi backups
Olivier Bornet [Mon, 16 Mar 2009 08:12:22 +0000 (09:12 +0100)]
Ignore generated files, and vi backups

Signed-off-by: Francois Fleuret <francois@fleuret.org>
15 years agoStart counting nb_printed_lines from 0
Olivier Bornet [Mon, 16 Mar 2009 08:12:21 +0000 (09:12 +0100)]
Start counting nb_printed_lines from 0

It's more understandable to have nb_printed_lines starting at 0, and to use
directly instead of using nb_printed_lines + 1 after that.

Signed-off-by: Francois Fleuret <francois@fleuret.org>
15 years agoDon't increment nb_printed_lines when no answer
Olivier Bornet [Mon, 16 Mar 2009 08:12:20 +0000 (09:12 +0100)]
Don't increment nb_printed_lines when no answer

We don't have to increment nb_printed_lines when the search returns 0 result

Signed-off-by: Francois Fleuret <francois@fleuret.org>
15 years agoAdded the key ^? for backspace.
Francois Fleuret [Mon, 16 Mar 2009 06:57:50 +0000 (07:57 +0100)]
Added the key ^? for backspace.

15 years agoChanged the bash-history example.
Francois Fleuret [Sun, 15 Mar 2009 19:58:59 +0000 (20:58 +0100)]
Changed the bash-history example.

15 years agoSimplified the inject_into_tty_buffer routine. Mostly, directly use
Francois Fleuret [Sun, 15 Mar 2009 17:30:34 +0000 (18:30 +0100)]
Simplified the inject_into_tty_buffer routine. Mostly, directly use
STDIN_FILENO instead of first looking at the name of the tty attached
to it, to find then what is its filehandler.

15 years agoAdded some code to use a hash table for duplicates. Commented also.
Francois Fleuret [Sun, 15 Mar 2009 14:59:27 +0000 (15:59 +0100)]
Added some code to use a hash table for duplicates. Commented also.

15 years agoAdded a routine, now commented out, to remove all duplicates (not only
Francois Fleuret [Sat, 14 Mar 2009 21:59:40 +0000 (22:59 +0100)]
Added a routine, now commented out, to remove all duplicates (not only
successive ones). It is too slow as-is.

15 years agoAdded the description of the option to remove duplicated lines.
Francois Fleuret [Sat, 14 Mar 2009 21:37:30 +0000 (22:37 +0100)]
Added the description of the option to remove duplicated lines.

15 years agoAdded an option to remove duplicated lines.
Francois Fleuret [Sat, 14 Mar 2009 21:37:10 +0000 (22:37 +0100)]
Added an option to remove duplicated lines.

15 years agoCosmetics.
Francois Fleuret [Sat, 14 Mar 2009 18:19:45 +0000 (19:19 +0100)]
Cosmetics.

15 years agoRemoved the control file for the debian package, since it is now
Francois Fleuret [Sat, 14 Mar 2009 18:17:12 +0000 (19:17 +0100)]
Removed the control file for the debian package, since it is now
generated by the mkdeb.sh script. Cosmetic changes in the latter.

15 years agoAdded the -b option description.
Francois Fleuret [Sat, 14 Mar 2009 18:07:49 +0000 (19:07 +0100)]
Added the -b option description.

15 years agoRemoved the comment about ioctl which has nothing to do with a bug.
Francois Fleuret [Sat, 14 Mar 2009 17:14:38 +0000 (18:14 +0100)]
Removed the comment about ioctl which has nothing to do with a bug.

15 years agoAllocate the line array *after* the argument parsing so that we
Francois Fleuret [Sat, 14 Mar 2009 17:10:21 +0000 (18:10 +0100)]
Allocate the line array *after* the argument parsing so that we
actually take into account the -l option, and do it dynamically to
handle very large numbers of lines.

15 years agoChanged "shell command" to "command line".
Francois Fleuret [Sat, 14 Mar 2009 15:49:05 +0000 (16:49 +0100)]
Changed "shell command" to "command line".

15 years agoRemoved all the no-blink hacks, which did not work anyway.
Francois Fleuret [Sat, 14 Mar 2009 10:51:39 +0000 (11:51 +0100)]
Removed all the no-blink hacks, which did not work anyway.

15 years agoAdded an apology in the comments.
Francois Fleuret [Sat, 14 Mar 2009 10:46:47 +0000 (11:46 +0100)]
Added an apology in the comments.

15 years agoChanged the location of the man page to /usr/share and added the
Francois Fleuret [Sat, 14 Mar 2009 10:43:42 +0000 (11:43 +0100)]
Changed the location of the man page to /usr/share and added the
gzipping.

15 years agoChanged the example to the new version with (history) instead of
Francois Fleuret [Sat, 14 Mar 2009 10:38:15 +0000 (11:38 +0100)]
Changed the example to the new version with (history) instead of
${HISTFILE}

15 years ago*** empty log message ***
Francois Fleuret [Sat, 14 Mar 2009 06:02:51 +0000 (07:02 +0100)]
*** empty log message ***

15 years agoCosmetic changes.
Francois Fleuret [Fri, 13 Mar 2009 21:16:14 +0000 (22:16 +0100)]
Cosmetic changes.

15 years agoAdded a control file necessary to create a debian package.
Francois Fleuret [Fri, 13 Mar 2009 21:07:48 +0000 (22:07 +0100)]
Added a control file necessary to create a debian package.

15 years agoFixed a typo.
Francois Fleuret [Fri, 13 Mar 2009 20:31:49 +0000 (21:31 +0100)]
Fixed a typo.

15 years agoAdded a -b flag to remove the leading number in the bash history.
Francois Fleuret [Fri, 13 Mar 2009 20:31:40 +0000 (21:31 +0100)]
Added a -b flag to remove the leading number in the bash history.

15 years ago*** empty log message ***
Francois Fleuret [Fri, 13 Mar 2009 16:19:29 +0000 (17:19 +0100)]
*** empty log message ***

15 years ago*** empty log message ***
Francois Fleuret [Fri, 13 Mar 2009 10:40:41 +0000 (11:40 +0100)]
*** empty log message ***

15 years ago*** empty log message ***
Francois Fleuret [Fri, 13 Mar 2009 10:39:55 +0000 (11:39 +0100)]
*** empty log message ***

15 years agoRemoved the default output file name and allow to both put the line
Francois Fleuret [Fri, 13 Mar 2009 10:38:21 +0000 (11:38 +0100)]
Removed the default output file name and allow to both put the line
into the tty buffer and into the output file.

15 years agoAdded an option to invert the orders of lines.
Francois Fleuret [Fri, 13 Mar 2009 10:19:11 +0000 (11:19 +0100)]
Added an option to invert the orders of lines.

15 years agoAutomatic commit
Francois Fleuret [Fri, 13 Mar 2009 10:07:24 +0000 (11:07 +0100)]
Automatic commit

15 years ago*** empty log message ***
Francois Fleuret [Fri, 13 Mar 2009 10:01:40 +0000 (11:01 +0100)]
*** empty log message ***

15 years agoFixed the hack for zsh history
Francois Fleuret [Fri, 13 Mar 2009 10:00:02 +0000 (11:00 +0100)]
Fixed the hack for zsh history

15 years ago*** empty log message ***
Francois Fleuret [Fri, 13 Mar 2009 09:54:09 +0000 (10:54 +0100)]
*** empty log message ***

15 years agoAutomatic commit
Francois Fleuret [Fri, 13 Mar 2009 09:53:20 +0000 (10:53 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Fri, 13 Mar 2009 08:47:39 +0000 (09:47 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Fri, 13 Mar 2009 08:33:29 +0000 (09:33 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Fri, 13 Mar 2009 07:22:48 +0000 (08:22 +0100)]
Automatic commit

15 years agoDeal properly with no selection, just output nothing.
Francois Fleuret [Fri, 13 Mar 2009 07:10:06 +0000 (08:10 +0100)]
Deal properly with no selection, just output nothing.

15 years ago*** empty log message ***
Francois Fleuret [Fri, 13 Mar 2009 07:01:27 +0000 (08:01 +0100)]
*** empty log message ***

15 years agoAutomatic commit
Francois Fleuret [Fri, 13 Mar 2009 07:00:47 +0000 (08:00 +0100)]
Automatic commit

15 years ago*** empty log message ***
Francois Fleuret [Fri, 13 Mar 2009 06:58:51 +0000 (07:58 +0100)]
*** empty log message ***

15 years ago*** empty log message ***
Francois Fleuret [Fri, 13 Mar 2009 06:55:58 +0000 (07:55 +0100)]
*** empty log message ***

15 years agoMoved the vt buffer injection to a separate function.
Francois Fleuret [Fri, 13 Mar 2009 06:55:07 +0000 (07:55 +0100)]
Moved the vt buffer injection to a separate function.

Changed the way colors are chosen. Instead of a theme, each color can
be set separately.

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 21:45:32 +0000 (22:45 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 21:04:05 +0000 (22:04 +0100)]
Automatic commit

15 years ago*** empty log message ***
Francois Fleuret [Thu, 12 Mar 2009 20:16:34 +0000 (21:16 +0100)]
*** empty log message ***

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 20:15:07 +0000 (21:15 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 20:01:20 +0000 (21:01 +0100)]
Automatic commit

15 years ago*** empty log message ***
Francois Fleuret [Thu, 12 Mar 2009 19:17:22 +0000 (20:17 +0100)]
*** empty log message ***

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 19:15:42 +0000 (20:15 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 18:13:48 +0000 (19:13 +0100)]
Automatic commit

15 years agoAdded a no-color mode with inverse A_REVERSE and A_STANDOUT for the
Francois Fleuret [Thu, 12 Mar 2009 18:01:05 +0000 (19:01 +0100)]
Added a no-color mode with inverse A_REVERSE and A_STANDOUT for the
modeline and the highlighted line respectively.

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 16:30:47 +0000 (17:30 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 16:06:02 +0000 (17:06 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 15:53:52 +0000 (16:53 +0100)]
Automatic commit

15 years ago*** empty log message ***
Francois Fleuret [Thu, 12 Mar 2009 13:58:48 +0000 (14:58 +0100)]
*** empty log message ***

15 years ago*** empty log message ***
Francois Fleuret [Thu, 12 Mar 2009 13:54:27 +0000 (14:54 +0100)]
*** empty log message ***

15 years ago*** empty log message ***
Francois Fleuret [Thu, 12 Mar 2009 13:50:47 +0000 (14:50 +0100)]
*** empty log message ***

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 13:48:22 +0000 (14:48 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 13:43:12 +0000 (14:43 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 13:18:27 +0000 (14:18 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 07:41:40 +0000 (08:41 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 07:32:26 +0000 (08:32 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 12 Mar 2009 07:30:32 +0000 (08:30 +0100)]
Automatic commit

15 years ago*** empty log message ***
Francois Fleuret [Thu, 12 Mar 2009 07:10:45 +0000 (08:10 +0100)]
*** empty log message ***

15 years agoAutomatic commit
Francois Fleuret [Wed, 11 Mar 2009 21:40:26 +0000 (22:40 +0100)]
Automatic commit

15 years ago*** empty log message ***
Francois Fleuret [Wed, 11 Mar 2009 19:56:03 +0000 (20:56 +0100)]
*** empty log message ***

15 years agoAutomatic commit
Francois Fleuret [Wed, 11 Mar 2009 19:54:21 +0000 (20:54 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Wed, 11 Mar 2009 15:14:38 +0000 (16:14 +0100)]
Automatic commit

15 years ago*** empty log message ***
Francois Fleuret [Wed, 11 Mar 2009 15:13:22 +0000 (16:13 +0100)]
*** empty log message ***

15 years agoAutomatic commit
Francois Fleuret [Wed, 11 Mar 2009 01:59:15 +0000 (02:59 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Mon, 2 Mar 2009 20:53:44 +0000 (21:53 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Fri, 27 Feb 2009 23:53:00 +0000 (00:53 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Fri, 20 Feb 2009 21:24:02 +0000 (22:24 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 19 Feb 2009 20:19:39 +0000 (21:19 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 19 Feb 2009 16:08:18 +0000 (17:08 +0100)]
Automatic commit

15 years agoAutomatic commit
Francois Fleuret [Thu, 19 Feb 2009 08:09:01 +0000 (09:09 +0100)]
Automatic commit

15 years ago*** empty log message ***
Francois Fleuret [Thu, 19 Feb 2009 07:30:51 +0000 (08:30 +0100)]
*** empty log message ***

15 years agoAutomatic commit
Francois Fleuret [Thu, 19 Feb 2009 07:08:40 +0000 (08:08 +0100)]
Automatic commit