elementary / elementary/code

Throwaway idea: Content aware Save As

Open
#1,594 1 comment 0 reactions 0 assignees View on GitHub
Priority: Wishlist
Dominant language
Vala
Stars
521
Forks
118
Avg merge
1d 8h
Merged PRs (30d)
14

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.