From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Dired: how to mark with other character but * Date: Sun, 31 Jan 2021 12:09:03 +0300 Message-ID: References: <87k0rtha1r.fsf@mbork.pl> <8735yho6vd.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1283"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 31 10:13:36 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l68nY-0000E1-1H for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 31 Jan 2021 10:13:36 +0100 Original-Received: from localhost ([::1]:46782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l68nW-0004UY-Um for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 31 Jan 2021 04:13:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l68n5-0004UR-QB for help-gnu-emacs@gnu.org; Sun, 31 Jan 2021 04:13:07 -0500 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:40505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l68n3-0003Qo-OL for help-gnu-emacs@gnu.org; Sun, 31 Jan 2021 04:13:07 -0500 Original-Received: from localhost ([::ffff:41.202.241.12]) (AUTH: PLAIN securesender, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001E08B.000000006016749E.0000105F; Sun, 31 Jan 2021 02:13:02 -0700 Mail-Followup-To: Help GNU Emacs Content-Disposition: inline In-Reply-To: <8735yho6vd.fsf@mbork.pl> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127483 Archived-At: * Marcin Borkowski [2021-01-31 11:20]: > > On 2021-01-31, at 08:34, Jean Louis wrote: > > > * Marcin Borkowski [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 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