elementary / elementary/code

Throwaway idea: Content aware Save As

オープン
#1,594 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
Priority: Wishlist
主要言語
Vala
スター
521
フォーク
118
平均マージ
1日 8時間
マージ済み PR(30日)
14

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

この issue ではファイルもテストも指定されていないため、まず名前のないドキュメントの Save As フローと既存の構文検出コードを見つけてください。提案されている URI/パス、CSV、shebang、HTML、Vala のケースを比較し、サポートされているコンテンツに対する決定論的な初期名を定義してテストしてください。

索引モデルが issue の本文から書いたものです。

評価

領域
desktop, tooling
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。