From: Rahguzar <rahguzar@zohomail.eu>
To: James Thomas <jimjoe@gmx.net>
Cc: emacs-devel@gnu.org
Subject: Re: An emacs based `xdg-desktop-portal` filechooser
Date: Mon, 12 Jun 2023 17:28:04 +0200 [thread overview]
Message-ID: <87352w4riw.fsf@zohomail.eu> (raw)
In-Reply-To: <87a5x5rlfj.fsf@gmx.net>
James Thomas <jimjoe@gmx.net> writes:
> Rahguzar wrote:
>
>> Hi All,
>> During the past few weeks, I have been working on an Emacs based
>> implementation of filechooser backend of `xdg-desktop-portal`. It is
>> very rough around the edges but I have working version at
>> https://codeberg.org/rahguzar/filechooser.
>
> Thanks! This is great news for us EXWM users. My 2c below:
>
>> The choices combo boxes are not implemented. I don't what would be a
>> good interface for them (suggestions welcome) and I have in my
>> (limited) experience.
>
> Ideas: You could ask for it sequentially before or after specifying the
> file name. Or in case of choosing a file extension, you could check the
> extension in the user input and ask the user to confirm.
>
I am generally not too fond of serial prompting so I was looking for
something like a buffer which could show all the choices and the user
could then choose not to interact with it if the defaults are ok.
However since the choices seem rare in my experience (I see that I
missed some words in my sentence saying this above), I think what you
are proposing will be alright. However I am unlikely to work on it
myself anytime soon. PR on the repository implementing this are welcome.
>> In my opinion minor compared to these is the fact the filechooser
>> dialogues are not modal, i.e. you can still freely interact with the
>> window that sent the file selection request.
>
> Perhaps you could temporarily rebind 'C-x o', 'mouse-1' etc.
This is not about an Emacs window but the window for the application
which sent the request. To see this in action you can do `C-o` from a
Firefox window and by default this will show a GTK file picker dialog.
While the dialog is active, you can't interact with the Firefox window.
I don't think it is possible to achieve this from Emacs and I am not
sure behavior is even desirable.
Related to keybinding, I don't use vanilla Emacs keybindings so if you
are using this and the few bindings provided don't mesh well with the
default Emacs ones, feel free to suggest alternatives or make a PR.
Rahguzar
prev parent reply other threads:[~2023-06-12 15:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-31 20:16 An emacs based `xdg-desktop-portal` filechooser Rahguzar
2023-06-01 18:42 ` Peter Oliver
2023-06-02 20:00 ` Rahguzar
2023-06-12 11:04 ` James Thomas
2023-06-12 15:28 ` Rahguzar [this message]
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=87352w4riw.fsf@zohomail.eu \
--to=rahguzar@zohomail.eu \
--cc=emacs-devel@gnu.org \
--cc=jimjoe@gmx.net \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).