-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
helm-ff-checksum
action should not be available for directories
#1769
Comments
* helm-files.el (helm-ff-checksum): Do it.
* helm-files.el (helm-find-files-actions): Remove checksum. (helm-find-files-action-transformer): Add it here.
Done, thanks. |
Here's a thought: optional actions should come last, not be injected into the middle. If we have actions like:
It makes more sense to append an action like:
than inject it like:
because injecting an action shifts the keys for every subsequent action; this requires the user to remember that This maybe only applies to actions bound to keys, i.e. |
Tianxiang Xiong <[email protected]> writes:
Here's a thought: optional actions should come last, not be injected
into the middle.
because injecting an action shifts the keys for every subsequent
action; this requires the user to remember that C is <f4> for files,
for example, but <f3> for dirs.
This is a good reason to move optional actions at bottom but there is
also good reasons to move some actions on top... So, well I opted for
moving actions on top or nearly because generally these actions are
really what you need on this kind of candidate. Also this allow user to
discover a new action have been added, at bottom they don't see it.
But perhaps it is better moving all at bottom except the ones affecting
first action e.g
~/.emacs.d/emacs-config/.emacs.el! C-x C-f RET
and
~/.emacs.d/emacs-config/.emacs.el:754! C-x C-f RET
don't know for now...
…--
Thierry
Gpg Key fingerprint = 6CEC 7081 AB33 E251 4AB8 5FC2 28D1 7F53 59F2 9997
|
Expected behavior
helm-ff-checksum
action, found in the actions list of commands likehelm-find-files
, should not be available for directories.Actual behavior from
emacs-helm.sh
if possible (See note at bottom)helm-ff-checksum
is available for directories. Calling it signals an error:but not before prompting the user for the checksum algorithm, which is unnecessary work.
Steps to reproduce (recipe)
helm-find-files
helm-ff-checksum
(<f4>
)Backtraces if some (M-x toggle-debug-on-error)
Describe versions of helm, emacs, operating system etc.
20170511.649
25.1.1
Fedora 24
The text was updated successfully, but these errors were encountered: