Re: Copy full filename to command line (Ctrl-F) patch
- From: Walery Studennikov <despair sama ru>
- To: mc-devel gnome org
- Subject: Re: Copy full filename to command line (Ctrl-F) patch
- Date: Wed, 1 Aug 2001 10:25:08 +0500
On Wed, Aug 01, 2001 at 12:58:49AM -0400, Pavel Roskin wrote:
> On Wed, 1 Aug 2001, Walery Studennikov wrote:
>
> > Here is slightly purified and adapted to CVS version of MC patch
> > from Max Schedriviy.
> >
> > It allows to copy full filename (with path) by pressing Ctrl-F.
> > It is certainly more quick and convenient than using Alt-A + Ctrl-Enter.
>
> Please always comment the code if you are sending the patch. Don't expect
> everybody to understand it.
>
> Few questions/remarks:
>
> Why are you using copy_full_prog_name() in two places - once in the table
> and then by calling it explicitly? Cannot we just do it is one place? If
> not, then I would like to fix the existing code first.
Done.
> Why is copy_full_prog_name() global? It should be static. It's
> nitpicking, but when I analyze an impact of a change in a global function
> I have to scan the whole project for possible calls.
Yes, it should be static.
The new version of patch is attached.
> MC traditionally has symmetric shortcuts for the current and the other
> panel, like "Atl-a" and "Alt-A" and even "Ctrl-x r" and "Ctrl-x Ctrl-r"
> (I've never used the later - copy readlink from the other panel). There
> is no shortcut to copy the filename on the other panel. Shouldn't we have
> counterparts for Ctrl-Enter and the proposed Ctrl-F to work with the other
> panel?
IMHO commands for other panel is not so useful.
> Where does Ctrl-F come from? It's better that every shortcut is already
> used somewhere, so that at least some people don't have to re-learn.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]