User forums > Using Code::Blocks
Is there a way to get copy/cut/paste in the right click context menu?
marosknapcok:
If you want to have "cut, copy, paste and delete" direct in your C::B context menu do the following:
in file "cbeditor.cpp" in function "void cbEditor::AddToContextMenu(.." push between end of condition "if (!pluginsdone)" and (start of) condition "if (insert)" following lines:
//------------------------
popup->Append(idCut, _("Cut"));
popup->Enable(idCut, true);
popup->Append(idCopy, _("Copy"));
popup->Enable(idCopy, true);
popup->Append(idPaste, _("Paste"));
popup->Enable(idPaste, true);
popup->Append(idDelete, _("Delete"));
popup->Enable(idDelete, true);
popup->AppendSeparator();
//------------------------
and compile/build it.
harrykar:
--- Quote from: oBFusCATed on July 12, 2014, 01:40:48 am ---
--- Quote from: marosknapcok on July 12, 2014, 12:45:37 am ---I really do not understand why you are making such an effort to creating menus at all if everything can be don by keyboard?
--- End quote ---
You've nailed it. The only purpose for the menus is to find what is the shortcut and never use them again :P ;D
--- End quote ---
I notice it too that cumbersomeness. I am aware user experience is a difficult task to do well and in that field regard left click menus C:B lack
harrykar:
--- Quote from: marosknapcok on July 12, 2014, 12:45:37 am ---I really do not understand why you are making such an effort to creating menus at all if everything can be don by keyboard?
I assume you are probably some linux guys don't you?
--- End quote ---
Apart *nix or not i encounter only few coders that are not typists :)
cacb:
--- Quote from: marosknapcok on July 18, 2014, 11:56:57 pm ---If you want to have "cut, copy, paste and delete" direct in your C::B context menu do the following:
in file "cbeditor.cpp" in function "void cbEditor::AddToContextMenu(.." push between end of condition "if (!pluginsdone)" and (start of) condition "if (insert)" following lines:
//------------------------
popup->Append(idCut, _("Cut"));
popup->Enable(idCut, true);
popup->Append(idCopy, _("Copy"));
popup->Enable(idCopy, true);
popup->Append(idPaste, _("Paste"));
popup->Enable(idPaste, true);
popup->Append(idDelete, _("Delete"));
popup->Enable(idDelete, true);
popup->AppendSeparator();
//------------------------
and compile/build it.
--- End quote ---
Please allow me to vote for this as a standard feature in C::B. Cut, Paste and Delete are among the most used features in an editor. Ok, I also use the keyboard, but not only the keyboard for these operations. Then look at how other applications (editors) do it and the message is clear: Cut, Paste and Delete should be directly available in the popup context menu, i.e. prioritised higher than now. That obviously means demoting or removing other, less important options.
Thanks for bringing it up.
marosknapcok:
Is there anyone else who would like to beg the C::B masters for making some special mouse lovers christmas version? Till now there are 2 of us:
-marosknapcok
-cacb
PS:Please please please, we beg you on our knees :-)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version