Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1826 rivejä
68 KiB

5 vuotta sitten
  1. ;;; helm-help.el --- Help messages for Helm. -*- lexical-binding: t -*-
  2. ;; Copyright (C) 2012 ~ 2019 Thierry Volpiatto <thierry.volpiatto@gmail.com>
  3. ;; This program is free software; you can redistribute it and/or modify
  4. ;; it under the terms of the GNU General Public License as published by
  5. ;; the Free Software Foundation, either version 3 of the License, or
  6. ;; (at your option) any later version.
  7. ;; This program is distributed in the hope that it will be useful,
  8. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. ;; GNU General Public License for more details.
  11. ;; You should have received a copy of the GNU General Public License
  12. ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ;;; Code:
  14. (require 'helm)
  15. (defgroup helm-help nil
  16. "Embedded help for `helm'."
  17. :group 'helm)
  18. (defface helm-helper
  19. '((t :inherit helm-header))
  20. "Face for Helm help string in minibuffer."
  21. :group 'helm-help)
  22. (defvar helm-help--string-list '(helm-help-message
  23. helm-buffer-help-message
  24. helm-ff-help-message
  25. helm-read-file-name-help-message
  26. helm-generic-file-help-message
  27. helm-grep-help-message
  28. helm-pdfgrep-help-message
  29. helm-etags-help-message
  30. helm-ucs-help-message
  31. helm-bookmark-help-message
  32. helm-esh-help-message
  33. helm-buffers-ido-virtual-help-message
  34. helm-moccur-help-message
  35. helm-top-help-message
  36. helm-el-package-help-message
  37. helm-M-x-help-message
  38. helm-imenu-help-message
  39. helm-colors-help-message
  40. helm-semantic-help-message
  41. helm-kmacro-help-message))
  42. (defvar helm-documentation-buffer-name "*helm documentation*")
  43. ;;;###autoload
  44. (defun helm-documentation ()
  45. "Preconfigured Helm for Helm documentation.
  46. With a prefix arg refresh the documentation.
  47. Find here the documentation of all documented sources."
  48. (interactive)
  49. (let ((buf (get-buffer-create helm-documentation-buffer-name)))
  50. (switch-to-buffer buf)
  51. (set-buffer buf)
  52. (let ((inhibit-read-only t))
  53. (erase-buffer)
  54. (cl-loop for elm in helm-help--string-list
  55. for str = (helm-interpret-value elm)
  56. do (insert (substitute-command-keys str) "\n\n"))
  57. (org-mode))
  58. (setq buffer-read-only t)
  59. (view-mode)))
  60. ;;; Local help messages.
  61. ;;; `helm-buffer-list' help
  62. ;;
  63. ;;
  64. (defvar helm-buffer-help-message
  65. "* Helm Buffer
  66. ** Tips
  67. *** Completion
  68. **** Major-mode
  69. You can enter a partial major-mode name (e.g. lisp, sh) to narrow down buffers.
  70. To specify the major-mode, prefix it with \"*\" e.g. \"*lisp\".
  71. If you want to match all buffers but the ones with a specific major-mode
  72. \(negation), prefix the major-mode with \"!\" e.g. \"*!lisp\".
  73. If you want to specify more than one major-mode, separate them with \",\",
  74. e.g. \"*!lisp,!sh,!fun\" lists all buffers but the ones in lisp-mode, sh-mode
  75. and fundamental-mode.
  76. Then enter a space followed by a pattern to narrow down to buffers matching this
  77. pattern.
  78. **** Search inside buffers
  79. If you enter a space and a pattern prefixed by \"@\", Helm searches for text
  80. matching this pattern \*inside* the buffer (i.e. not in the name of the buffer).
  81. If you enter a pattern prefixed with an escaped \"@\", Helm searches for a
  82. buffer matching \"@pattern\" but does not search inside.
  83. **** Search by directory name
  84. If you prefix the pattern with \"/\", Helm matches over the directory names
  85. of the buffers.
  86. This feature can be used to narrow down the search to one directory while
  87. subsequent strings entered after a space match over the buffer name only.
  88. Note that negation is not supported for matching on buffer filename.
  89. Starting from Helm v1.6.8, you can specify more than one directory.
  90. **** Fuzzy matching
  91. `helm-buffers-fuzzy-matching' turns on fuzzy matching on buffer names, but not
  92. on directory names or major modes. A pattern starting with \"^\" disables fuzzy
  93. matching and matches by exact regexp.
  94. **** Examples
  95. With the following pattern
  96. \"*lisp ^helm @moc\"
  97. Helm narrows down the list by selecting only the buffers that are in lisp mode,
  98. start with \"helm\" and which content matches \"moc\".
  99. Without the \"@\"
  100. \"*lisp ^helm moc\"
  101. Helm looks for lisp mode buffers starting with \"helm\" and containing \"moc\"
  102. in their name.
  103. With this other pattern
  104. \"*!lisp !helm\"
  105. Helm narrows down to buffers that are not in \"lisp\" mode and that do not match
  106. \"helm\".
  107. With this last pattern
  108. /helm/ w3
  109. Helm narrows down to buffers that are in any \"helm\" subdirectory and
  110. matching \"w3\".
  111. *** Creating buffers
  112. When creating a new buffer, use `\\[universal-argument]' to choose a mode from a
  113. list. This list is customizable, see `helm-buffers-favorite-modes'.
  114. *** Killing buffers
  115. You can kill buffers either one by one or all the marked buffers at once.
  116. One kill-buffer command leaves Helm while the other is persistent. Run the
  117. persistent kill-buffer command either with the regular
  118. `helm-execute-persistent-action' called with a prefix argument (`\\[universal-argument] \\<helm-map>\\[helm-execute-persistent-action]')
  119. or with its specific command `helm-buffer-run-kill-persistent'. See the
  120. bindings below.
  121. *** Switching to buffers
  122. To switch to a buffer, press RET, to switch to a buffer in another window, select this buffer
  123. and press \\<helm-buffer-map>\\[helm-buffer-switch-other-window], when called with a prefix arg
  124. the buffer will be displayed vertically in other window.
  125. If you mark more than one buffer, the marked buffers will be displayed in different windows.
  126. *** Saving buffers
  127. If buffer is associated to a file and is modified, it is by default colorized in orange,
  128. see [[Meaning of colors and prefixes for buffers][Meaning of colors and prefixes for buffers]].
  129. You can save these buffers with \\<helm-buffer-map>\\[helm-buffer-save-persistent].
  130. If you want to save all these buffers, you can mark them with \\[helm-buffers-mark-similar-buffers]
  131. and save them with \\[helm-buffer-save-persistent], you can also do this in one step with
  132. \\[helm-buffer-run-save-some-buffers], note that you will not be asked for confirmation.
  133. *** Meaning of colors and prefixes for buffers
  134. Remote buffers are prefixed with '@'.
  135. Red => Buffer's file was modified on disk by an external process.
  136. Indianred2 => Buffer exists but its file has been deleted.
  137. Orange => Buffer is modified and not saved to disk.
  138. Italic => A non-file buffer.
  139. Yellow => Tramp archive buffer.
  140. ** Commands
  141. \\<helm-buffer-map>
  142. \\[helm-buffer-run-zgrep]\t\tGrep Buffer(s) works as zgrep too (`\\[universal-argument]' to grep all buffers but non-file buffers).
  143. \\[helm-buffers-run-multi-occur]\t\tMulti-Occur buffer or marked buffers (`\\[universal-argument]' to toggle force-searching current-buffer).
  144. \\[helm-buffer-switch-other-window]\t\tSwitch to other window.
  145. \\[helm-buffer-switch-other-frame]\t\tSwitch to other frame.
  146. \\[helm-buffers-run-browse-project]\t\tBrowse project from buffer.
  147. \\[helm-buffer-run-query-replace-regexp]\t\tQuery-replace-regexp in marked buffers.
  148. \\[helm-buffer-run-query-replace]\t\tQuery-replace in marked buffers.
  149. \\[helm-buffer-run-ediff]\t\tEdiff current buffer with candidate. With two marked buffers, ediff those buffers.
  150. \\[helm-buffer-run-ediff-merge]\t\tEdiff-merge current buffer with candidate. With two marked buffers, ediff-merge those buffers.
  151. \\[helm-buffer-diff-persistent]\t\tToggle Diff-buffer with saved file without leaving Helm.
  152. \\[helm-buffer-revert-persistent]\t\tRevert buffer without leaving Helm.
  153. \\[helm-buffer-save-persistent]\t\tSave buffer without leaving Helm.
  154. \\[helm-buffer-run-save-some-buffers]\t\tSave all unsaved buffers.
  155. \\[helm-buffer-run-kill-buffers]\t\tDelete marked buffers and leave Helm.
  156. \\[helm-buffer-run-kill-persistent]\t\tDelete buffer without leaving Helm.
  157. \\[helm-buffer-run-rename-buffer]\t\tRename buffer.
  158. \\[helm-toggle-all-marks]\t\tToggle all marks.
  159. \\[helm-mark-all]\t\tMark all.
  160. \\[helm-toggle-buffers-details]\t\tToggle details.
  161. \\[helm-buffers-toggle-show-hidden-buffers]\t\tShow hidden buffers.
  162. \\[helm-buffers-mark-similar-buffers]\t\tMark all buffers of the same type (color) as current buffer.")
  163. ;;; Find files help (`helm-find-files')
  164. ;;
  165. ;;
  166. (defvar helm-ff-help-message
  167. "* Helm Find Files
  168. ** Tips
  169. *** Navigation summary
  170. For a better experience you can enable auto completion by setting
  171. `helm-ff-auto-update-initial-value' to non-nil in your init file. It is not
  172. enabled by default to not confuse new users.
  173. **** Navigate with arrow keys
  174. You can use <right> and <left> arrows to go down or up one level, to enable
  175. this customize `helm-ff-lynx-style-map'.
  176. This is disabled by default.
  177. Note that using `setq' will NOT work.
  178. **** Use `\\<helm-find-files-map>\\[helm-execute-persistent-action]' (persistent action) on a directory to go down one level
  179. On a symlinked directory a prefix argument expands to its true name.
  180. **** Use `\\<helm-find-files-map>\\[helm-find-files-up-one-level]' or `DEL' on a directory to go up one level
  181. ***** `DEL' behavior
  182. `DEL' by default is deleting char backward.
  183. But when `helm-ff-DEL-up-one-level-maybe' is non nil `DEL' behave
  184. differently depending of helm-pattern contents, it go up one
  185. level if pattern is a directory endings with \"/\" or disable HFF
  186. auto update and delete char backward if pattern is a filename or
  187. refer to a non existing path. Going up one level can be disabled
  188. if necessary by deleting \"/\" at end of pattern using
  189. \\<helm-map>\\[backward-char] and \\[helm-delete-minibuffer-contents].
  190. Note that when deleting char backward, helm takes care of
  191. disabling update letting you the time to edit your pattern for
  192. e.g. renaming a file or creating a new file or directory.
  193. When `helm-ff-auto-update-initial-value' is non nil you may want to
  194. disable it temporarily, see [[Toggle auto-completion with `C-c DEL'][Toggle auto-completion with `C-c DEL']] for this.
  195. **** Use `\\<helm-find-files-map>\\[helm-find-files-down-last-level]' to walk back the resulting tree of all the `\\<helm-find-files-map>\\[helm-find-files-up-one-level]' or DEL you did
  196. The tree is reinitialized each time you browse a new tree with
  197. `\\<helm-map>\\[helm-execute-persistent-action]' or by entering some pattern in the prompt.
  198. **** `RET' behavior
  199. It behaves differently depending on `helm-selection' (current candidate in helm-buffer):
  200. - candidate basename is \".\" => Open it in dired.
  201. - candidate is a directory => Expand it.
  202. - candidate is a file => Open it.
  203. If you have marked candidates and you press RET on a directory,
  204. helm will navigate to this directory, if you want to exit with
  205. RET with default action with these marked candidates, press RET
  206. on a second time while you are on the root of this directory
  207. e.g. \"/home/you/dir/.\" or press RET on any file which is not a
  208. directory. You can also exit with default action at any moment
  209. with `f1'.
  210. Note that when copying, renaming, etc. from `helm-find-files' the
  211. destination file is selected with `helm-read-file-name'.
  212. To avoid confusion when using `read-file-name' or `read-directory-name', `RET'
  213. follows its standard Emacs behaviour, i.e. it exits the minibuffer as soon as
  214. you press `RET'. If you want the same behavior as in `helm-find-files', bind
  215. `helm-ff-RET' to the `helm-read-file-map':
  216. (define-key helm-read-file-map (kbd \"RET\") 'helm-ff-RET)
  217. **** `TAB' behavior
  218. Normally `TAB' is bound to `helm-select-action' in helm-map which
  219. display the action menu.
  220. You can change this behavior by setting in `helm-find-files-map'
  221. a new command for `TAB':
  222. (define-key helm-find-files-map (kbd \"C-i\") 'helm-ff-TAB)
  223. It will then behave slighly differently
  224. depending of `helm-selection':
  225. - candidate basename is \".\" => open the action menu.
  226. - candidate is a directory => expand it (behave as \\<helm-map>\\[helm-execute-persistent-action]).
  227. - candidate is a file => open action menu.
  228. Called with a prefix arg open menu unconditionally.
  229. *** Find file at point
  230. Helm uses `ffap' partially or completely to find file at point depending on the
  231. value of `helm-ff-guess-ffap-filenames': if non-nil, support is complete
  232. \(annoying), if nil, support is partial.
  233. Note that when the variable
  234. `helm-ff-allow-non-existing-file-at-point' is non nil Helm will
  235. insert the filename at point even if file with this name doesn't
  236. exists. If non existing file at point ends with numbers prefixed
  237. with \":\" the \":\" and numbers are stripped.
  238. **** Find file at line number
  239. When text at point is in the form of
  240. ~/elisp/helm/helm.el:1234
  241. Helm finds this file at the indicated line number, here 1234.
  242. **** Find URL at point
  243. When a URL is found at point, Helm expands to that URL only.
  244. Pressing `RET' opens that URL using `browse-url-browser-function'.
  245. **** Find e-mail address at point
  246. When an e-mail address is found at point, Helm expands to this e-mail address
  247. prefixed with \"mailto:\". Pressing `RET' opens a message buffer with that
  248. e-mail address.
  249. *** Quick pattern expansion
  250. **** Enter `~/' at end of pattern to quickly reach home directory
  251. **** Enter `/' at end of pattern to quickly reach the file system root
  252. **** Enter `./' at end of pattern to quickly reach `default-directory'
  253. \(As per its value at the beginning of the session.)
  254. If you already are in the `default-directory' this will move the cursor to the top.
  255. **** Enter `../' at end of pattern will reach upper directory, moving cursor to the top
  256. This is different from using `\\<helm-find-files-map>\\[helm-find-files-up-one-level]' in that it moves
  257. the cursor to the top instead of remaining on the previous subdir name.
  258. **** Enter `..name/' at end of pattern to start a recursive search
  259. It searches directories matching \"name\" under the current directory, see the
  260. \"Recursive completion on subdirectories\" section below for more details.
  261. **** Any environment variable (e.g. `$HOME') at end of pattern gets expanded
  262. **** Any valid filename yanked after pattern gets expanded
  263. **** Special case: URL at point
  264. The quick expansions do not take effect after end a URL, you must kill the
  265. pattern first (`\\[helm-delete-minibuffer-contents]').
  266. *** Helm-find-files supports fuzzy matching
  267. It starts from the third character of the pattern.
  268. For instance \"fob\" or \"fbr\" will complete \"foobar\" but \"fb\" needs a
  269. third character in order to complete it.
  270. *** Use `\\[universal-argument] \\[helm-execute-persistent-action]' or `\\[helm-follow-action-forward]' to display an image
  271. *** `\\[helm-execute-persistent-action]' on a filename expands to that filename in the Helm buffer
  272. Second hit displays the buffer filename.
  273. Third hit kills the buffer filename.
  274. Note: `\\[universal-argument] \\[helm-execute-persistent-action]' displays the buffer directly.
  275. *** Browse images directories with `helm-follow-mode' and navigate up/down
  276. You can also use `helm-follow-action-forward' and `helm-follow-action-backward' with
  277. `\\[helm-follow-action-forward]' and `\\[helm-follow-action-backward]' respectively.
  278. *** Toggle auto-completion with `\\[helm-ff-run-toggle-auto-update]'
  279. It is useful when trying to create a new file or directory and you don't want
  280. Helm to complete what you are writing.
  281. Note: On a terminal, the default binding `C-<backspace>' may not work.
  282. In this case use `C-c <backspace>'.
  283. *** You can create a new directory and a new file at the same time
  284. Simply write the path in the prompt and press `RET', e.g.
  285. \"~/new/newnew/newnewnew/my_newfile.txt\".
  286. *** To create a new directory, append a \"/\" to the new name and press `RET'
  287. *** To create a new file, enter a filename not ending with \"/\"
  288. Note that when you enter a new name, this one is prefixed with
  289. \[?] if you are in a writable directory. If you are in a directory
  290. where you have no write permission the new file name is not
  291. prefixed and is colored in red. There is not such distinction
  292. when using tramp, new filename just appear on top of buffer.
  293. *** Recursive search from Helm-find-files
  294. **** You can use Helm-browse-project (see binding below)
  295. - With no prefix argument:
  296. If the current directory is under version control with either git or hg and
  297. helm-ls-git and/or helm-ls-hg are installed, it lists all the files under
  298. version control. Otherwise it falls back to Helm-find-files. See
  299. https://github.com/emacs-helm/helm-ls-git and
  300. https://github.com/emacs-helm/helm-ls-hg.
  301. - With one prefix argument:
  302. List all the files under this directory and other subdirectories
  303. \(recursion) and this list of files will be cached.
  304. - With two prefix arguments:
  305. Same but the cache is refreshed.
  306. **** You can start a recursive search with \"locate\" or \"find\"
  307. See \"Note\" in the [[Recursive completion on subdirectories][section on subdirectories]].
  308. Using \"locate\", you can enable the local database with a prefix argument. If the
  309. local database doesn't already exists, you will be prompted for its creation.
  310. If it exists and you want to refresh it, give it two prefix args.
  311. When using locate the helm-buffer remains empty until you type something.
  312. Regardless Helm uses the basename of the pattern entered in the helm-find-files
  313. session by default. Hitting `\\[next-history-element]' should just kick in the
  314. locate search with this pattern. If you want Helm to automatically do this, add
  315. `helm-source-locate' to `helm-sources-using-default-as-input'.
  316. **** Recursive completion on subdirectories
  317. Starting from the directory you are currently browsing, it is possible to have
  318. completion of all directories underneath. Say you are at \"/home/you/foo/\" and
  319. you want to go to \"/home/you/foo/bar/baz/somewhere/else\", simply type
  320. \"/home/you/foo/..else\" and hit `\\[helm-execute-persistent-action]' or enter
  321. the final \"/\". Helm will then list all possible directories under \"foo\"
  322. matching \"else\".
  323. Entering two spaces before \"else\" instead of two dots also works.
  324. Note: Completion on subdirectories uses \"locate\" as backend, you can configure
  325. the command with `helm-locate-recursive-dirs-command'. Because this completion
  326. uses an index, the directory tree displayed may be out-of-date and not reflect
  327. the latest change until you update the index (using \"updatedb\" for \"locate\").
  328. If for some reason you cannot use an index, the \"find\" command from
  329. \"findutils\" can be used instead. It will be slower though. You need to pass
  330. the basedir as first argument of \"find\" and the subdir as the value for
  331. '-(i)regex' or '-(i)name' with the two format specs that are mandatory in
  332. `helm-locate-recursive-dirs-command'.
  333. Examples:
  334. - \"find %s -type d -name '*%s*'\"
  335. - \"find %s -type d -regex .*%s.*$\"
  336. *** Insert filename at point or complete filename at point
  337. On insertion (not on completion, i.e. there is nothing at point):
  338. - `\\[helm-ff-run-complete-fn-at-point]': insert absolute file name.
  339. - `\\[universal-argument] \\[helm-ff-run-complete-fn-at-point]': insert abbreviated file name.
  340. - `\\[universal-argument] \\[universal-argument] \\[helm-ff-run-complete-fn-at-point]': insert relative file name.
  341. - `\\[universal-argument] \\[universal-argument] \\[universal-argument] \\[helm-ff-run-complete-fn-at-point]': insert basename.
  342. On completion:
  343. - Target starts with \"~/\": insert abbreviate file name.
  344. - target starts with \"/\" or \"[a-z]:/\": insert full path.
  345. - Otherwise: insert relative file name.
  346. *** Use the wildcard to select multiple files
  347. Use of wilcard is supported to run an action over a set of files.
  348. Example: You can copy all the files with \".el\" extension by using \"*.el\" and
  349. then run copy action.
  350. Similarly, \"**.el\" (note the two stars) will recursively select all \".el\"
  351. files under the current directory.
  352. Note that when recursively copying files, you may have files with same name
  353. dispatched across different subdirectories, so when copying them in the same
  354. directory they will get overwritten. To avoid this Helm has a special action
  355. called \"backup files\" that has the same behavior as the command line \"cp -f
  356. --backup=numbered\": it allows you to copy many files with the same name from
  357. different subdirectories into one directory. Files with same name are renamed
  358. as follows: \"foo.txt.~1~\". Like with the --force option of cp, it is possible
  359. to backup files in current directory.
  360. This command is available only when `dired-async-mode' is active.
  361. When using an action that involves an external backend (e.g. grep), using \"**\"
  362. is not recommended (even thought it works fine) because it will be slower to
  363. select all the files. You are better off leaving the backend to do it, it will
  364. be faster. However, if you know you have not many files it is reasonable to use
  365. this, also using not recursive wilcard (e.g. \"*.el\") is perfectly fine for
  366. this.
  367. The \"**\" feature is active by default in the option `helm-file-globstar'. It
  368. is different from the Bash \"shopt globstar\" feature in that to list files with
  369. a named extension recursively you would write \"**.el\" whereas in Bash it would
  370. be \"**/*.el\". Directory selection with \"**/\" like Bash \"shopt globstar\"
  371. option is not supported yet.
  372. *** Query replace regexp on filenames
  373. Replace different parts of a file basename with something else.
  374. When calling this action you will be prompted twice as with
  375. `query-replace', first for the matching expression of the text to
  376. replace and second for the replacement text. Several facilities,
  377. however, are provided to make the two prompts more powerfull.
  378. **** Syntax of the first prompt
  379. In addition to simple regexps, these shortcuts are available:
  380. - Basename without extension => \"%.\"
  381. - Only extension => \".%\"
  382. - Substring => \"%:<from>:<to>\"
  383. - Whole basename => \"%\"
  384. **** Syntax of the second prompt
  385. In addition to a simple string to use as replacement, here is what you can use:
  386. - A placeholder refering to what you have selected in the first prompt: \"\\@\".
  387. After this placeholder you can use a search-and-replace syntax à-la sed:
  388. \"\\@/<regexp>/<replacement>/
  389. You can select a substring from the string represented by the placeholder:
  390. \"\\@:<from>:<to>\"
  391. - A special character representing a number which is incremented: \"\\#\".
  392. - Shortcuts for `upcase', `downcase' and `capitalize'
  393. are available as`%u', `%d' and `%c' respectively.
  394. **** Examples
  395. ***** Recursively rename all files with \".JPG\" extension to \".jpg\"
  396. Use the `helm-file-globstar' feature described in [[Use the wildcard to select multiple files][recursive globbing]]
  397. by entering \"**.JPG\" at the end of the Helm-find-files pattern, then hit
  398. \\<helm-map>\\[helm-ff-query-replace-on-filenames]: First \"JPG\", then \"jpg\"
  399. and hit `RET'.
  400. Alternatively you can enter \".%\" at the first prompt, then \"jpg\" and hit
  401. `RET'. Note that when using this instead of using \"JPG\" at the first prompt,
  402. all extensions will be renamed to \"jpg\" even if the extension of one of the
  403. files is, say, \"png\". If you want to keep the original extension you can use
  404. \"%d\" at the second prompt (downcase).
  405. ***** Batch-rename files from number 001 to 00x
  406. Use \"\\#\" inside the second prompt.
  407. Example 1: To rename the files
  408. foo.jpg
  409. bar.jpg
  410. baz.jpg
  411. to
  412. foo-001.jpg
  413. foo-002.jpg
  414. foo-003.jpg
  415. use \"%.\" as matching regexp and \"foo-\\#\" as replacement string.
  416. Example 2: To rename the files
  417. foo.jpg
  418. bar.jpg
  419. baz.jpg
  420. to
  421. foo-001.jpg
  422. bar-002.jpg
  423. baz-003.jpg
  424. use as matching regexp \"%.\" and as replacement string \"\\@-\\#\".
  425. ***** Replace a substring
  426. Use \"%:<from>:<to>\".
  427. Example: To rename files
  428. foo.jpg
  429. bar.jpg
  430. baz.jpg
  431. to
  432. fOo.jpg
  433. bAr.jpg
  434. bAz.jpg
  435. use as matching regexp \"%:1:2\" and as replacement string \"%u\" (upcase).
  436. Note that you \*cannot* use \"%.\" and \".%\" along with substring replacement.
  437. ***** Modify the string from the placeholder (\\@)
  438. - By substring, i.e. only using the substring of the placeholder: \"\\@:<from>:<to>\".
  439. The length of placeholder is used for <to> when unspecified.
  440. Example 1: \"\\@:0:2\" replaces from the beginning to the second char of the placeholder.
  441. Example 2: \\@:2: replaces from the second char of the placeholder to the end.
  442. - By search-and-replace: \"\\@/<regexp>/<replacement>/\".
  443. Incremental replacement is also handled in <replacement>.
  444. Example 3: \"\\@/foo/bar/\" replaces \"foo\" by \"bar\" in the placeholder.
  445. Example 4: \"\\@/foo/-\\#/\" replaces \"foo\" in the placeholder by 001, 002, etc.
  446. ***** Clash in replacements (avoid overwriting files)
  447. When performing any of these replacement operations you may end up with same
  448. names as replacement. In such cases Helm numbers the file that would otherwise
  449. overwritten. For instance, should you remove the \"-m<n>\" part from the files
  450. \"emacs-m1.txt\", \"emacs-m2.txt\" and \"emacs-m3.txt\" you would end up with
  451. three files named \"emacs.txt\", the second renaming overwriting first file, and
  452. the third renaming overwriting second file and so on. Instead Helm will
  453. automatically rename the second and third files as \"emacs(1).txt\" and
  454. \"emacs(2).txt\" respectively.
  455. ***** Query-replace on filenames vs. serial-rename action
  456. Unlike the [[Serial renaming][serial rename]] actions, the files renamed with
  457. the query-replace action stay in their initial directory and are not moved to
  458. the current directory. As such, using \"\\#\" to serial-rename files only makes
  459. sense for files inside the same directory. It even keeps renaming files
  460. with an incremental number in the next directories.
  461. *** Serial renaming
  462. You can use the serial-rename actions to rename, copy or symlink marked files to
  463. a specific directory or in the current directory with all the files numbered
  464. incrementally.
  465. - Serial-rename by renaming:
  466. Rename all marked files with incremental numbering to a specific directory.
  467. - Serial-rename by copying:
  468. Copy all marked files with incremental numbering to a specific directory.
  469. - Serial-rename by symlinking:
  470. Symlink all marked files with incremental numbering to a specific directory.
  471. *** Edit marked files in a dired buffer
  472. You can open a dired buffer containing only marked files with `\\<helm-find-files-map>\\[helm-ff-run-marked-files-in-dired]'.
  473. With a prefix argument you can open this same dired buffer in wdired mode for
  474. editing. Note that wildcards are supported as well, so you can use e.g.
  475. \"*.txt\" to select all \".txt\" files in the current directory or \"**.txt\" to
  476. select all files recursively from the current directory.
  477. See [[Use the wildcard to select multiple files]] section above.
  478. *** Defining default target directory for copying, renaming, etc
  479. You can customize `helm-dwim-target' to behave differently depending on the
  480. windows open in the current frame. Default is to provide completion on all
  481. directories associated to each window.
  482. *** Copying and renaming asynchronously
  483. If you have the async library installed (if you got Helm from MELPA you do), you
  484. can use it for copying/renaming files by enabling `dired-async-mode'.
  485. Note that even when async is enabled, running a copy/rename action with a prefix
  486. argument will execute action synchronously. Moreover it will follow the first
  487. file of the marked files in its destination directory.
  488. When `dired-async-mode' is enabled, an additional action named \"Backup files\"
  489. will be available. (Such command is not natively available in Emacs).
  490. See [[Use the wildcard to select multiple files]] for details.
  491. *** Bookmark the `helm-find-files' session
  492. You can bookmark the `helm-find-files' session with `\\[helm-ff-bookmark-set]'.
  493. You can later retrieve these bookmarks by calling `helm-filtered-bookmarks'
  494. or, from the current `helm-find-files' session, by hitting `\\[helm-find-files-toggle-to-bookmark]'.
  495. *** Grep files from `helm-find-files'
  496. You can grep individual files from `helm-find-files' by using
  497. \`\\<helm-find-files-map>\\[helm-ff-run-grep]'. This same command can also
  498. recursively grep files from the current directory when called with a prefix
  499. argument. In this case you will be prompted for the file extensions to use
  500. \(grep backend) or the types of files to use (ack-grep backend). See the
  501. `helm-grep-default-command' documentation to set this up. For compressed files
  502. or archives, use zgrep with \`\\<helm-find-files-map>\\[helm-ff-run-zgrep]'.
  503. Otherwise you can use recursive commands like \`\\<helm-find-files-map>\\[helm-ff-run-grep-ag]' or `\\<helm-find-files-map>\\[helm-ff-run-git-grep]'
  504. that are much faster than using `\\<helm-find-files-map>\\[helm-ff-run-grep]' with a prefix argument.
  505. See `helm-grep-ag-command' and `helm-grep-git-grep-command' to set this up.
  506. You can also use \"id-utils\"' GID with \`\\<helm-find-files-map>\\[helm-ff-run-gid]'
  507. by creating an ID index file with the \"mkid\" shell command.
  508. All those grep commands use the symbol at point as the default pattern.
  509. Note that default is different from input (nothing is added to the prompt until
  510. you hit `\\[next-history-element]').
  511. **** Grepping on remote files
  512. On remote files grep is not well supported by TRAMP unless you suspend updates before
  513. entering the pattern and re-enable it once your pattern is ready.
  514. To toggle suspend-update, use `\\<helm-map>\\[helm-toggle-suspend-update]'.
  515. *** Execute Eshell commands on files
  516. Setting up aliases in Eshell allows you to set up powerful customized commands.
  517. Adding Eshell aliases to your `eshell-aliases-file' or using the
  518. `alias' command from Eshell allows you to create personalized
  519. commands not available in `helm-find-files' actions and use them
  520. from `\\<helm-find-files-map>\\[helm-ff-run-eshell-command-on-file]'.
  521. Example: You want a command to uncompress some \"*.tar.gz\" files from `helm-find-files':
  522. 1) Create an Eshell alias named, say, \"untargz\" with the command
  523. \"alias untargz tar zxvf $*\".
  524. 2) Now from `helm-find-files' select the \"*.tar.gz\" file (you can also
  525. mark files if needed) and hit `\\<helm-find-files-map>\\[helm-ff-run-eshell-command-on-file]'.
  526. Note: When using marked files with this, the meaning of the prefix argument is
  527. quite subtle. Say you have \"foo\", \"bar\" and \"baz\" marked; when you run
  528. the alias command `example' on these files with no prefix argument it will run
  529. `example' sequentially on each file:
  530. $ example foo
  531. $ example bar
  532. $ example baz
  533. With a prefix argument however it will apply `example' on all files at once:
  534. $ example foo bar baz
  535. Of course the alias command should support this.
  536. If you add %s to the command line %s will be replaced with the candidate, this mean you can
  537. add extra argument to your command e.g. command -extra-arg %s or command %s -extra-arg.
  538. If you want to pass many files inside %s, don't forget to use a prefix arg.
  539. You can also use special placeholders in extra-args,
  540. see the specific info page once you hit `\\<helm-find-files-map>\\[helm-ff-run-eshell-command-on-file]'.
  541. *** Using TRAMP with `helm-find-files' to read remote directories
  542. `helm-find-files' works fine with TRAMP despite some limitations.
  543. - Grepping files is not very well supported when used incrementally.
  544. See [[Grepping on remote files]].
  545. - Locate does not work on remote directories.
  546. **** A TRAMP syntax crash course
  547. Please refer to TRAMP's documentation for more details.
  548. - Connect to host 192.168.0.4 as user \"foo\":
  549. /scp:192.168.0.4@foo:
  550. - Connect to host 192.168.0.4 as user \"foo\" on port 2222:
  551. /scp:192.168.0.4@foo#2222:
  552. - Connect to host 192.168.0.4 as root using multihops syntax:
  553. /ssh:192.168.0.4@foo|sudo:192.168.0.4:
  554. Note: You can also use `tramp-default-proxies-alist' when connecting often to
  555. the same hosts.
  556. As a rule of thumb, prefer the scp method unless using multihops (which only
  557. works with the ssh method), especially when copying large files.
  558. You need to hit `C-j' once on top of a directory on the first connection
  559. to complete the pattern in the minibuffer.
  560. **** Display color for directories, symlinks etc... with tramp
  561. Starting at helm version 2.9.7 it is somewhat possible to
  562. colorize fnames by listing files without loosing performances with
  563. external commands (ls and awk) if your system is compatible.
  564. For this you can use `helm-list-dir-external' as value
  565. for `helm-list-directory-function'.
  566. See `helm-list-directory-function' documentation for more infos.
  567. **** Completing host
  568. As soon as you enter the first \":\" after method e.g =/scp:= you will
  569. have some completion about previously used hosts or from your =~/.ssh/config=
  570. file, hitting `\\[helm-execute-persistent-action]' or `right' on a candidate will insert this host in minibuffer
  571. without addind the ending \":\", second hit insert the last \":\".
  572. As soon the last \":\" is entered TRAMP will kick in and you should see the list
  573. of candidates soon after.
  574. When connection fails, be sure to delete your TRAMP connection with M-x
  575. `helm-delete-tramp-connection' before retrying.
  576. **** Editing local files as root
  577. Use the sudo method:
  578. \"/sudo:host:\" or simply \"/sudo::\".
  579. *** Attach files to a mail buffer (message-mode)
  580. If you are in a `message-mode' or `mail-mode' buffer, that action will appear
  581. in action menu, otherwise it is available at any time with \\<helm-find-files-map>\\[helm-ff-run-mail-attach-files].
  582. It behaves as follows:
  583. - If you are in a (mail or message) buffer, files are attached there.
  584. - If you are not in a mail buffer but one or more mail buffers exist, you are
  585. prompted to attach files to one of these mail buffers.
  586. - If you are not in a mail buffer and no mail buffer exists,
  587. a new mail buffer is created with the attached files in it.
  588. *** Open files in separate windows
  589. When [[Marked candidates][marking]] multiple files or using [[Use the wildcard to select multiple files][wildcard]], helm allow opening all
  590. this files in separate windows using an horizontal layout or a
  591. vertical layout if you used a prefix arg, when no more windows can be
  592. displayed in frame, next files are opened in background without being
  593. displayed. When using \\<helm-find-files-map>\\[helm-ff-run-switch-other-window] the current
  594. buffer is kept and files are displayed next to it with same behavior as above.
  595. When using two prefix args, files are opened in background without beeing displayed.
  596. *** Expand archives as directories in a avfs directory
  597. If you have mounted your filesystem with mountavfs,
  598. you can expand archives in the \"~/.avfs\" directory with \\<helm-map>\\[helm-execute-persistent-action].
  599. *** Tramp archive support (emacs-27+ only)
  600. If your emacs have library tramp-archive.el, you can browse the
  601. content of archives with emacs and BTW helm-find-files. However this beeing
  602. experimental and not very fast, helm doesn't provide an automatic
  603. expansion and detection of archives, you will have to add the final /
  604. manually and may have to force update (\\<helm-map>\\[helm-refresh])
  605. or remove and add again the final / until tramp finish decompressing archive.
  606. *** Touch files
  607. In the completion buffer, you can choose the default which is the current-time, it is
  608. the first candidate or the timestamp of one of the selected files.
  609. If you need to use something else, use \\<helm-map>\\[next-history-element] and edit
  610. the date in minibuffer.
  611. It is also a way to quickly create a new file without opening a buffer, saving it
  612. and killing it.
  613. To touch more than one new file, separate you filenames with a comma (\",\").
  614. If one wants to create (touch) a new file with comma inside the name use a prefix arg,
  615. this will prevent splitting the name and create multiple files.
  616. *** Delete files
  617. You can delete files without quitting helm with
  618. `\\<helm-find-files-map>\\[helm-ff-persistent-delete]' or delete files and quit helm with `\\[helm-ff-run-delete-file]'.
  619. In the second method you can choose to
  620. make this command asynchronous by customizing
  621. \`helm-ff-delete-files-function'.
  622. _WARNING_: When deleting files asynchronously you will NOT be
  623. WARNED if directories are not empty, that's mean non empty directories will
  624. be deleted in background without asking.
  625. A good compromise is to trash your files
  626. when using asynchronous method (see [[Trashing files][Trashing files]]).
  627. When choosing synchronous delete, you can allow recursive
  628. deletion of directories with `helm-ff-allow-recursive-deletes'.
  629. Note that when trashing (synchronous) you are not asked for recursive deletion.
  630. Note that `helm-ff-allow-recursive-deletes' have no effect when
  631. deleting asynchronously.
  632. First method (persistent delete) is always synchronous.
  633. Note that when a prefix arg is given, trashing behavior is inversed.
  634. See [[Trashing files][Trashing files]].
  635. **** Trashing files
  636. If you want to trash your files instead of deleting them you can
  637. set `delete-by-moving-to-trash' to non nil, like this your files
  638. will be moved to trash instead of beeing deleted.
  639. You can reverse at any time the behavior of `delete-by-moving-to-trash' by using
  640. a prefix arg with any of the delete files command.
  641. On GNULinux distributions, when navigating to a Trash directory you
  642. can restore any file in ..Trash/files directory with the 'Restore
  643. from trash' action you will find in action menu (needs the
  644. trash-cli package installed for remote files, see [[Trashing remote files with tramp][Here]]).
  645. You can as well delete files from Trash directories with the 'delete files from trash'
  646. action.
  647. If you want to know where a file will be restored, hit `M-i', you will find a trash info.
  648. Tip: Navigate to your Trash/files directories with `helm-find-files' and set a bookmark
  649. there with \\<helm-find-files-map>\\[helm-ff-bookmark-set] for fast access to Trash.
  650. NOTE: Restoring files from trash is working only on system using
  651. the [[http://freedesktop.org/wiki/Specifications/trash-spec][freedesktop trash specifications]].
  652. _WARNING:_
  653. If you have an ENV var XDG_DATA_HOME in your .profile or .bash_profile
  654. and this var is set to something like $HOME/.local/share (like preconized)
  655. `move-file-to-trash' may try to create $HOME/.local/share/Trash (literally)
  656. and its subdirs in the directory where you are actually trying to trash files.
  657. because `move-file-to-trash' is interpreting XDG_DATA_HOME literally instead
  658. of evaling its value (with `substitute-in-file-name').
  659. ***** Trashing remote files with tramp
  660. Trashing remote files (or local files with sudo method) is disabled by default
  661. because tramp is requiring the 'trash' command to be installed, if you want to
  662. trash your remote files, customize `helm-trash-remote-files'.
  663. The package on most GNU/Linux based distributions is trash-cli, it is available [[https://github.com/andreafrancia/trash-cli][here]].
  664. NOTE:
  665. When deleting your files with sudo method, your trashed files will not be listed
  666. with trash-list until you log in as root.
  667. *** Checksum file
  668. Checksum is calculated with the md5sum, sha1sum, sha224sum,
  669. sha256sum, sha384sum and sha512sum when available, otherwise the
  670. Emacs function `secure-hash' is used but it is slow and may crash
  671. Emacs and even the whole system as it eats all memory. So if
  672. your system doesn't have the md5 and sha command line tools be
  673. careful when checking sum of larges files e.g. isos.
  674. *** Ignored or boring files
  675. Helm-find-files can ignore files matching
  676. `helm-boring-file-regexp-list' or files that are git ignored, you
  677. can set this with `helm-ff-skip-boring-files' or
  678. `helm-ff-skip-git-ignored-files'.
  679. ** Commands
  680. \\<helm-find-files-map>
  681. \\[helm-ff-run-locate]\t\tRun `locate' (`\\[universal-argument]' to specify locate database, `M-n' to insert basename of candidate).
  682. \\[helm-ff-run-browse-project]\t\tBrowse project (`\\[universal-argument]' to recurse, `\\[universal-argument] \\[universal-argument]' to recurse and refresh database).
  683. \\[helm-ff-run-find-sh-command]\t\tRun `find' shell command from this directory.
  684. \\[helm-ff-run-grep]\t\tRun Grep (`\\[universal-argument]' to recurse).
  685. \\[helm-ff-run-pdfgrep]\t\tRun Pdfgrep on marked files.
  686. \\[helm-ff-run-zgrep]\t\tRun zgrep (`\\[universal-argument]' to recurse).
  687. \\[helm-ff-run-grep-ag]\t\tRun AG grep on current directory.
  688. \\[helm-ff-run-git-grep]\t\tRun git-grep on current directory.
  689. \\[helm-ff-run-gid]\t\tRun gid (id-utils).
  690. \\[helm-ff-run-etags]\t\tRun Etags (`\\[universal-argument]' to use thing-at-point, `\\[universal-argument] \\[universal-argument]' to reload cache).
  691. \\[helm-ff-run-rename-file]\t\tRename Files (`\\[universal-argument]' to follow).
  692. \\[helm-ff-run-query-replace-fnames-on-marked]\t\tQuery replace on marked files.
  693. \\[helm-ff-run-copy-file]\t\tCopy Files (`\\[universal-argument]' to follow).
  694. \\[helm-ff-run-byte-compile-file]\t\tByte Compile Files (`\\[universal-argument]' to load).
  695. \\[helm-ff-run-load-file]\t\tLoad Files.
  696. \\[helm-ff-run-symlink-file]\t\tSymlink Files.
  697. \\[helm-ff-run-hardlink-file]\t\tHardlink files.
  698. \\[helm-ff-run-relsymlink-file]\t\tRelative symlink Files.
  699. \\[helm-ff-run-delete-file]\t\tDelete Files.
  700. \\[helm-ff-run-touch-files]\t\tTouch files.
  701. \\[helm-ff-run-kill-buffer-persistent]\t\tKill buffer candidate without leaving Helm.
  702. \\[helm-ff-persistent-delete]\t\tDelete file without leaving Helm.
  703. \\[helm-ff-run-switch-to-eshell]\t\tSwitch to Eshell.
  704. \\[helm-ff-run-eshell-command-on-file]\t\tEshell command on file (`\\[universal-argument]' to apply on marked files, otherwise treat them sequentially).
  705. \\[helm-ff-run-ediff-file]\t\tEdiff file.
  706. \\[helm-ff-run-ediff-merge-file]\t\tEdiff merge file.
  707. \\[helm-ff-run-complete-fn-at-point]\t\tComplete file name at point.
  708. \\[helm-ff-run-switch-other-window]\t\tSwitch to other window.
  709. \\[helm-ff-run-switch-other-frame]\t\tSwitch to other frame.
  710. \\[helm-ff-run-open-file-externally]\t\tOpen file with external program (`\\[universal-argument]' to choose).
  711. \\[helm-ff-run-preview-file-externally]\t\tPreview file with external program.
  712. \\[helm-ff-run-open-file-with-default-tool]\t\tOpen file externally with default tool.
  713. \\[helm-ff-rotate-left-persistent]\t\tRotate image left.
  714. \\[helm-ff-rotate-right-persistent]\t\tRotate image right.
  715. \\[helm-find-files-up-one-level]\t\tGo to parent directory.
  716. \\[helm-find-files-history]\t\tSwitch to the visited-directory history.
  717. \\[helm-ff-file-name-history]\t\tSwitch to file name history.
  718. \\[helm-ff-properties-persistent]\t\tShow file properties in a tooltip.
  719. \\[helm-mark-all]\t\tMark all visible candidates.
  720. \\[helm-ff-run-toggle-auto-update]\t\tToggle auto-expansion of directories.
  721. \\[helm-unmark-all]\t\tUnmark all candidates, visible and invisible ones.
  722. \\[helm-ff-run-mail-attach-files]\t\tAttach files to message buffer.
  723. \\[helm-ff-run-print-file]\t\tPrint file, (`\\[universal-argument]' to refresh printer list).
  724. \\[helm-enlarge-window]\t\tEnlarge Helm window.
  725. \\[helm-narrow-window]\t\tNarrow Helm window.
  726. \\[helm-ff-run-toggle-basename]\t\tToggle basename/fullpath.
  727. \\[helm-ff-run-find-file-as-root]\t\tFind file as root.
  728. \\[helm-ff-run-find-alternate-file]\t\tFind alternate file.
  729. \\[helm-ff-run-insert-org-link]\t\tInsert org link.
  730. \\[helm-ff-bookmark-set]\t\tSet bookmark to current directory.
  731. \\[helm-find-files-switch-to-bookmark]\t\tJump to bookmark list.
  732. \\[helm-ff-sort-alpha]\t\tSort alphabetically
  733. \\[helm-ff-sort-by-newest]\t\tSort by newest
  734. \\[helm-ff-sort-by-size]\t\tSort by size")
  735. ;;; Help for file-name-history
  736. ;;
  737. ;;
  738. (defvar helm-file-name-history-help-message
  739. "* Helm file name history
  740. ** Tips
  741. You can open directly the selected file and exit helm or preselect the file in helm-find-files,
  742. see actions in action menu.
  743. You can toggle the view of deleted files, see commands below.
  744. ** Commands
  745. \\<helm-file-name-history-map>
  746. \\[helm-file-name-history-show-or-hide-deleted]\t\tToggle deleted files view.")
  747. ;;; Help for `helm-read-file-name'
  748. ;;
  749. ;;
  750. (defun helm-read-file-name-help-message ()
  751. (let ((name (if helm-alive-p
  752. (assoc-default 'name (helm-get-current-source))
  753. "generic")))
  754. (format
  755. "* Helm `%s' read file name completion
  756. This is `%s' read file name completion that have been \"helmized\"
  757. because you have enabled [[Helm mode][helm-mode]]'.
  758. Don't confuse this with `helm-find-files' which is a native helm command,
  759. see [[Helm functions vs helmized Emacs functions]].
  760. ** Tips
  761. *** Navigation
  762. **** Enter `~/' at end of pattern to quickly reach home directory
  763. **** Enter `/' at end of pattern to quickly reach the file system root
  764. **** Enter `./' at end of pattern to quickly reach `default-directory'
  765. \(As per its value at the beginning of the session.)
  766. If you already are in the `default-directory' this will move the cursor to the top.
  767. **** Enter `../' at end of pattern will reach upper directory, moving cursor on top
  768. This is different from using `\\[helm-find-files-up-one-level]' in that it moves
  769. the cursor to the top instead of remaining on the previous subdir name.
  770. **** You can complete with partial basename
  771. It starts from the third character of the pattern.
  772. For instance \"fob\" or \"fbr\" will complete \"foobar\" but \"fb\" needs a
  773. third character in order to complete it.
  774. *** Persistent actions
  775. By default `helm-read-file-name' uses the persistent actions of `helm-find-files'.
  776. **** Use `\\[universal-argument] \\<helm-map>\\[helm-execute-persistent-action]' to display an image
  777. **** `\\<helm-map>\\[helm-execute-persistent-action]' on a filename will expand to this filename in Helm-buffer
  778. Second hit displays the buffer filename.
  779. Third hit kills the buffer filename.
  780. Note: `\\[universal-argument] \\<helm-map>\\[helm-execute-persistent-action]' displays the buffer directly.
  781. **** Browse images directories with `helm-follow-mode' and navigate up/down
  782. *** Delete characters backward
  783. When you want to delete characters backward, e.g. to create a new file or directory,
  784. auto-update may come in the way when it keeps updating to an existent directory.
  785. In that case, type `C-<backspace>' and then `<backspace>'.
  786. This should not be needed when copying/renaming files because autoupdate is disabled
  787. by default in that case.
  788. Note: On a terminal, the default binding `C-<backspace>' may not work.
  789. In this case use `C-c <backspace>'.
  790. *** Create new directories and files
  791. **** You can create a new directory and a new file at the same time
  792. Simply write the path in prompt and press `RET', e.g.
  793. \"~/new/newnew/newnewnew/my_newfile.txt\".
  794. **** To create a new directory, append a \"/\" at to the new name and press `RET'
  795. **** To create a new file, enter a filename not ending with \"/\"
  796. File and directory creation works only with some commands (e.g. `find-file')
  797. and it will not work with others where it is not intended to return a file or
  798. a directory \(e.g `list-directory').
  799. *** Exiting minibuffer with empty string
  800. You can exit minibuffer with empty string with \\<helm-read-file--map>\\[helm-cr-empty-string].
  801. It is useful when some commands are prompting continuously until you enter an empty prompt.
  802. ** Commands
  803. \\<helm-read-file-map>
  804. \\[helm-find-files-up-one-level]\t\tGo to parent directory.
  805. \\[helm-ff-run-toggle-auto-update]\t\tToggle auto-expansion of directories.
  806. \\[helm-ff-run-toggle-basename]\t\tToggle basename.
  807. \\[helm-ff-file-name-history]\t\tFile name history.
  808. C/\\[helm-cr-empty-string]\t\tReturn empty string unless `must-match' is non-nil.
  809. \\[helm-next-source]\t\tGo to next source.
  810. \\[helm-previous-source]\t\tGo to previous source."
  811. name name)))
  812. ;;; Generic file help - Used by locate.
  813. ;;
  814. ;;
  815. (defvar helm-generic-file-help-message
  816. "* Helm Generic files
  817. ** Tips
  818. *** Locate
  819. You can append to the search pattern any of the locate command line options,
  820. e.g. -b, -e, -n <number>, etc. See the locate(1) man page for more details.
  821. Some other sources (at the moment \"recentf\" and \"file in current directory\")
  822. support the -b flag for compatibility with locate when they are used with it.
  823. When you enable fuzzy matching on locate with `helm-locate-fuzzy-match', the
  824. search will be performed on basename only for efficiency (so don't add \"-b\" at
  825. prompt). As soon as you separate the patterns with spaces, fuzzy matching will
  826. be disabled and search will be done on the full filename. Note that in
  827. multi-match, fuzzy is completely disabled, which means that each pattern is a
  828. match regexp (i.e. \"helm\" will match \"helm\" but \"hlm\" will \*not* match
  829. \"helm\").
  830. *** Browse project
  831. When the current directory is not under version control, don't forget to refresh
  832. the cache when files have been added/removed in the directory.
  833. *** Find command
  834. Recursively search files using the \"find\" shell command.
  835. Candidates are all filenames that match all given globbing patterns. This
  836. respects the options `helm-case-fold-search' and
  837. `helm-findutils-search-full-path'.
  838. You can pass arbitrary \"find\" options directly after a \"*\" separator.
  839. For example, this would find all files matching \"book\" that are larger
  840. than 1 megabyte:
  841. book * -size +1M
  842. ** Commands
  843. \\<helm-generic-files-map>
  844. \\[helm-ff-run-toggle-basename]\t\tToggle basename.
  845. \\[helm-ff-run-grep]\t\tRun grep (`\\[universal-argument]' to recurse).
  846. \\[helm-ff-run-zgrep]\t\tRun zgrep.
  847. \\[helm-ff-run-gid]\t\tRun GID (id-utils).
  848. \\[helm-ff-run-pdfgrep]\t\tRun PDFgrep on marked files.
  849. \\[helm-ff-run-copy-file]\t\tCopy file(s)
  850. \\[helm-ff-run-rename-file]\t\tRename file(s).
  851. \\[helm-ff-run-symlink-file]\t\tSymlink file(s).
  852. \\[helm-ff-run-hardlink-file]\t\tHardlink file(s).
  853. \\[helm-ff-run-delete-file]\t\tDelete file(s).
  854. \\[helm-ff-run-byte-compile-file]\t\tByte compile Elisp file(s) (`\\[universal-argument]' to load).
  855. \\[helm-ff-run-load-file]\t\tLoad Elisp file(s).
  856. \\[helm-ff-run-ediff-file]\t\tEdiff file.
  857. \\[helm-ff-run-ediff-merge-file]\t\tEdiff-merge file.
  858. \\[helm-ff-run-switch-other-window]\t\tSwitch to other window.
  859. \\[helm-ff-properties-persistent]\t\tShow file properties.
  860. \\[helm-ff-run-etags]\t\tRun etags (`\\[universal-argument]' to use tap, `\\[universal-argument] \\[universal-argument]' to reload the database).
  861. \\[helm-ff-run-open-file-externally]\t\tOpen file with external program (`\\[universal-argument]' to choose).
  862. \\[helm-ff-run-open-file-with-default-tool]\t\tOpen file externally with default tool.
  863. \\[helm-ff-run-insert-org-link]\t\tInsert org link.")
  864. ;;; Grep help
  865. ;;
  866. ;;
  867. (defvar helm-grep-help-message
  868. "* Helm Grep
  869. ** Tips
  870. *** Use a prefix argument to grep recursively
  871. With Helm supporting git-grep and AG however, you are better off using one of
  872. them for recursive searches.
  873. *** You can use wild cards when selecting files (e.g. \"*.el\")
  874. *** You can grep in many different directories by marking files or using wild cards
  875. *** You can save the result in a `helm-grep-mode' buffer
  876. See [[Commands][commands]] below.
  877. Once in that buffer you can use \"emacs-wgrep\" (external package not bundled with Helm)
  878. to edit your changes.
  879. *** Helm-grep supports multi-matching
  880. \(Starting from version 1.9.4.)
  881. Simply add a space between each pattern as for most Helm commands.
  882. *** See full path of selected candidate
  883. Add (helm-popup-tip-mode 1) in your init file or enable it interactively with
  884. M-x helm-popup-tip-mode.
  885. *** Open file in other window
  886. The command \\<helm-grep-map>\\[helm-grep-run-other-window-action] allow you to open file
  887. in other window horizontally or vertically if a prefix arg is supplied.
  888. *** Performance over TRAMP
  889. Grepping works but it is badly supported as TRAMP doesn't support multiple
  890. processes running in a short delay (less than 5s) among other things.
  891. Helm uses a special hook to suspend the process automatically while you are
  892. typing. Even if Helm handles this automatically by delaying each process by 5s,
  893. you are adviced to this manually by hitting `\\<helm-map>\\[helm-toggle-suspend-update]' (suspend process) before
  894. typing, and hit again `\\<helm-map>\\[helm-toggle-suspend-update]' when the regexp is ready to send to the remote
  895. process. For simple regexps, there should be no need for this.
  896. Another solution is to not use TRAMP at all and mount your remote file system via
  897. SSHFS.
  898. * Helm GID
  899. ** Tips
  900. Helm-GID reads the database created with the `mkid' command from id-utils.
  901. The name of the database file can be customized with `helm-gid-db-file-name', it
  902. is usually \"ID\".
  903. Helm-GID use the symbol at point as default-input. This command is also
  904. accessible from `helm-find-files' which allow you to navigate to another
  905. directory to consult its database.
  906. Note: Helm-GID supports multi-matches but only the last pattern entered will be
  907. highlighted since there is no ~--color~-like option in GID itself.
  908. * Helm AG
  909. ** Tips
  910. Helm-AG is different from grep or ack-grep in that it works on a directory and
  911. not on a list of files.
  912. You can ignore files and directories with a \".agignore\" file, local to a
  913. directory or global when placed in the home directory. \(See the AG man page for
  914. more details.) That file follows the same syntax as `helm-grep-ignored-files'
  915. and `helm-grep-ignored-directories'.
  916. As always you can access Helm AG from `helm-find-files'.
  917. Starting with version 0.30, AG accepts one or more TYPE arguments on its command
  918. line. Helm provides completion on these TYPE arguments when available with your
  919. AG version. Use a prefix argument when starting a Helm-AG session to enable this
  920. completion.
  921. Note: You can mark several types to match in the AG query. The first AG
  922. versions providing this feature allowed only one type, so in this case only the
  923. last mark will be used.
  924. * Helm git-grep
  925. Helm-git-grep searches the current directory, i.e the default directory or the
  926. directory in Helm-find-files. If this current directory is a subdirectory of a
  927. project and you want to also match parent directories (i.e the whole project),
  928. use a prefix argument.
  929. ** Commands
  930. \\<helm-grep-map>
  931. \\[helm-goto-next-file]\t\tNext File.
  932. \\[helm-goto-precedent-file]\t\tPrevious File.
  933. \\[helm-yank-text-at-point]\t\tYank text at point in minibuffer.
  934. \\[helm-grep-run-other-window-action]\t\tJump to other window.
  935. \\[helm-grep-run-other-frame-action]\t\tJump to other frame.
  936. \\[helm-grep-run-default-action]\t\tRun default action (same as `RET').
  937. \\[helm-grep-run-save-buffer]\t\tSave to a `helm-grep-mode' enabled buffer.")
  938. ;;; PDF grep help
  939. ;;
  940. ;;
  941. (defvar helm-pdfgrep-help-message
  942. "* Helm PDFgrep Map
  943. ** Commands
  944. \\<helm-pdfgrep-map>
  945. \\[helm-goto-next-file]\t\tNext file.
  946. \\[helm-goto-precedent-file]\t\tPrevious file.
  947. \\[helm-yank-text-at-point]\t\tYank text at point in minibuffer.")
  948. ;;; Etags help
  949. ;;
  950. ;;
  951. (defvar helm-etags-help-message
  952. "* Helm Etags Map
  953. ** Commands
  954. \\<helm-etags-map>
  955. \\[helm-goto-next-file]\t\tNext file.
  956. \\[helm-goto-precedent-file]\t\tPrevious file.
  957. \\[helm-yank-text-at-point]\t\tYank text at point in minibuffer.")
  958. ;;; UCS help
  959. ;;
  960. ;;
  961. (defvar helm-ucs-help-message
  962. "* Helm UCS
  963. ** Tips
  964. Use commands below to insert unicode characters in current buffer without
  965. leaving Helm.
  966. ** Commands
  967. \\<helm-ucs-map>
  968. \\[helm-ucs-persistent-insert]\t\tInsert character.
  969. \\[helm-ucs-persistent-forward]\t\tForward character.
  970. \\[helm-ucs-persistent-backward]\t\tBackward character.
  971. \\[helm-ucs-persistent-delete]\t\tDelete character backward.
  972. \\[helm-ucs-persistent-insert-space]\t\tInsert space.")
  973. ;;; Bookmark help
  974. ;;
  975. ;;
  976. (defvar helm-bookmark-help-message
  977. "* Helm bookmark name
  978. ** Commands
  979. \\<helm-bookmark-map>
  980. \\[helm-bookmark-run-jump-other-window]\t\tJump other window.
  981. \\[helm-bookmark-run-delete]\t\tDelete bookmark.
  982. \\[helm-bookmark-run-edit]\t\tEdit bookmark.
  983. \\[helm-bookmark-toggle-filename]\t\tToggle bookmark location visibility.")
  984. ;;; Eshell command on file help
  985. ;;
  986. ;;
  987. (defvar helm-esh-help-message
  988. "* Helm Eshell on file
  989. ** Tips
  990. *** Pass extra arguments after filename
  991. Normally the command or alias will be called with file as argument. For instance
  992. <command> candidate_file
  993. But you can also pass an argument or more after \"candidate_file\" like this:
  994. <command> %s [extra_args]
  995. \"candidate_file\" will be added at \"%s\" and the command will look at this:
  996. <command> candidate_file [extra_args]
  997. **** Use placeholders in extra arguments
  998. placeholder for file without extension: \\@
  999. placeholder for incremental number: \\#
  1000. \"candidate_file\" will be added at \"%s\" and \\@ but without extension.
  1001. <command %s \\@>
  1002. \"candidate_file\" will be added at \"%s\" and \\# will be replaced by an incremental number.
  1003. <command> %s \\#
  1004. Here examples:
  1005. Say you want to use the =convert= command to convert all your .png files in a directory to .jpg.
  1006. This will convert all your files to jpg keeping the same basename.
  1007. convert %s \\@.jpg
  1008. This will convert all your files to foo-001.jpg, foo-002.jpg etc...
  1009. convert %s foo-\\#.jpg
  1010. You can of course combine both placeholders if needed.
  1011. convert %s \\@-\\#.jpg
  1012. *** Specify marked files as arguments
  1013. Example:
  1014. <command> file1 file2...
  1015. Call `helm-find-files-eshell-command-on-file' with one prefix argument. Otherwise
  1016. you can pass one prefix argument from the command selection buffer.
  1017. Note: This does not work on remote files.
  1018. With two prefix-args the output is printed to the `current-buffer'.
  1019. With no prefix argument or a prefix argument value of '(16) (`\\[universal-argument] \\[universal-argument]')
  1020. the command is called once for each file like this:
  1021. <command> file1
  1022. <command> file2
  1023. ...
  1024. ** Commands
  1025. \\<helm-esh-on-file-map>")
  1026. ;;; Ido virtual buffer help
  1027. ;;
  1028. ;;
  1029. (defvar helm-buffers-ido-virtual-help-message
  1030. "* Helm Ido virtual buffers
  1031. ** Commands
  1032. \\<helm-buffers-ido-virtual-map>
  1033. \\[helm-ff-run-switch-other-window]\t\tSwitch to other window.
  1034. \\[helm-ff-run-switch-other-frame]\t\tSwitch to other frame.
  1035. \\[helm-ff-run-grep]\t\tGrep file.
  1036. \\[helm-ff-run-zgrep]\t\tZgrep file.
  1037. \\[helm-ff-run-delete-file]\t\tDelete file.
  1038. \\[helm-ff-run-open-file-externally]\t\tOpen file externally.")
  1039. ;;; Moccur help
  1040. ;;
  1041. ;;
  1042. (defvar helm-moccur-help-message
  1043. "* Helm Moccur
  1044. ** Tips
  1045. *** Matching
  1046. Multiple regexp matching is allowed, simply enter a space to separate the regexps.
  1047. Matching empty lines is supported with the regexp \"^$\", you then get the
  1048. results displayed as the buffer-name and the line number only. You can
  1049. save and edit these results, i.e. add text to the empty line.
  1050. *** Automatically match symbol at point
  1051. Helm can automatically match the symbol at point while keeping the minibuffer
  1052. empty, ready to be written to. This behaviour is disabled by default. To
  1053. enable this you need to add `helm-source-occur' and `helm-source-moccur' to
  1054. `helm-sources-using-default-as-input'.
  1055. *** Jump to the corresponding line in the searched buffer
  1056. You can do this with `\\<helm-map>\\[helm-execute-persistent-action]' (persistent-action), to do it repeatedly
  1057. you can use `\\<helm-map>\\[helm-follow-action-forward]' and `\\<helm-map>\\[helm-follow-action-backward]' or enable `helm-follow-mode' with `\\<helm-map>\\[helm-follow-mode]'.
  1058. Follow mode is enabled by default in helm-occur.
  1059. *** Switch to buffer in other window
  1060. The command \\<helm-moccur-map>\\[helm-moccur-run-goto-line-ow] allow you to switch to buffer
  1061. in other window horizontally or vertically if a prefix arg is supplied.
  1062. *** Save the results
  1063. Similarly to Helm-grep, you can save the results with `\\<helm-occur-map>\\[helm-occur-run-save-buffer]'.
  1064. Once in the saved buffer, you can edit it, see [[Edit a saved buffer][below]].
  1065. Of course if you don't save the results, you can resume the Helm session with
  1066. `helm-resume'.
  1067. *** Refresh the resumed session
  1068. When the buffer(s) where you ran helm-(m)occur get(s) modified, the Helm buffer
  1069. will flash red as a warning. You can refresh the buffer by running `\\<helm-map>\\[helm-refresh]'.
  1070. This can be done automatically by customizing `helm-moccur-auto-update-on-resume'.
  1071. *** Refresh a saved buffer
  1072. Type `g' to update the buffer.
  1073. *** Edit a saved buffer
  1074. First, install wgrep (https://github.com/mhayashi1120/Emacs-wgrep) and then:
  1075. 1) `C-c C-p' (`wgrep-change-to-wgrep-mode') to edit the buffer(s).
  1076. 2) `C-x C-s' to save your changes.
  1077. Tip: Use the excellent iedit (https://github.com/victorhge/iedit) to modify all
  1078. occurences at once in the buffer.
  1079. *** Search in region
  1080. When searching in current-buffer with `helm-occur', if a region
  1081. is found helm will search in this region only. If you marked
  1082. this region with `mark-defun' the symbol that was at point before
  1083. marking defun will be used when `helm-source-occur' is member of
  1084. `helm-sources-using-default-as-input'.
  1085. *** Switch to next or previous source
  1086. See [[Moving in `helm-buffer'][Moving in `helm-buffer']].
  1087. ** Commands
  1088. \\<helm-occur-map>
  1089. \\[helm-occur-run-goto-line-ow]\t\tGo to line in other window.
  1090. \\[helm-occur-run-goto-line-of]\t\tGo to line in new frame.
  1091. \\[helm-occur-run-save-buffer]\t\tSave results in new buffer.")
  1092. ;;; Helm Top
  1093. ;;
  1094. ;;
  1095. (defvar helm-top-help-message
  1096. "* Helm Top
  1097. ** Commands
  1098. \\<helm-top-map>
  1099. \\[helm-top-run-sort-by-com]\t\tSort by commands.
  1100. \\[helm-top-run-sort-by-cpu]\t\tSort by CPU usage.
  1101. \\[helm-top-run-sort-by-user]\t\tSort alphabetically by user.
  1102. \\[helm-top-run-sort-by-mem]\t\tSort by memory.")
  1103. ;;; Helm Elisp package
  1104. ;;
  1105. ;;
  1106. (defvar helm-el-package-help-message
  1107. "* Helm Elisp package
  1108. ** Tips
  1109. *** Compile all your packages asynchronously
  1110. If you use async (if you have installed Helm from MELPA you do), only \"helm\",
  1111. \"helm-core\", and \"magit\" are compiled asynchronously. If you want all your
  1112. packages compiled asynchronously, add this to your init file:
  1113. (setq async-bytecomp-allowed-packages '(all))
  1114. *** Upgrade Elisp packages
  1115. On initialization (when Emacs is fetching packages on remote), if Helm finds
  1116. packages to upgrade, it will start in the upgradable packages view showing the packages
  1117. available for upgrade.
  1118. On subsequent runs, you will have to refresh the list with `C-c \\[universal-argument]'. If Helm
  1119. finds upgrades you can switch to upgrade view (see below) to see what packages
  1120. are available for upgrade or simply hit `C-c U' to upgrade them all.
  1121. To see upgradable packages hit `M-U'.
  1122. Then you can install all upgradable packages with the \"upgrade all\" action
  1123. \(`C-c \\[universal-argument]'), or upgrade only specific packages by marking them and running the
  1124. \"upgrade\" action (visible only when there are upgradable packages). Of course
  1125. you can upgrade a single package by just running the \"upgrade\" action without
  1126. marking it (`C-c u' or `RET') .
  1127. \*Warning:* You are strongly advised to \*restart* Emacs after \*upgrading* packages.
  1128. *** Meaning of flags prefixing packages
  1129. \(Emacs 25)
  1130. - The flag \"S\" that prefixes package names means that the packages belong to `package-selected-packages'.
  1131. - The flag \"U\" that prefix package names mean that this package is no more needed.
  1132. ** Commands
  1133. \\<helm-el-package-map>
  1134. \\[helm-el-package-show-all]\t\tShow all packages.
  1135. \\[helm-el-package-show-installed]\t\tShow installed packages only.
  1136. \\[helm-el-package-show-uninstalled]\t\tShow non-installed packages only.
  1137. \\[helm-el-package-show-upgrade]\t\tShow upgradable packages only.
  1138. \\[helm-el-package-show-built-in]\t\tShow built-in packages only.
  1139. \\[helm-el-run-package-install]\t\tInstall package(s).
  1140. \\[helm-el-run-package-reinstall]\t\tReinstall package(s).
  1141. \\[helm-el-run-package-uninstall]\t\tUninstall package(s).
  1142. \\[helm-el-run-package-upgrade]\t\tUpgrade package(s).
  1143. \\[helm-el-run-package-upgrade-all]\t\tUpgrade all packages.
  1144. \\[helm-el-run-visit-homepage]\t\tVisit package homepage.")
  1145. ;;; Helm M-x
  1146. ;;
  1147. ;;
  1148. (defvar helm-M-x-help-message
  1149. "* Helm M-x
  1150. ** Tips
  1151. *** You can get help on any command with persistent action (\\[helm-execute-persistent-action])
  1152. *** Prefix arguments
  1153. You must pass prefix arguments \*after* starting `helm-M-x'. A mode-line
  1154. counter will display the number of given prefix arguments.
  1155. If you pass prefix arguments before running `helm-M-x', it will be displayed in the prompt.
  1156. The first `\\[universal-argument]' after `helm-M-x' clears those prefix arguments.
  1157. *** Completion styles in helm-M-x
  1158. By default helm-M-x use 'helm completion style, if you want to enable fuzzy matching aka flex,
  1159. see [[Completion-styles][Completion-styles]].")
  1160. ;;; Helm imenu
  1161. ;;
  1162. ;;
  1163. (defvar helm-imenu-help-message
  1164. "* Helm Imenu
  1165. ** Commands
  1166. \\<helm-imenu-map>
  1167. \\[helm-imenu-next-section]\t\tGo to next section.
  1168. \\[helm-imenu-previous-section]\t\tGo to previous section.")
  1169. ;;; Helm colors
  1170. ;;
  1171. ;;
  1172. (defvar helm-colors-help-message
  1173. "* Helm colors
  1174. ** Commands
  1175. \\<helm-color-map>
  1176. \\[helm-color-run-insert-name]\t\tInsert the entry name.
  1177. \\[helm-color-run-kill-name]\t\tKill the entry name.
  1178. \\[helm-color-run-insert-rgb]\t\tInsert entry in RGB format.
  1179. \\[helm-color-run-kill-rgb]\t\tKill entry in RGB format.")
  1180. ;;; Helm Semantic
  1181. ;;
  1182. ;;
  1183. (defvar helm-semantic-help-message
  1184. "* Helm Semantic
  1185. ** Commands
  1186. \\<helm-semantic-map>")
  1187. ;;; Helm kmacro
  1188. ;;
  1189. ;;
  1190. (defvar helm-kmacro-help-message
  1191. "* Helm kmacro
  1192. ** Tips
  1193. - Start recording a kmacro with `f3'.
  1194. - End the kmacro recording with `f4'.
  1195. - Run `helm-execute-kmacro' to list all your kmacros.
  1196. Use persistent action to run your kmacro as many time as needed.
  1197. You can browse the kmacros with `helm-next-line' and `helm-previous-line'.
  1198. Note: You can't record keys running Helm commands except `helm-M-x', under the
  1199. condition that you don't choose a command using Helm completion.
  1200. ** Commands
  1201. \\<helm-kmacro-map>")
  1202. ;;; Kill ring
  1203. ;;
  1204. ;;
  1205. (defvar helm-kill-ring-help-message
  1206. "* Helm kill ring
  1207. ** Tips
  1208. Every Helm session lets you save a candidate to the kill-ring / clipboard /
  1209. primary-selection with `\\<helm-map>\\[helm-kill-selection-and-quit]'.
  1210. To save space, Helm-kill-ring truncates the candidates longer than
  1211. `helm-kill-ring-max-offset'.
  1212. `\\<helm-kill-ring-map>\\[helm-kill-ring-kill-selection]' then saves the whole
  1213. text and not the truncated value. The view of truncated candidates can be
  1214. toggled; see the command list below.
  1215. As opposed to `yank', numeric prefix arguments are ignored with
  1216. `helm-show-kill-ring': there is no need for them since selection happens within
  1217. Helm. Moreover Helm has [[Shortcuts for executing the default action on the n-th candidate][Shortcuts for executing the default action on the n-th candidate]].
  1218. It is recommended to globally bind `M-y' to `helm-show-kill-ring'. Once in the
  1219. Helm-kill-ring session you can navigate to next/previous line with `M-y' and
  1220. `M-u' for convenience. Of course `\\[helm-next-line]' and `\\[helm-previous-line]' are still available.
  1221. It is possible to delete candidates from the kill ring with `\\<helm-kill-ring-map>\\[helm-kill-ring-delete]'
  1222. but also persistently with `\\<helm-kill-ring-map>\\[helm-kill-ring-run-persistent-delete]'.
  1223. You can concatenate marked candidates and yank them in the current
  1224. buffer, thus creating a new entry in the kill ring. Candidates are
  1225. concatenated with `helm-kill-ring-separator' as default but you can
  1226. change interactively the separator while yanking by using two prefix
  1227. args. When you have something else than \"\\n\" as default value for
  1228. `helm-kill-ring-separator' and you want to use \"\\n\" from prompt, use
  1229. `C-q C-j' to enter a newline in prompt.
  1230. To not push a new entry in the kill ring, use `\\<helm-map>\\[helm-copy-to-buffer]' instead of RET
  1231. \(note that you can't change separator with this).
  1232. When inserting candidates with the default action (`RET'), `point' is placed at
  1233. the end of the candidate and `mark' at the beginning. You can revert this behavior
  1234. by using a prefix argument, i.e. `C-u RET', like the regular `yank' command does.
  1235. ** Commands
  1236. \\<helm-kill-ring-map>
  1237. \\[helm-next-line]\t\tNext line.
  1238. \\[helm-previous-line]\t\tPrevious line.
  1239. \\[helm-kill-ring-delete]\t\tDelete entry.
  1240. \\[helm-kill-ring-toggle-truncated]\t\tToggle truncated view of candidate.
  1241. \\[helm-kill-ring-kill-selection]\t\tKill non-truncated of selection.")
  1242. ;;; Completing-read
  1243. ;;
  1244. (defun helm-comp-read-help-message ()
  1245. (let ((com (assoc-default 'name (helm-get-current-source))))
  1246. (format
  1247. "* Helm completing-read completion for `%s'
  1248. Command `%s' is using a `completing-read' for completion on your input,
  1249. this completion have been \"helmized\" because you have enabled [[Helm mode][helm-mode]]'.
  1250. ** Tips
  1251. *** Disabling or use something else than helm for completion of some commands
  1252. You can disable helm completion or use something else for specific commands of your choice,
  1253. for this customize variable `helm-completing-read-handlers-alist'.
  1254. *** Exiting minibuffer with empty string
  1255. You can exit minibuffer with empty string with \\<helm-comp-read-map>\\[helm-cr-empty-string].
  1256. It is useful when some commands are prompting continuously until you enter an empty prompt.
  1257. ** Commands
  1258. \\<helm-comp-read-map>
  1259. \\[helm-cr-empty-string]\t\tExit minibuffer with empty string."
  1260. com com)))
  1261. ;;; Mode line strings
  1262. ;;
  1263. ;;
  1264. ;;;###autoload
  1265. (defvar helm-comp-read-mode-line "\
  1266. \\<helm-comp-read-map>\
  1267. C/\\[helm-cr-empty-string]:Empty \
  1268. \\<helm-map>\
  1269. \\[helm-help]:Help \
  1270. \\[helm-select-action]:Act \
  1271. \\[helm-maybe-exit-minibuffer]/\
  1272. f1/f2/f-n:NthAct \
  1273. \\[helm-toggle-suspend-update]:Tog.suspend \
  1274. \\[helm-customize-group]:Conf")
  1275. ;;;###autoload
  1276. (defvar helm-read-file-name-mode-line-string "\
  1277. \\<helm-read-file-map>\
  1278. \\[helm-help]:Help \
  1279. C/\\[helm-cr-empty-string]:Empty \
  1280. \\<helm-map>\
  1281. \\[helm-select-action]:Act \
  1282. \\[helm-maybe-exit-minibuffer]/\
  1283. f1/f2/f-n:NthAct \
  1284. \\[helm-toggle-suspend-update]:Tog.suspend \
  1285. \\[helm-customize-group]:Conf"
  1286. "String displayed in mode-line in `helm-source-find-files'.")
  1287. ;;;###autoload
  1288. (defvar helm-top-mode-line "\
  1289. \\<helm-top-map>\
  1290. \\[helm-help]:Help \
  1291. \\<helm-map>\
  1292. \\[helm-select-action]:Act \
  1293. \\[helm-maybe-exit-minibuffer]/\
  1294. f1/f2/f-n:NthAct \
  1295. \\[helm-toggle-suspend-update]:Tog.suspend \
  1296. \\[helm-customize-group]:Conf")
  1297. (provide 'helm-help)
  1298. ;; Local Variables:
  1299. ;; byte-compile-warnings: (not obsolete)
  1300. ;; coding: utf-8
  1301. ;; indent-tabs-mode: nil
  1302. ;; End:
  1303. ;;; helm-help.el ends here