aboutsummaryrefslogtreecommitdiff
path: root/doc/modules/ROOT/pages
diff options
context:
space:
mode:
authorLaurence Warne <laurencewarne@gmail.com>2024-01-21 17:04:37 +0000
committerBozhidar Batsov <bozhidar@batsov.dev>2024-01-23 16:24:48 +0200
commitf7e60843bfada2eee89595580786a4468fd3f881 (patch)
treefe7bc511aed0e826cc2e02f53d93e09e46f1675c /doc/modules/ROOT/pages
parent55e9026881538c126293b7e682d0d147984254f1 (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/modules/ROOT/pages')
-rw-r--r--doc/modules/ROOT/pages/projects.adoc6
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.