New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimum number of columns to keep to the right of the cursor (imported from old database #96310) #224

Closed
ecterrab opened this Issue Apr 27, 2015 · 9 comments

Comments

Projects
None yet
4 participants
@ecterrab

ecterrab commented Apr 27, 2015

In the Preferences, Editor, Scrolling, we have "Minimum number of lines to keep above and below cursor". That is a great option. Say we set it to 5. Then wherever we are in a code file, we always see at least 5 lines above and below, instead of seeing only the very last line and nothing else.

But then when there is a long line in the code and I move the cursor to the end of the line, I am never sure whether I am or not at the end because I do not see any column further to the right (I always suspect I may be somewhere within the line, so not at its end - there is no clue to know).

What I am suggesting is to resolve this small however concrete inconvenience by having a preference option of the form "Minimum number of columns to keep right of the cursor (when moving the cursor to the end of a line)"; and I would also suggest to have it default to 5. Anyway, having the option (not its default value) is what I see as the core thing.

This problem is still there in Komodo 9 last build April/15. I note that although a solution just for me was provided by implementing macros, I think this is a sort of relevant issue: you move the cursor over long line to its end and the only way to be sure you are at the end is to see - say - 5 additional blank characters. The rationale here is exactly the same as the one behind "Minimum number of lines to keep above and below cursor" regarding the vertical direction. It is missing regarding the horizontal direction.

@Naatan Naatan added this to the Backlog milestone Apr 27, 2015

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 27, 2015

Could you provide (or link to) the macros that you used?

@Naatan Naatan modified the milestones: 9.2, Backlog Apr 27, 2015

@ecterrab

This comment has been minimized.

ecterrab commented Apr 27, 2015

Hi Nathan
I didn’t use the macros suggested. I tried the first time they were suggested but they didn’t work. A correction was made afterwards (regarding the suggestion made) but I am not familiar with this kind of macros so end up living with the issue, but honestly remembering about it and disliking each time I cross with this, almost every day. It attempts against the user-experience of the Editor.

Regarding the macros suggested themselves, they are there in the old report: https://bugs.activestate.com/show_bug.cgi?id=96310

Is this all the info you need?

@Naatan

This comment has been minimized.

Member

Naatan commented Apr 27, 2015

Thanks, fwiw the working macro is:

var view = ko.views.manager.currentView;
var scimoz = view.scimoz;
var slop = 100; // Experiment with this value
scimoz.setXCaretPolicy(scimoz.CARET_SLOP | scimoz.CARET_STRICT, slop);

Simply add this to your toolbox by clicking the gear icon, then "New Macro". Give it a name, paste in the code and go to the Triggers tab, then set it to trigger "After File Open". Then press OK to close and save the macro.

After that any file you open will have space preserved before and after the cursor (horizontally).

We'll definitely look into adding this as a native feature.

@Naatan Naatan modified the milestones: 9.1, 9.2 Apr 27, 2015

@ecterrab

This comment has been minimized.

ecterrab commented Apr 27, 2015

I did what you said, and it does work. I still feel that this is an issue for everybody - the user experience of the Editor is not as good when you go to the end of a line and remain in doubt whether you are not not at the end. I guess you added that option regarding the vertical direction for this same reason. Looking forward for the implementation of this also in the horizontal direction.

Independent of that, while following your instructions, I noticed two bugs in the copy and paste within a macro window: 1) you paste stuff but nothing is visible, as if it didn't paste ... but then you move the focus elsewhere by clicking elsewhere, for instance to another tab of the same macro window, and then return to the main macro window and voila! there it is what you pasted before but was invisible. 2) after the contents appear, everything blinks steadily, even when you are doing nothing. All this is only visible in a movie, but github does not allow to attach a small movie. I managed to workaround by artificially adding a termination "JPG" to the movie. So you need to download the file, you can do that by right-clicking the question mark (github cannot render this as an image, of course) then save it as whatever with termination ".mov", and then you can watch all this ( 1) and 2) ) happening.

bug in copy and paste in macro window mov

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented Apr 27, 2015

@ecterrab please don't file additional bugs within the same report. EDIT ahh you did! issue #226

And we agree with you that this should be added. As Naatan said "We'll definitely look into adding this as a native feature". The milestone has been set for 9.1. Stand by for 9.1 release.

@ecterrab

This comment has been minimized.

ecterrab commented Apr 27, 2015

Hi, yes. I mentioned it here because this is how I crossed with the issue, always relevant to know. But I actually tracked this as a separate bug - see #226,

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented Apr 27, 2015

A link back to this issue from the new report would suffice.

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented Apr 28, 2015

Hi @ecterrab, could you try enabling Prefereces > Editor > Scrolling: "Enable scrolling past end of buffer" and see if this allows you to scroll passed the end of line boundary?

@ecterrab

This comment has been minimized.

ecterrab commented Apr 28, 2015

Hi, yes I tried that when I noticed the problem, time ago, then more recently before tracking the issue - it does not help.

@Naatan Naatan modified the milestones: 9.1, 9.1.1, 9.2 May 19, 2015

@Naatan Naatan modified the milestones: 9.2, 9.2.1, 9.3 Jun 23, 2015

@Naatan Naatan removed this from the 9.2.1 milestone Jun 23, 2015

@Naatan Naatan modified the milestones: Backlog, 9.3 Oct 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment