bbatsov / projectile

Project Interaction Library for Emacs
https://docs.projectile.mx
GNU General Public License v3.0
4k stars 583 forks source link

Add new custom variable 'projectile-cmd-hist-ignoredups' #1877

Closed LaurenceWarne closed 10 months ago

LaurenceWarne commented 10 months ago

Hi! This PR adds new custom variable projectile-cmd-hist-ignoredups, which can be used to tweak how duplicates are dealt with in projectile's command history. The custom variable is more or less identical in behaviour to eshell-hist-ignoredups.

Specifically, the existing default behavior is maintained with the value of t, which means consecutive duplicates are ignored. A value of 'erase means only the last duplicate is kept, whilst a value of nil means all duplicates are kept.

(PR is an iteration on https://github.com/bbatsov/projectile/pull/1774)


Before submitting a PR make sure the following things have been done (and denote this by checking the relevant checkboxes):

Thanks!

bbatsov commented 10 months ago

The proposed change is fine by me. Might be a good idea to mention this configuration option somewhere in the docs as well, otherwise I doubt many people will find it.

LaurenceWarne commented 10 months ago

The proposed change is fine by me. Might be a good idea to mention this configuration option somewhere in the docs as well, otherwise I doubt many people will find it.

Makes sense, let me know if the section I've added it looks appropriate.

bbatsov commented 10 months ago

Looks great! Thanks!

LaurenceWarne commented 10 months ago

Thanks!