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

Question: How to translate the index of a visible paragraph into the index system of all paragraphs? #568

Closed
jmanc3 opened this issue Aug 13, 2017 · 4 comments

Comments

@jmanc3
Copy link

jmanc3 commented Aug 13, 2017

How do you get the index of the first visible paragraph amongst all the paragraphs.
image

@JordanMartinez
Copy link
Contributor

Sorry for not responding earlier.

This is a duplicate of #522, but I like your visual better than my explanation (below), so I'm closing the other one, not this one:

currentParagraph is used to get the caret's paragraph index in terms of the total paragraphs, but now that #501 has been merged, there's not a counterpart for determining the caret's paragraph index in terms of the visible paragraphs. It should be Optional<Integer> currentVisibleParagraph

Which version are you using?

@JordanMartinez JordanMartinez changed the title Question: Visible Paragraphs Index Question: How to get visible paragraph index of caret? Aug 14, 2017
@JordanMartinez
Copy link
Contributor

Oh... actually it's not a duplicate 😅

@JordanMartinez JordanMartinez changed the title Question: How to get visible paragraph index of caret? Question: How to translate the index of a visible paragraph into the index system of all paragraphs? Aug 14, 2017
@JordanMartinez
Copy link
Contributor

@jmanc3 Is this still a question you need answered? I was waiting for you to say which version you were using

@JordanMartinez
Copy link
Contributor

This was added in #600

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

No branches or pull requests

2 participants