You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "dennis lucero (JIRA)" <ji...@apache.org> on 2019/08/01 14:31:00 UTC

[jira] [Updated] (NETBEANS-2933) Undo “On Save” actions

     [ https://issues.apache.org/jira/browse/NETBEANS-2933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

dennis lucero updated NETBEANS-2933:
------------------------------------
    Description: 
“On Save” actions (Tools→Options→Editor→On Save) are very useful; however they can also interfere with the intended formatting. For example, the [Jdbi|https://jdbi.org/] project has strict rules about the order and formatting of import statements. Using my default settings, the imports get messed up and I have to use another editing tool to fix them.

Therefore I suggest making the “On Save” actions undoable, separatedly from the user actions. After making an edit and saving the file, “On Save” actions would be applied as usual, however invoking “Undo” once would undo only the “On Save” actions and save the file again (so the user doesn’t have to save the file manually which would execute the “On Save” actions again), with just the edits the user made explicitly.

  was:
“On Save” actions (Tools→Options→Editor→On Save) are very useful; however they can also interfere with the intended formatting. For example, the [Jdbi|https://jdbi.org/] project has strict rules about the order and formatting of import statements. Using my default settings, the imports get messed up and I have to use another editing tool to fix them.

Therefore I suggest making the “On Save” actions undoable, separatedly from the user actions. After making an edit and saving the file, “On Save” actions would be applied as usual, however invoking “Undo” once would revert the “On Save” actions and save the file again, with just the edits the user made explicitly.


> Undo “On Save” actions
> ----------------------
>
>                 Key: NETBEANS-2933
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2933
>             Project: NetBeans
>          Issue Type: Wish
>          Components: editor - Formatting &amp; Indentation
>    Affects Versions: 11.0
>            Reporter: dennis lucero
>            Priority: Major
>
> “On Save” actions (Tools→Options→Editor→On Save) are very useful; however they can also interfere with the intended formatting. For example, the [Jdbi|https://jdbi.org/] project has strict rules about the order and formatting of import statements. Using my default settings, the imports get messed up and I have to use another editing tool to fix them.
> Therefore I suggest making the “On Save” actions undoable, separatedly from the user actions. After making an edit and saving the file, “On Save” actions would be applied as usual, however invoking “Undo” once would undo only the “On Save” actions and save the file again (so the user doesn’t have to save the file manually which would execute the “On Save” actions again), with just the edits the user made explicitly.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists