]> granicus.if.org Git - neomutt/commitdiff
[patch-0.94.4i.tlr.display_filename.1] Introduce a new
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 28 Aug 1998 01:06:54 +0000 (01:06 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 28 Aug 1998 01:06:54 +0000 (01:06 +0000)
function "display-filename" which displays the currently
selected file's name on the message line.

OPS
browser.c
functions.h

diff --git a/OPS b/OPS
index d1ca0fb5aebb4b0e01646d4587c515e1f9887d8f..71164634b38f65a86faf3856dfb8c244001c1cfb 100644 (file)
--- a/OPS
+++ b/OPS
@@ -5,6 +5,7 @@ OP_BOTTOM_PAGE "move to the bottom of the page"
 OP_BOUNCE_MESSAGE "remail a message to another user"
 OP_BROWSER_NEW_FILE "select a new file in this directory"
 OP_BROWSER_VIEW_FILE "view file"
+OP_BROWSER_TELL "display the currently selected file's name"
 OP_CHANGE_DIRECTORY "change directories"
 OP_CHECK_NEW "check mailboxes for new mail"
 OP_COMPOSE_ATTACH_FILE "attach a file(s) to this message"
index d1d67d3dd7a04425a05b1c55332f85d1f2e7fbb7..01854efe296e4524a5e64526c804207e9ff1ba0d 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -631,6 +631,11 @@ void mutt_select_file (char *f, size_t flen, int buffy)
        mutt_menuDestroy (&menu);
        return;
 
+      case OP_BROWSER_TELL:
+        if(state.entrylen)
+         mutt_message(state.entry[menu->current].name);
+        break;
+      
       case OP_CHANGE_DIRECTORY:
 
        strfcpy (buf, LastDir, sizeof (buf));
index 384c5fd154c6d2c471087c1281924cf0ee54ae3c..01e5a431ab0fb9dc8b8c5a7f91ec8d3d9dfc32a3 100644 (file)
@@ -359,6 +359,7 @@ struct binding_t OpPost[] = {
 /* The file browser */
 struct binding_t OpBrowser[] = {
   { "change-dir",      OP_CHANGE_DIRECTORY,    "c" },
+  { "display-filename",        OP_BROWSER_TELL,        "@" },
   { "enter-mask",      OP_ENTER_MASK,          "m" },
   { "sort",            OP_SORT,                "o" },
   { "sort-reverse",    OP_SORT_REVERSE,        "O" },