unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Dired: how to mark with other character but *
Date: Sun, 31 Jan 2021 12:09:03 +0300	[thread overview]
Message-ID: <YBZzr72P2W2aV9u7@protected.rcdrun.com> (raw)
In-Reply-To: <8735yho6vd.fsf@mbork.pl>

* Marcin Borkowski <mbork@mbork.pl> [2021-01-31 11:20]:
> 
> On 2021-01-31, at 08:34, Jean Louis <bugs@gnu.support> wrote:
> 
> > * Marcin Borkowski <mbork@mbork.pl> [2021-01-31 09:53]:
> >> From the manual:
> >>
> >> ‘* c OLD-MARKCHAR NEW-MARKCHAR’
> >>      Replace all marks that use the character OLD-MARKCHAR with marks
> >>      that use the character NEW-MARKCHAR (‘dired-change-marks’).  This
> >>      command is the primary way to create or use marks other than ‘*’ or
> >>      ‘D’.  The arguments are single characters—do not use <RET> to
> >>      terminate them.
> >>
> >> (and yes, it is not easy to find unless you know what you're looking
> >> for).
> >
> > I found that, but it just replaces marks. It does not mark. This one I
> > use after marking.
> >
> > You know when you mark with `m' then if I wish to invoke action like
> > viewing a video then it is invoked on all marked items. So I cannot
> > view the unmarked video which is what I need.
> >
> > Workflow is to mark videos for later, but also be able to view new
> > videos. If I use * to mark then viewing videos is applied on files
> > marked with * so I cannot view the unmarked video which is
> > intended. The video is marked after review. That is why I have to mark
> > the file with some other character that is not considered as file
> > marked for action by Dired.
> >
> > It sounds more complicated than it is and I maybe do not express it
> > perfect. But that workflow of selecting files after review appears to
> > me very common.
> 
> Agreed.  I think `dired-mark' should ask for a character when provided
> with `C-u' (without an actual number) - as of now, it just marks 4 files
> - which is obvious, see this:
> 
> (dired-repeat-over-lines
>        (prefix-numeric-value arg)
> 
> but I don't think many people use that feature (and if anyone does, they
> can say C-u 4 m or something).
> 
> I'd probably file a bug report with this request.  Or even prepare
> a patch myself (though I have to sort out my copyright papers since I've
> changed my job and I suspect I'd have to do something about that).

I think that my idea is not as good as it would collide with the
existing behavior.

You could maybe just introduce a function where user can define the
key for the function. The function could then accept the prefix
argument and then ask the user for the character. In the next
invocation it would remember the same character or change it when
asked by prefix argument.

Then the function could be bound to single key. Not double key like
C-something, rather something like `\'.

Then if user invokes:

C-u \ - it would ask for the character and mark the file by using that character.

\ - it would mark the file by using already set character.

By using one single key it becomes useful in Dired. Not by using
multiple keys.

Your function need not have any key defined, users could define on
which key to put it.

Jean




  reply	other threads:[~2021-01-31  9:09 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-31  6:18 Dired: how to mark with other character but * Jean Louis
2021-01-31  6:23 ` Jean Louis
2021-01-31  6:43   ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-31  7:29     ` Jean Louis
2021-01-31  6:53 ` Marcin Borkowski
2021-01-31  7:23   ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-31  7:36     ` Jean Louis
2021-01-31  7:46       ` moasenwood--- via Users list for the GNU Emacs text editor
2021-02-01 16:35     ` [External] : " Drew Adams
2021-02-01 17:09       ` Drew Adams
2021-02-01 17:24         ` Drew Adams
2021-02-02  4:15           ` moasenwood--- via Users list for the GNU Emacs text editor
2021-02-05 20:59             ` Drew Adams
2021-02-05 21:02               ` Stefan Monnier
2021-02-05 21:10                 ` Drew Adams
2021-02-01 23:47         ` Drew Adams
2021-02-02  4:14         ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-31  7:34   ` Jean Louis
2021-01-31  8:20     ` Marcin Borkowski
2021-01-31  9:09       ` Jean Louis [this message]
2021-01-31  9:26         ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-31  9:34           ` moasenwood--- via Users list for the GNU Emacs text editor
2021-01-31 14:47 ` Eli Zaretskii
2021-02-01  2:25   ` Jean Louis
2021-01-31 21:30 ` Michael Heerdegen
2021-01-31 21:37   ` moasenwood--- via Users list for the GNU Emacs text editor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YBZzr72P2W2aV9u7@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).