unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Paul K <mafeuser@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: tramp convinient way to cut path part in minibuffer
Date: Sun, 08 Mar 2015 18:21:19 +0100	[thread overview]
Message-ID: <878uf776cw.fsf@gmx.de> (raw)
In-Reply-To: <CAA+mFXNO0O8Y2yrjKCuBjYvp0gg8cEm8wc2QUOiQrMEvTH3=bg@mail.gmail.com> (Paul K.'s message of "Sun, 8 Mar 2015 16:01:31 +0100")

Paul K <mafeuser@gmail.com> 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.



  reply	other threads:[~2015-03-08 17:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-08 15:01 tramp convinient way to cut path part in minibuffer Paul K
2015-03-08 17:21 ` Michael Albinus [this message]
2015-03-08 19:57   ` Paul K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878uf776cw.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mafeuser@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).