elementary / elementary/code

Throwaway idea: Content aware Save As

Offen
#1,594 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Priority: Wishlist
Vorherrschende Sprache
Vala
Sterne
521
Forks
118
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
14

Beschreibung

### Problem

Code already detect syntax, but we could extend capabilities depending on which content for, for example, a Saving As that already prefill the name depending on the content

### Proposal

Upon doing a save As of an unnamed file, tweak initial_name according to the content:

- if it has a list of URI, Path, URL, call the initial_name "New playlist.m3u8"
- if it has all lines with commas, or a specified delimiter specified as per csv standard, append a ".csv" in the "unsaved document" initial name
- if it has a shebang on the first line, add a .sh, or .py, or according to what it is
- if it has some html, add a .html extension
- Vala, it's a NewDocument.vala...

### Prior Art (Optional)

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.