1. Use the main menu instead of the popup menu.
the menu always shows only 4, and they may not be the default ones. Not a critical bug, but rather annoying!It is hard coded in EditorTweaks.cpp:
const unsigned int MaxStoreAlignerdEntries = 4;
Anyway, this is a quite an uncommon and undocumented feature, plus it is not clear how to disable it (Settings -> Editor -> EditorTweaks settings -> Editor caret buffer = None).Thats just because you used recent nightlies where it was on by default. If you have a fresh installation, its off by default and won't harm unless you turn it on. Sorry for the inconvenience.
Thats just because you used recent nightlies where it was on by default. If you have a fresh installation, its off by default and won't harm unless you turn it on.Um... this feature is on by default. I wrote it with a default 4 line buffer because that is what I personally found most useful. However, from the sounds of various recent posts, this behavior is rather unexpected. Would it be preferred if the default setting is a 1 line buffer (so the feature is still discoverable, but acts very conservatively, so it should not be too bothersome). Or should it be off by default? Or are there some other "4 line buffer supporters" out there who are remaining silent :)?
[...] This is very confusing... But maybe this is intended behavior ?Intended, yes (well, sort of), but confusing, it seems also yes :-\.
Um... this feature is on by default. I wrote it with a default 4 line buffer because that is what I personally found most useful.As always: Magic needs to be turned off by default. Standard (expected) behaviour is what should be enabled.
Index: src/plugins/contrib/EditorTweaks/EditorTweaksConfDlg.cpp
===================================================================
--- src/plugins/contrib/EditorTweaks/EditorTweaksConfDlg.cpp (revision 8624)
+++ src/plugins/contrib/EditorTweaks/EditorTweaksConfDlg.cpp (working copy)
@@ -26,7 +26,7 @@
int maxSavedAlignerEntries = cfg->ReadInt(_T("/aligner/max_saved_entries"),4);
SpinCtrl1->SetValue(maxSavedAlignerEntries);
- Choice1->SetSelection(cfg->ReadInt(wxT("/buffer_caret"), 4));
+ Choice1->SetSelection(cfg->ReadInt(wxT("/buffer_caret"), 1));
}
EditorTweaksConfDlg::~EditorTweaksConfDlg()
@@ -44,7 +44,7 @@
if(oldSavedAlignerEntries != newSavedAlignerEntries )
cfg->Write(_T("aligner/max_saved_entries"),newSavedAlignerEntries);
- const int oldBuffer = cfg->ReadInt(wxT("/buffer_caret"), 4);
+ const int oldBuffer = cfg->ReadInt(wxT("/buffer_caret"), 1);
const int newBuffer = Choice1->GetSelection();
if (oldBuffer != newBuffer)
cfg->Write(wxT("/buffer_caret"), newBuffer);
Index: src/plugins/contrib/EditorTweaks/EditorTweaks.cpp
===================================================================
--- src/plugins/contrib/EditorTweaks/EditorTweaks.cpp (revision 8624)
+++ src/plugins/contrib/EditorTweaks/EditorTweaks.cpp (working copy)
@@ -1184,7 +1184,7 @@
void EditorTweaks::DoBufferEditorPos(int delta)
{
if (m_buffer_caret == -1)
- m_buffer_caret = Manager::Get()->GetConfigManager(wxT("EditorTweaks"))->ReadInt(wxT("/buffer_caret"), 4);
+ m_buffer_caret = Manager::Get()->GetConfigManager(wxT("EditorTweaks"))->ReadInt(wxT("/buffer_caret"), 1);
if (m_buffer_caret < 1) // feature disabled (selected "None" in settings)
return;
cbEditor* ed = Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor();
Magic down:It was really by default at 4? Well this is going to be fun with the release then... 8)
hhm, if in the release it is not default off, we need to rebuild, really, this is a non normal situation.Are you serious? Actually we can't do that - you know...
It is not fun, but it is because we made a mistake to make this the default in the first place, we should pay for our mistakes, not the user.I was the one who made the mistake, not any of you.
I don't know if this is related, but the current nightly build doesn't really remember my setting for this particular feature.
[...]
I'm just downloaded RC2 vesrion, and I noticed, that when I'm putting new charcters or delete them from to top most or bottom lines in current view in editor, whole tekst scrolls in direction to achive active line as close to middle as it can be. It happens every typed key in the new opened file. It may stop for a while but it comes back in non determistic moment ;)Sorry, RC2 is rev 8598, but the missing initialization was fixed in rev 8599 (fix arrived one commit too late :(). This means that in RC2, this one setting (for buffering the caret position in the editor) is a random number at startup, and only reads your config when the editor settings window is opened.As a warning, the annoyance may have been removed, but the position buffering settings are not loaded until the settings window is opened (at least once) due to a missing initialization (http://forums.codeblocks.org/index.php/topic,17070.msg117249.html#msg117249).Done in trunk.
You may want to disable the EditorTweaks plugin until you either create your own build from the trunk, or the next RC is released.