Intelligent VFS symlink
Max Schedriviy
max at tavrida.net
Thu Jul 26 05:47:12 UTC 2001
On Wed 25 Jul 2001 20:13, you wrote:
> If I want to symlink /path/file (it is a current file) and /newpath/ is
> the other panel, it would be enough to just press Ctrl+X and S and Enter.
> Now, the user has to switch to the target field and append the source
> filename.
>
> Any comments?
May be I don't understand you, but this patch make the same.
--------------------------------------------------------------------
diff -Naur mc/src/cmd.c mc-new/src/cmd.c
--- mc/src/cmd.c Wed Jun 27 16:29:14 2001
+++ mc-new/src/cmd.c Mon Jul 2 16:00:52 2001
@@ -1065,6 +1065,7 @@
if ( ! ((d[0] == '/') && (d[1] == 0)))
strcat(d, "/");
+ strcat(d, fname); /* it's better to assign filename to symlink - mAX */
symlink_dialog (s, d, &dest, &src);
#endif /* !OLD_SYMLINK_VERSION */
if (!dest || !*dest) {
--------------------------------------------------------------------
--
C U L8er!
Max Schedriviy mailto:max at tavrida.net
More information about the mc-devel
mailing list