From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Re: Fwd: M-x shell question Date: Fri, 19 Aug 2016 05:49:15 +0000 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1134e1cae3e751053a664291 X-Trace: blaine.gmane.org 1471585811 17567 195.159.176.226 (19 Aug 2016 05:50:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 19 Aug 2016 05:50:11 +0000 (UTC) Cc: raman@google.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 19 07:50:07 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bacgx-0004Ir-0A for ged-emacs-devel@m.gmane.org; Fri, 19 Aug 2016 07:50:07 +0200 Original-Received: from localhost ([::1]:55520 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bacgu-0000S9-4o for ged-emacs-devel@m.gmane.org; Fri, 19 Aug 2016 01:50:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bacgO-0000S2-5m for emacs-devel@gnu.org; Fri, 19 Aug 2016 01:49:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bacgM-0001bT-5w for emacs-devel@gnu.org; Fri, 19 Aug 2016 01:49:31 -0400 Original-Received: from mail-oi0-x234.google.com ([2607:f8b0:4003:c06::234]:36612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bacgJ-0001ap-IV; Fri, 19 Aug 2016 01:49:27 -0400 Original-Received: by mail-oi0-x234.google.com with SMTP id f189so50998657oig.3; Thu, 18 Aug 2016 22:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MBF9t6JQDa7c5nYC/fBFLBh/UTH61zzZ/HId7S0nWHA=; b=NclCKZ4gDVnijhTdiDuiERLM0TcVTrKmFXnqvcFytY0WANQm6unUo0OD0WMI5Tj1Y4 z+Q8nbzfl6g84HlhPNJbS6CNqstc5MiWAC+eK4vARAKUIqOcGtMSyLnvJy2bC/D65F+6 euqRTl21KoFzq+2pj/qiqSDB/dubDHMpBHnJLPM3AhlLptYIuCPfqQTR99gIuhIZhbeO E/rGfghLFjuCikyyMCC/NFLwt61/LmHJOmo/SHXRZWQYsPwQ1VEdVHEF83wh30yqJJCy nOwlsehVMqKwNP28fKMeYBWwismURpqf4gvq4XDq6D3Og2YyhbPYg6QxYlxvIJk/DnPI tknA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MBF9t6JQDa7c5nYC/fBFLBh/UTH61zzZ/HId7S0nWHA=; b=YVn/J6KtD8ZJojdDHedzNE3I77g6N3Tp8NVIY6TRLw5YPDGbVyi0HsRUxy7S1HxgsQ LQfWRlMPSlhrVOPSfJb+Bcr375KA6wnoxwY6XvsHVeAC3DgDIE7VJZLtumynBdzyAK8v EJ8TD+6TlZHk7I3Pe4ecg9CDaSH7/yXjKdci4mv3FeRlDvVWPDq2LgvqlFvDFJL8kmWS waZze40Bk/3gpVpIeEXVIBmzrqccr2H3NWdUP39RN2mJktMNCrj3EIZ+mnrb8UlT9wQI phl9RoMmk+Zd2qO4sRn3RJfhIlOWxrkAhlpmsyr/VgpUPvt7qVPZMlUTL+s9mq4rV+Br 9b/A== X-Gm-Message-State: AEkoouuX1/JOp7Y4maBPCQXrlzZ6zAtDUNL0JFJOqPeaPsymd3lIXyuLDIEEceDUYVWPRix0Gl2RrC9ANtHBhQ== X-Received: by 10.202.199.132 with SMTP id x126mr3632249oif.50.1471585766858; Thu, 18 Aug 2016 22:49:26 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:206656 Archived-At: --001a1134e1cae3e751053a664291 Content-Type: text/plain; charset=UTF-8 On Fri, Aug 19, 2016 at 1:29 AM Richard Stallman wrote: > That name is logical, but inconvenient: you have to type s h e SPC SPC c d. > > 'shell-this-directory' is almost as inconvenient: s h e SPC SPC t. > I believe that keeping package name as first part of the command improves discoverability. If I were to look into what all commands are available related to 'shell', I can easily come across 'shell-cd' or 'shell-foo' with packages like ido or counsel or helm and start using it. But if the command is 'cd-shell', that reduces the discoverability (unless you have the fuzzy search enabled in packages like ido). I would just bind 'shell-cd' to a binding (like "C-c d s" maybe? :) ), if I find myself using it very often. But naming it 'cd-shell' just so that it comes up with lesser chars to type for guessing the right command doesn't seem like a permanent solution to access that command quickly. What if tomorrow we have more commands starting with 'cds'? Again, having 'cd-shell' show up as the best match for 'c d s' is very subjective. It is very useful to people using 'cd-shell' or 'shell-cd' regularly, but probably not to others. What do you think? -- Kaushal Modi --001a1134e1cae3e751053a664291 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Fri, Aug 19= , 2016 at 1:29 AM Richard Stallman <rms@g= nu.org> wrote:
That name is = logical, but inconvenient: you have to type s h e SPC SPC c d.

'shell-this-directory' is almost as inconvenient: s h e SPC SPC t.<= br>

I believe that keeping package name as = first part of the command improves discoverability. If I were to look into = what all commands are available related to 'shell', I can easily co= me across 'shell-cd' or 'shell-foo' =C2=A0with packages lik= e ido or counsel or helm and start using it. But if the command is 'cd-= shell', that reduces the discoverability (unless you have the fuzzy sea= rch enabled in packages like ido).

I would just bi= nd 'shell-cd' to a binding (like "C-c d s" maybe? :) ), i= f I find myself using it very often. But naming it 'cd-shell' just = so that it comes up with lesser chars to type for guessing the right comman= d doesn't seem like a permanent solution to access that command quickly= . What if tomorrow we have more commands starting with 'cds'? Again= , having 'cd-shell' show up as the best match for 'c d s' i= s very subjective. It is very useful to people using 'cd-shell' or = 'shell-cd' regularly, but probably not to others.

What do you think?
--
<= div data-smartmail=3D"gmail_signature">

Kaus= hal Modi

--001a1134e1cae3e751053a664291--