Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Acode Text Editor's File Management Behavior #1173

Open
HeH-DG opened this issue Feb 3, 2025 · 1 comment
Open

Issue with Acode Text Editor's File Management Behavior #1173

HeH-DG opened this issue Feb 3, 2025 · 1 comment

Comments

@HeH-DG
Copy link

HeH-DG commented Feb 3, 2025

Issue with Acode Text Editor's File Management Behavior

I'm experiencing an issue with the Acode text editor regarding its file management behavior. While Acode supports multi-tab functionality and allows opening multiple files simultaneously, there's a significant workflow problem when creating new files.

The Issue:
When attempting to create a new file, Acode forces me to save it immediately before I can even start editing. This behavior differs from standard text editors, which typically:

  1. Allow creating new, unsaved files without immediate save prompts
  2. Don't show any prompts when closing an empty, unmodified file
  3. Only prompt to save when closing a file that contains modifications

The Current Behavior:

  • Forces immediate file saving when creating a new file
  • Requires file path and name before allowing any editing
  • No option for temporary/unsaved files

Expected Behavior (Based on Standard Text Editors):

  • Allow creation of new, unsaved files
  • Only prompt for saving if the file contains modifications
  • Provide the option to close unmodified files without prompts
  • Show save/discard prompts only when closing modified files

Use Case Example:
While working on a programming project, I often need to create temporary files for testing code snippets or making quick notes. With the current behavior, I'm forced to save these temporary files, leading to an accumulation of unnecessary files in my workspace. This is both impractical and counterintuitive to standard coding workflows.

Request:
Is there a way to modify this behavior to align with standard text editor functionality? The current forced-save approach significantly hampers productivity and creates unnecessary file management overhead.

This issue needs addressing as it affects the basic workflow of the editor and creates unnecessary friction in the development process.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@HeH-DG HeH-DG added the enhancement New feature or request label Feb 3, 2025
@bajrangCoder
Copy link
Collaborator

There's no need to save your file first. When you create a new file from the menu or using Ctrl + N, saving isn't required immediately—you can choose to save it later if needed. However, if you create a file from the sidebar workspace, you'll need to save it right away, as this action indicates your intent to store the file.

Regarding closing a tab with unsaved changes, the warning is there to prevent accidental data loss. While this might not align with your workflow, many users appreciate such safeguards. If you'd prefer a different experience, you may be able to customize this behavior through a plugin or simply use it as is.(I think there is setting to not check for unsaved stuff )

@bajrangCoder bajrangCoder added needs info / awaiting response and removed enhancement New feature or request labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants