2009/9/11 Scott Jaderholm <[email protected]>:
> It always bothered me that the "Overwrite existing file x?" prompt made me
> type out yes or no instead of taking y and n. No more!
>
> Cheers,
> Scott
>
> ---
>  modules/minibuffer-read-option.js |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>  mode change 100644 => 100755 modules/minibuffer-read-option.js
>
> diff --git a/modules/minibuffer-read-option.js
> b/modules/minibuffer-read-option.js
> old mode 100644
> new mode 100755
> index 889b4f5..34deceb
> --- a/modules/minibuffer-read-option.js
> +++ b/modules/minibuffer-read-option.js
> @@ -32,8 +32,8 @@ minibuffer.prototype.read_explicit_option = function () {
>
>  minibuffer.prototype.read_yes_or_no = function () {
>      keywords(arguments);
> -    var result = yield
> this.read_explicit_option(forward_keywords(arguments), $options = ["yes",
> "no"]);
> -    yield co_return(result == "yes");
> +    var result = yield
> this.read_explicit_option(forward_keywords(arguments), $options = ["yes",
> "no", "y", "n"]);
> +    yield co_return(result == "yes" || result == "y");
>  };
>
>  function single_character_options_minibuffer_state(continuation) {
> --
>
> _______________________________________________
> Conkeror mailing list
> [email protected]
> https://www.mozdev.org/mailman/listinfo/conkeror
>
>

I actually prefer having to write out "yes" because that makes me
think again before actually doing it. My five cents. :)

-- 
Deniz Dogan
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to