From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul K Newsgroups: gmane.emacs.help Subject: Re: tramp convinient way to cut path part in minibuffer Date: Sun, 8 Mar 2015 20:57:28 +0100 Message-ID: References: <878uf776cw.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1425844663 18196 80.91.229.3 (8 Mar 2015 19:57:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2015 19:57:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 08 20:57:43 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YUhKZ-0004m0-0W for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2015 20:57:43 +0100 Original-Received: from localhost ([::1]:40382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUhKY-0005kh-Go for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2015 15:57:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUhKM-0005kQ-1v for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 15:57:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUhKL-00033b-3S for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 15:57:29 -0400 Original-Received: from mail-qc0-x236.google.com ([2607:f8b0:400d:c01::236]:39044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUhKK-00033V-UR for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 15:57:29 -0400 Original-Received: by qcvs11 with SMTP id s11so28214373qcv.6 for ; Sun, 08 Mar 2015 12:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=miuj2ComXhJKnhZMEuGTcL72h9xWTYPJUMLFIpyVtu0=; b=zhj3tPYyiDXjSkktLm3auTVqd08ZMlIYHRwPd8pGWHMFS/VuTlkGyVAqMcohVmO9Zk IXrn4J6A8W3RUTcYuTYowZv5wICQEk1zXuJLOnjvXpbp82iL8WG7vqP3QPEHInN24cuW 47cN9Yek09dzoI/Nisam4nGLbelRL2k4vrSXvIp48jQxgNTD9MPIswj/MNm+WcRvXhuS aPT2dDLWVw+rK0ZRmZ1UxTDZmZOuaxhOvqJN5nU9Nzphc9vsDd5ffV75iiZyXI6MaOrk G2QDSooD2FOZmtLNmKf0UGH4l1NQHPSWTjWUqafSf+gLou+XDoaOnGv56BL3LZwh152a 94zg== X-Received: by 10.140.22.234 with SMTP id 97mr30405287qgn.52.1425844648388; Sun, 08 Mar 2015 12:57:28 -0700 (PDT) Original-Received: by 10.140.104.45 with HTTP; Sun, 8 Mar 2015 12:57:28 -0700 (PDT) In-Reply-To: <878uf776cw.fsf@gmx.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::236 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103071 Archived-At: Michael, You again come with good news! Although emacs has many great modules, tramp is my favourite one. Thank You for even faster and more convenient way :) best regards, Paul On Sun, Mar 8, 2015 at 6:21 PM, Michael Albinus wrote: > Paul K writes: > > > Hallo People > > Hi Paul, > > > Is there any key combination to move cursor `here`, so that I could cut > > /etc/passwd and then put /var/log/messages path? > > You don't need to cut /etc/passwd. If you enter two slashes "//" at the > end of the minibuffer, everything which is part of the local name on the > remote machine is ignored. Try this (given you have opened > /scp:remote.linux.box:/etc/passwd): > > C-x C-f /var/log/messages > > Since C-x C-f gives you the default path "/scp:remote.linux.box:/etc/" > in the minibuffer you can just start to type with "/var..." - the "/" of > "/var" adds the second slash. > > Btw, three or more slashes "///" will ignore everything in the > minibuffer before them. > > > regards > > Best regards, Michael. >