Ticket #2694 (closed enhancement: fixed)

Opened 13 years ago

Last modified 13 years ago

Support "~" in "Find File" -> "Start at:"

Reported by: AITap Owned by: andrew_b
Priority: minor Milestone: 4.8.2
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: committed-master committed-stable

Description

MC will be even more useful if it understands (and replaces it by home directory path) the "~" symbol in this field, like it does in file copy dialog.

Change History

comment:1 Changed 13 years ago by andrew_b

One-line patch :)

diff --git a/src/filemanager/find.c b/src/filemanager/find.c
index b56210a..c852268 100644
--- a/src/filemanager/find.c
+++ b/src/filemanager/find.c
@@ -718,7 +718,7 @@ find_parameters (char **start_dir, ssize_t * start_dir_len,
                 g_free (in_start_dir);
             in_start_dir = g_strdup (*start_dir);
 
-            s = g_strdup (*start_dir);
+            s = tilde_expand (*start_dir);
             canonicalize_pathname (s);
 
             if (s[0] == '.' && s[1] == '\0')

comment:2 Changed 13 years ago by andrew_b

  • Status changed from new to accepted
  • Priority changed from major to minor
  • Keywords stable-candidate added
  • Branch state changed from no branch to on review
  • Milestone changed from Future Releases to 4.8.2
  • Owner set to andrew_b

Branch: 2694_tilde_find_file (parent: master)
changeset:b58e99a7d202b64f7ca960f8cf27f6bd2a6d9846

comment:3 Changed 13 years ago by slavazanko

  • Votes for changeset set to slavazanko

comment:4 Changed 13 years ago by angel_il

  • Votes for changeset changed from slavazanko to slavazanko angel_il
  • Branch state changed from on review to approved

comment:5 Changed 13 years ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset changed from slavazanko angel_il to committed-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

comment:6 Changed 13 years ago by andrew_b

  • Blocking 1762 removed

comment:7 Changed 13 years ago by andrew_b

  • Keywords stable-candidate removed
  • Status changed from testing to closed
  • Votes for changeset changed from committed-master to committed-master committed-stable

Cherry-picked to 4.8.1-stable: [00a2e20d6b3faf9f34dbc0c2fa7e0fc1dbc42d90]

Note: See TracTickets for help on using tickets.