Attila Kovacs 629 Posted November 15, 2018 (edited) "Next Modification" "Previous Modification" "Next Unsaved Modification" "Previous Unsaved Modification" Can somebody tell me where these menus are and/or how to activate them? Edited November 15, 2018 by Attila Kovacs Share this post Link to post
pietrt 1 Posted November 16, 2018 You can view differences in the history tab. In the history tab select the differences tab. You can then select show in difference viewer (top of editor) and you get the commands you asked for. Share this post Link to post
Attila Kovacs 629 Posted November 16, 2018 (edited) Phew, I was trying what you wrote. In the first place, I got a list index out of bounds (xx) in the "Differences view" :D, then "show in difference viewer" does nothing, the form flashes in then disappears and nothing changes. And when I go back to the normal "code" view, I can't save the unit anymore. Unable to rename bla.pas to bla.pas~1~ :DDDD It's just ridiculous. Edited November 16, 2018 by Attila Kovacs 1 Share this post Link to post
Attila Kovacs 629 Posted November 17, 2018 @Kryvich I'm not sure, you were navigating through prev/next difference. I'm looking for the exact actions I've mentioned. Share this post Link to post
Kryvich 165 Posted November 17, 2018 Yes, I used "Go to next difference" / "Go to previous difference" on the tool bar (34s - 42s on the video). I did not found any special buttons for "Next Unsaved Modification" / "Previous Unsaved Modification". You should compare Buffer and File to see unsaved modifications. Having said that, I should note that I usually use a third-party utility for text comparisons: Compare-It. It allows not only to compare, but also to modify files if necessary. Share this post Link to post
Attila Kovacs 629 Posted November 17, 2018 (edited) @Kryvich These actions are defined in the binaries, that's why I'm asking. Are those hidden/unimplemented/edition dependent, etc. or are they anywhere visible . Edited November 17, 2018 by Attila Kovacs Share this post Link to post
Kryvich 165 Posted November 17, 2018 @Attila Kovacs OK I found them too in TEditorActionLists. I do not think these are some "secret" functions. As I understand, they move cursor to the previous/next line in the editor, marked as modified (yellow bar) or saved (green bar). Share this post Link to post
Attila Kovacs 629 Posted November 17, 2018 These would be nice functions if I could find out where they are 😉 1 Share this post Link to post
Kryvich 165 Posted November 17, 2018 (edited) I did not find any bindings for them, but it’s possible to write a small package that will add such functions and keyboard shortcuts for them. The best option would be if the IDE would allow the user to customize the keyboard shortcuts for all actions. Edited November 17, 2018 by Kryvich Share this post Link to post
Attila Kovacs 629 Posted November 17, 2018 I've tried to call one of them and all I got was an AV. So I thought either wrong window or not implemented. Share this post Link to post
Kryvich 165 Posted November 17, 2018 Well I found the bindings: Quote Finding the Next and Previous Changes As you edit code, you can use keystrokes to quickly navigate to the Next and the Previous changes that you have made. The keyboard shortcuts are: Ctrl+Shift+F7 -- moves to the previous line modified since the file was opened (green marking in the gutter). Ctrl+Shift+F8 -- moves to the next line modified since the file was opened (green marking in the gutter). Alt+Shift+F7 -- moves to the previous line modified since the last save (yellow marking in the gutter). Alt+Shift+F8 -- moves to the next line modified since the last save (yellow marking in the gutter). http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Code_Editor 1 1 Share this post Link to post
Attila Kovacs 629 Posted November 17, 2018 My god, those combos...... Nice catch! I'll check them and maybe rebind them. Thx! Share this post Link to post
Kryvich 165 Posted November 17, 2018 Found on Stack Overflow: Quote Another option is install Gexperts, and use the expert IDE menu shortcuts, This expert enables you to configure any of the IDE menu shortcuts. 1 Share this post Link to post
Attila Kovacs 629 Posted November 17, 2018 (edited) I'll consider. However used to GE re-configured many of the default key combos and we didn't make a big friendship. (I'm not using it) Edited November 17, 2018 by Attila Kovacs Share this post Link to post
Kryvich 165 Posted November 18, 2018 (edited) It's hard to find a good short shortcuts in IDE that are still free. I found Ctrl-Shift-NumPad- / NumPad+, and made a new plugin for Delphi. You can download it from GitHub and compile for Berlin. https://github.com/Kryuski/Editor-Shortcuts Edited November 18, 2018 by Kryvich 1 Share this post Link to post
dummzeuch 1505 Posted November 18, 2018 Quote Found on Stack Overflow: Quote Another option is install Gexperts, and use the expert IDE menu shortcuts, This expert enables you to configure any of the IDE menu shortcuts. That won't work, because these actions don't have an associated menu item. Nice idea with the expert that calls IOTAEditView .NavigateToModification. I thought about adding something like it to GExperts, but I'm not sure that I want to add yet another shortcut to the IDE (and thereby making it unavailable for other plugins) is worth it. I could add it the GExperts Editor Popup menu though, so it would not need a keyboard shortcut. Share this post Link to post
Attila Kovacs 629 Posted November 18, 2018 (edited) @Kryvich Thx but I will rather add menus to my own expert. I can't decide yet if I need shortcuts for these menus but I'm sure that I would have rather added extra menuitems to the editor popup as binding them to those insane shortcuts. I'm wondering if anyone is aware of the existence of them. Edited November 18, 2018 by Attila Kovacs Share this post Link to post
Attila Kovacs 629 Posted November 18, 2018 (edited) @Kryvich Btw, big thx for the plugin. I didn't know how those shortcuts was calculated 🙂 Edited November 18, 2018 by Attila Kovacs Share this post Link to post
PeterPanettone 157 Posted December 8, 2018 On 11/18/2018 at 3:18 PM, dummzeuch said: That won't work, because these actions don't have an associated menu item. Nice idea with the expert that calls IOTAEditView .NavigateToModification. I thought about adding something like it to GExperts, but I'm not sure that I want to add yet another shortcut to the IDE (and thereby making it unavailable for other plugins) is worth it. I could add it the GExperts Editor Popup menu though, so it would not need a keyboard shortcut. No, please add these commands as editor-toolbar-icons. I use them a lot. Share this post Link to post
Attila Kovacs 629 Posted December 8, 2018 There must be space on the TEditorNavigationToolbar for that. On the same analogy I put the standard IDE form editing toolbars to the top of the FormDesigner. Where it actually belongs to. Share this post Link to post
PeterPanettone 157 Posted December 8, 2018 (edited) This is a misunderstanding: Not on the NavigationToolbar, as this is a Code Editor command. You can have e.g. the GExperts toolbar on the left side and the CnWizards toolbar on top: Edited December 8, 2018 by PeterPanettone Share this post Link to post
Attila Kovacs 629 Posted December 8, 2018 @PeterPanettone Maybe your misunderstanding? This is the Navigation toolbar: Not ok? Share this post Link to post
PeterPanettone 157 Posted December 8, 2018 Of course it is OK. I just pointed to the possibility to have two different toolbars. Share this post Link to post
Dinar 22 Posted September 26, 2019 @Attila Kovacs Please provide a link to a website where we can find your plugins ) Judging by your activity in the Delphi developer community and the development of GExperts, it would be interesting to get acquainted with them Share this post Link to post