all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: elisp: Text-based file-chooser
Date: Wed, 05 Jan 2011 19:58:51 +0100	[thread overview]
Message-ID: <87zkrfkwic.fsf@gmail.com> (raw)
In-Reply-To: LpOdnQqSQYCkKrnQnZ2dnUVZ_v6dnZ2d@supernews.com

Larry Kohlman <nospam@nospam.invalid> writes:

> I want a file-browsing dialog box, but I want it to be text-mode so it
> can be used on a raw terminal or inside an xterm. Something roughly like
> dired but that lets the user browse files and directories and only
> returns the path with a selected or entered filename and does absolutely
> nothing else. I know it's out there because I've seen it before, but I
> just can't find the magic command or plugin.

See in anything-config.el `anything-c-read-file-name'.
http://repo.or.cz/w/anything-config.git

You use it like that:

(defun my-file-browser ()
  (let ((fname (anything-c-read-file-name "AnyPrompt: ")))
      (do-what-you-want-on-fname fname)))

It have full support for tramp.
It work on windows and in tty.

For more questions about anything ask on
https://groups.google.com/group/emacs-anything?hl=en

-- 
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




  reply	other threads:[~2011-01-05 18:58 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-02 21:34 elisp: Text-based file-chooser Larry Kohlman
2011-01-02 22:17 ` Tim X
2011-01-02 22:19   ` Richard Riley
2011-01-02 23:22     ` Tim X
2011-01-02 23:23       ` Richard Riley
2011-01-03 18:52         ` suvayu ali
2011-01-03 19:01           ` Richard Riley
2011-01-03 20:24             ` suvayu ali
     [not found]         ` <mailman.10.1294080791.3992.help-gnu-emacs@gnu.org>
2011-01-03 22:41           ` Tim X
2011-01-03  2:44 ` rusi
2011-01-03  9:13   ` Thierry Volpiatto
     [not found]   ` <mailman.0.1294046010.4869.help-gnu-emacs@gnu.org>
2011-01-03 19:01     ` Larry Kohlman
2011-01-03 21:49       ` Drew Adams
2011-01-03 21:54       ` Thierry Volpiatto
     [not found]       ` <mailman.8.1294091516.614.help-gnu-emacs@gnu.org>
2011-01-05 18:23         ` Larry Kohlman
2011-01-05 18:58           ` Thierry Volpiatto [this message]
2011-01-05 19:06           ` Drew Adams
     [not found]           ` <mailman.12.1294254429.15599.help-gnu-emacs@gnu.org>
2011-01-05 22:16             ` Larry Kohlman
2011-01-05 23:11               ` suvayu ali
2011-01-05 23:15               ` Drew Adams
     [not found]           ` <mailman.11.1294253952.15599.help-gnu-emacs@gnu.org>
2011-01-05 23:46             ` Larry Kohlman
2011-01-06  7:46               ` Thierry Volpiatto
2011-01-06  8:37                 ` Thierry Volpiatto
2011-01-06  0:15           ` DevZero
2011-01-03 16:57 ` José A. Romero L.

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

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

  git send-email \
    --in-reply-to=87zkrfkwic.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.