Skip to content
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

Setting to control document open cursor pos (top/bottom), seperate la… #1113

Conversation

FrantisekRadacovsky
Copy link

František Radačovský added 3 commits November 3, 2020 14:16
…st pos option gsantner#1004

Fixed bug, when setting cursor on the bottom doesn't work + Issue "Setting to control document open cursor pos (top/bottom), seperate last pos option gsantner#1004" done.
formatted code
@gsantner
Copy link
Owner

gsantner commented Nov 3, 2020

Hello thanks

This is still work in progress right?

I found some debug code and commented code.

@gsantner gsantner marked this pull request as draft November 3, 2020 17:27
if (!as.isPreviewFirst()) {
_hlEditor.requestFocus();
if (as.getCursorPosition() != null) {
if (as.getCursorPosition().equals("End of document")) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break when translations are applied. You should do something like

final Resources res = activity.getResources();
if (as.getCursorPosition().equals(res.getString(R.string.cursor_end)) {

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be even better, imo, to separate the string description from the key

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that one was meant especially with "work in progress" :D

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry, I am so used to looking for WIP: that I did not see the draft tag :)

@gsantner
Copy link
Owner

@FrantisekRadacovsky ?

@FrantisekRadacovsky
Copy link
Author

Hi. I'll look into it as soon as possible. Sorry for the inconvenience.

@gsantner
Copy link
Owner

thanks

no problem, just let me know when you have something to look at.

@gsantner
Copy link
Owner

gsantner commented Dec 4, 2020

closing for now, can always be reopened again when it is ready.

@gsantner gsantner closed this Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting to control document open cursor pos (top/bottom), seperate last pos option
3 participants