filebrowser icon indicating copy to clipboard operation
filebrowser copied to clipboard

New file as a menu with predefined extensions

Open BaccanoMob opened this issue 3 months ago • 1 comments

Can be seen in most OS and cloud storage providers.

I recommend a new setting under userDefaults:/ Listing options.

userDefaults:
  newFileTemplates:
    - Word Document.docx
    - PPTX.pptx
    - Text File.txt

Having a setting like above should provide open a menu like below when hovered/clicked on New File.

Word Document
PPTX
Text File
--------------------
Generic File

if newFileTemplates is not set, it could either show a menu like below or just function as it is currently (New File as a button)

<No templates>
--------------------
Generic File

Generic File is the default input field without any extension specified.

On clicking, it should have the extension as suffix and cursor at the start of input field. So you do not have to worry about writing the extension.

This will be useful for integrations.

BaccanoMob avatar Sep 18 '25 06:09 BaccanoMob

This was exactly what I was thinking! I was about to open an issue about this. (thanks)

And yeah, this is useful because you'll don't need to remember all the extensions for each type of file; even more for people who don't are familiar with them.

But I think that with the common file types is fine (and enough). Like the one for documents, and some other more.

On the context menu as you said, when you press "new file" (preserving the same existing behavior)

Like how does this button here: Screenshot_20250918-020725_FileBrowser Quantum.jpg

Screenshot_20250918-020728_FileBrowser Quantum.jpg

Then show the file types for create.

Kurami32 avatar Sep 18 '25 06:09 Kurami32