This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-18
Channels
- # beginners (25)
- # boot (30)
- # cljs-dev (22)
- # cljsjs (2)
- # cljsrn (1)
- # clojars (4)
- # clojure (223)
- # clojure-boston (1)
- # clojure-dusseldorf (1)
- # clojure-gamedev (8)
- # clojure-italy (5)
- # clojure-russia (122)
- # clojure-sg (3)
- # clojure-spec (26)
- # clojure-uk (42)
- # clojurescript (69)
- # clojuresque (10)
- # core-async (25)
- # cursive (10)
- # datascript (5)
- # datomic (12)
- # emacs (18)
- # garden (1)
- # interop (1)
- # jobs (1)
- # jobs-discuss (10)
- # leiningen (2)
- # liberator (1)
- # lumo (21)
- # nyc (2)
- # off-topic (210)
- # om (11)
- # om-next (3)
- # onyx (1)
- # pedestal (6)
- # re-frame (10)
- # rum (9)
- # specter (38)
- # uncomplicate (1)
- # vim (23)
- # yada (22)
Vim has ^X^F to complete the filename at point. If you type /etc/ho
^X^F, it'll offer you /etc/hosts
Is that something you can do with Emacs? I'm assuming helm is involved, but I can't find a reference in the docs.
I can do ^X^F
and then ^U^U^C i
in then helm buffer
not as easy as in Vim though 🙂
@pesterhazy typing TAB
in emacs -q
runs minibuffer-complete
in the Find file:
prompt for me
@kliph, that doesn't work for me, either in emacs -q -nw
(emacs 25.1.1) nor in my default spacemacs
oh, you mean after typing ^X^F?
yeah, but I want to insert the filename in the current buffer
e.g. I type cp /etc/ho
when writing a .sh file
and now want to complete that filename
have a look at https://www.emacswiki.org/emacs/InsertFileName , I'm not aware of an easy way to do this in plain old emacs
thanks I'll have a look
I imagine you're in shell-script-mode
. If you're using some sort of completion library, you could also look into enabling it in that mode
yeah but I like it generally too (imagine requiring a relative path in javascript)
C-h a
tells me there is a helm-complete-file-name-at-point
command. It seems to do the action in your example… it gives completions for /etc/ho
as /etc/hosts
that's pretty good