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

Url doesn’t update when clicking the home “em” button #2

Closed
raineorshine opened this issue Jun 13, 2019 · 0 comments
Closed

Url doesn’t update when clicking the home “em” button #2

raineorshine opened this issue Jun 13, 2019 · 0 comments

Comments

@raineorshine
Copy link
Contributor

nor does it update when hitting "escape" while the cursor is on an item at the root level.

@rabbit This might be a good starter task! The history push/replace functionality will be easy to find, but you will still have to interface with some core concepts, such as below:

  • items: the array of descendants from the root to a given item, e.g. ['My Journal', '6/12/19', 'Happy']
  • itemsRanked: Similar to items, but stores each item as a { key, rank } pair to differentiate duplicate items in the same context.
  • cursor: where the cursor currently is; same data structure as itemsRanked but may include cycles to account for navigating across context views.
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

No branches or pull requests

1 participant