Introduces Buffer's isBackup() function, marks backup file with yellow in BufferSwitcher, adds confirmation on such file open (open/open locked/cancel).
Simple and ready, it is worth inclusion in release I guess.
Applied in revision 24820, thanks! A couple of things -- not a big deal, but in the future, pay attention to the bracket placement so it matches the rest of the code. I also added a little code so the lock icon shows in the buffer switcher when the buffer is locked.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I used to be the style rules maniac, but this time I missed that, dunno why.
I was thinking about the icon, but refused that idea because it will override the dirty status in a scenario when a user modifies buffer first and then locks it.
Could you explain the EditBus.send() call?
Last edit: Roman Tsourick 2018-01-26
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Applied in revision 24820, thanks! A couple of things -- not a big deal, but in the future, pay attention to the bracket placement so it matches the rest of the code. I also added a little code so the lock icon shows in the buffer switcher when the buffer is locked.
Cool. Thank you!
I used to be the style rules maniac, but this time I missed that, dunno why.
I was thinking about the icon, but refused that idea because it will override the dirty status in a scenario when a user modifies buffer first and then locks it.
Could you explain the EditBus.send() call?
Last edit: Roman Tsourick 2018-01-26