Christian Ohler <[EMAIL PROTECTED]> writes:

>>> I would rather use "i" for 'ignore', which is an commonly used
>>> operation common to all backends.
>> Good idea. And you need much more often to ignore a file than you
>> need
>> to see the inventory (usually, "status" is what you want, it shows you
>> only the files you need).
>
> I'm surprised to hear that 'ignore' is used so frequently that we need
> a single letter for it.  I usually only modify .mtn-ignore a few times
> after setting up a new project to add patterns for files generated
> during build, and only rarely have to adapt it after that.

yes. Although sometimes when I add a new feature, there are new
temporary output files to ignore (most recently, table of contents in
LaTeX).

But I create new projects fairly often, and 'ignore' is useful then.

> The commands `dvc-ignore-file-extensions' and `dvc-ignore-files' are
> probably used with similar frequency, so they should be available with
> roughly the same number of keystrokes.

Yes. `dvc-ignore-file-extensions' is fairly dangerous, because it is
project-wide. So I'd put it on M-i.

I'd also like to add `dvc-ignore-file-extensions-this-directory',
which would ignore *.foo in the current file's directory. That's what
.cvsignore does, and it is handy for extensions like .pdf that are
automatically generated from Latex and ignored in one directory, but
hand-generated from Word in another.

That I would put on I.

> xmtn's implementation of both of these functions will ask between two
> and three questions:
> (1) Ignore %s?
> (2) Save buffer .mtn-ignore?
> (3) Add file .mtn-ignore to workspace manifest?
> So even if we use a single letter for 'ignore', the entire operation
> will currently still require 3-4 keystrokes in xmtn.  Typically,
> question (3) will be asked only once; and I guess we could silently
> save .mtn-ignore without asking (2) unless the user already had
> .mtn-ignore open and modified.

Yes, I noticed that, and added options to suppress those questions. I
haven't committed that in yet.

> The commands `dvc-pop-to-inventory' and `tla-inventory' that currently
> occupy "i" and "I" can go away; they should be replaced later by one
> or more toggles in the status buffer that select the set of files to
> display.

Right.

--
-- Stephe


_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to