CeH9
Software engineer
- Total activity 121
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 16
- Subscriptions 31
-
Created IsFileBinary()
AnsweredHow to detect that file is binary i.e. IDE doesn't support undo with this file. Maybe exists something like list of supported file extensions? -
Created Where to store binary files
Since IDE doesn't support undo for Binary files i want to make my custom Undoable action. I'm thinking about cache file in system/myDir + keep path in userData. Maybe exists more elegant way? -
Created FileTemplates doesn't save on disk
AnsweredWhen i create FileTemplate via FileTemplateManager.addTemplate it available to use and in settings (Ctrl + alt + s -> File and code templates), but templates doesn't save on disk. Seems like IDE k... -
Created FileTemplateManager didn't found Project-level FileTemplates
How to get Project-level FileTemplate? details: https://github.com/CeH9/PackageTemplates/issues/4 -
Edited ProgressManager#WithProgressAsync + CommandProcessor#executeCommand
I'm wrapping several commands into CommandProcessor#executeCommand for Undoability in one action. All inner commands runs in separeted AppllicationManager#InvokeLater. Commands executed in Async t... -
Created AppCode add PsiDir issue
I create dir with files via PsiDirectory.createSubdirectory(..), it works fine in Idea. But same code in AppCode works wrong: Folder not visible in ProjectView "project" mode. AFAIK AppCode doesn't... -
Edited Messages YesNoDialog devide command
AnsweredDialog devide command, so user must use 2+ Undo action to revert. Can i avoid this? -
Created PsiDirectory.copyFileFrom -> Redo recreate file without content
AnsweredI use PsiDirectory.copyFileFrom to copy file. It works fine. Undo works fine too, but redo create empty file. Version: CE 163.12024 -
Edited Revert\Undo failed Command
AnsweredI have undoable command that may be reverted by Ctrl-Z. When i execute command and catch some error i need to revert all my changes. Can i do it programmatically? -
Edited Temp storage for files
AnsweredWhere\how to store temp files? For example user can replace some FileTemplate, this action must be undoable. Is it ok to keep content of file as String field in undo action?