CodeEditApp / CodeEditApp/CodeEdit

✨ New files should not be saved to location until manually saved

オープン
#1,070 コメント 7 件 リアクション 1 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Swift
スター
23k
フォーク
1.2k
PR マージ指標
30日以内にマージされた PR はありません

説明

### Is your feature request related to a problem? Please describe.

Sometimes users just want to create a new file for a scratchpad, to type out some ideas, to paste content in and play around without any repercussion, make a simple todo list, or just take notes. Currently if creating a file via "File → New" or ⌘N will prompt you to select a location before a new file is created. This doesn't allow for on-the-fly file creation because these files shouldn't have a location, that is until the user decides that they want to keep the file and save it in a particular location.

### Describe the solution you'd like

Upon creating a new file via "File → New" or ⌘N, CodeEdit will create a new tab with an empty editor immediately. No file will be saved to a known location however these tabs will persist across application restarts. There is no limit to how many new unsaved files a user can create in a workspace. When the user attempts to save the file, CodeEdit will prompt the user to select a location. If the user attempts to close the tab before saving, CodeEdit will warn the user before this is unsaved and by closing the tab they will loose the contents of that file if they proceed.

### Additional context

https://user-images.githubusercontent.com/806104/220177195-68040f36-e0a6-4c20-bb76-1f8298d29fef.mp4

The proposed behavior is how VS Code currently behaves.

This also applies if the user creates a new file from the Welcome Window.

If the user creates a new file by right clicking a folder in the project navigator and clicking New File, it will add the new file there and not create any empty tabs as specified above.

https://user-images.githubusercontent.com/806104/220187300-0ff07059-e5a9-4fd1-aa5d-1cd0c11b8171.mp4

As shown in the video above, untitled files should be stored as a temporary file in our Application Support folder until the user saves. Then it can be moved to the user-defined location.

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

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

評価

この issue はまだ評価されていません。

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

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