netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dennis lucero (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (NETBEANS-2933) Undo “On Save” actions
Date Thu, 01 Aug 2019 14:31:00 GMT

     [ 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


Mime
View raw message