diff options
| author | Laurence Warne <laurencewarne@gmail.com> | 2024-01-21 17:04:37 +0000 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.dev> | 2024-01-23 16:24:48 +0200 |
| commit | f7e60843bfada2eee89595580786a4468fd3f881 (patch) | |
| tree | fe7bc511aed0e826cc2e02f53d93e09e46f1675c /doc | |
| parent | 55e9026881538c126293b7e682d0d147984254f1 (diff) | |
Add new custom variable 'projectile-cmd-hist-ignoredups'
Add 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 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.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/modules/ROOT/pages/projects.adoc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/modules/ROOT/pages/projects.adoc b/doc/modules/ROOT/pages/projects.adoc index 9400dd7..e974560 100644 --- a/doc/modules/ROOT/pages/projects.adoc +++ b/doc/modules/ROOT/pages/projects.adoc @@ -838,3 +838,9 @@ external command or an Emacs Lisp function: In addition caching of commands can be disabled by setting the variable `projectile-project-enable-cmd-caching` is to `nil`. This is useful for preset-based CMake projects. + +By default, Projectile will not add consecutive duplicate commands to its +command history. To alter this behaviour you can use `projectile-cmd-hist-ignoredups`. + The default value of `t` means consecutive duplicates are ignore, a value +of `nil` means nothing is ignored, and a value of `'erase'` means only +the last duplicate is kept in the command history. |
