|
From: Peter W. <pe...@we...> - 2006-05-29 12:58:52
|
>>> No, it is not that. I want to remove duplicates in the history. E.g. >>> entering commands >>> set grid >>> history >>> set grid >>> history >>> set grid >>> history >>> set grid >>> history >>> >>> will result in the above sequence, but with the gnuplot's readline it will >>> have always just these two entries: >>> set grid >>> history >>> as all the previous history duplicates will be removed. >>> >>> Can the same be achieved with GNU readline? (It is more user friendly ... >>> no need to browse so long to find a command. The exact history is useless.) >> >> I don't think so. Duplicate removal in GNU readline only removes subsequent >> entries, i.e. >> >> ls >> ls >> ls >> >> is condensed into one. That already happens AFAICS. > Then it would be great it this feature could implemented by somebody. I see > in ChangeLog that the last hack to GNU readline is > > 2005-05-20 SF Patch [981476] "Get history functions working with GNU readline" Shouldn't be too difficult to add the feature you want, so that no duplicate entry gets added to the history. I might be able to take a look at this in the next days. (But I always say that and then it it weeks before I get to it if nobody reminds me.) Peter. |