Find a hint file?

Is there a way to give a hint "find-file"?

I work with files in the same directory on a remote server, and I get tired of printing the machine name and directory structure all the time. It would be great if I could write a function that would call the find-file hint with the machine name and directory already populated.

(Note: I am using Emacs 23.1)

Thanks for your help in advance.

+3
source share
3 answers

If you run a command 'find-filefrom buffers associated with files on a remote server, then the watchpoint should already contain a full directory / remote server.

One way this cat’s skin is to do

M-x cd /ssh:user@machine:/starting/path

: tramp find. /ssh: , tramp.

, find "":

(defun my-remote-find-file ()
  "call 'find-file with a starting directory"
  (interactive)
  (let ((default-directory "/ssh:user@machine:/starting/path/"))
    (call-interactively 'find-file)))

, .

, , - M-x dired .

+2

recentf, , recentf; , , , - , C-x C-f .

0

, . , Trey, , , default-directory , .

You can mark a deleted file or directory. With Bookmark + , when you add the Dired buffer bookmark, you can also save all your marks, omissions, etc. - IOW, Dired state. When you later go to the bookmark in which the saved state is saved. Use bookmarks to organize code projects, etc.

0
source

Source: https://habr.com/ru/post/1717647/


All Articles