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

[Feature Request] Vim style marks! #25

Open
hwangy opened this issue Jan 2, 2025 · 5 comments
Open

[Feature Request] Vim style marks! #25

hwangy opened this issue Jan 2, 2025 · 5 comments

Comments

@hwangy
Copy link

hwangy commented Jan 2, 2025

Love the app. Especially for long documents or websites, it would be awesome if there was a way to implement Vim-style marks, so I can mark my place, scroll, and then return to where I was before. Is this is at all possible via Scrolla?

Thanks!

@godbout
Copy link
Owner

godbout commented Jan 2, 2025

wow. makes a lot of sense for long documents or pages yeah. interesting. never thought about it.

some quick points tho, off the top of my head:

  1. can't say i'm a 100% sure it's feasible. like does Apple provides APIs regarding a specific position of a scrollbar? scrollbar position in a documents etc.? no idea. i'd say most probably yes. Apple is good with providing screws and nails regarding almost everything. BUT can't promise until i do more research. what i can promise tho is that i'll investigate
  2. Scrolla currently doesn't have any database backend. are you thinking about only ONE mark, or are you thinking about several. several would require a system for Scrolla to keep track of them, which probably means db, which probably means a lot more work
  3. would you wanna register the marks and use them with real Vim bindings, or something else? (working on a way to bring custom key mapping to Scrolla and Wooshy so most probably could supersede later but still worth asking i think)

@hwangy
Copy link
Author

hwangy commented Jan 2, 2025

Thanks for the detailed response!

I think I'd be happy with even a single mark! Especially for academic PDFs, I tend to start from a single location, then click a bunch of internal PDF links, then eventually want to get back to where I started from. So a single mark would address this issue.

I'm not entirely sure what you mean about using them with real Vim bindings. I guess ideally, the marks would behave in a "Vim-like" way, really what I'm after is a way to keep track of a location I started from and be able to return to it. I'm not picky about the way this is implemented :)

@godbout
Copy link
Owner

godbout commented Jan 2, 2025

I think I'd be happy with even a single mark! Especially for academic PDFs, I tend to start from a single location, then click a bunch of internal PDF links, then eventually want to get back to where I started from. So a single mark would address this issue.

a single mark would be easier to do, and faster to release. i think ultimately connecting some db to Scrolla and Wooshy's backends would be super useful, but that's a lot of research, which means way way longer time. will digest thanks.

I'm not entirely sure what you mean about using them with real Vim bindings. I guess ideally, the marks would behave in a "Vim-like" way, really what I'm after is a way to keep track of a location I started from and be able to return to it. I'm not picky about the way this is implemented :)

i meant, in Vim you set a mark with m and type a letter. to go to your mark it's either ' or ` (but in Scrolla the ` would be the one making sense) followed by the letter you chose when you defined your mark. i could stick to those ways of marking a place, at least until the custom key mapping is implemented. for me definitely kV Wooshy and Scrolla are inspired by Vim, and i want my Vim bindings everywhere. but if you have any idea or preference, you can always lemme know, i'll digest, and see what i decide 😃️ ultimately tho the plan is to make everything configurable. but at first i prefer releasing stuff that are not configurable, but work hehe

@hwangy
Copy link
Author

hwangy commented Jan 2, 2025

Yep, following the vim convention makes sense! I guess in Vim ' is for just the line and ` is for line and position, correct? Since position within a line doesn't necessarily make sense for just scrolling, ' makes more sense to me. But not picky either way!

Either way, looking forward to the eventual support!

@godbout
Copy link
Owner

godbout commented Jan 2, 2025

Yep, following the vim convention makes sense! I guess in Vim ' is for just the line and ` is for line and position, correct? Since position within a line doesn't necessarily make sense for just scrolling, ' makes more sense to me. But not picky either way!

i would have chosen ` because it's the exact position. but ultimately i can and will definitely add both 😂️😂️😂️

Either way, looking forward to the eventual support!

definitely sounds super interesting, super useful, and makes total sense. so yeah, will dig into it. no ETA tho. thanks for the idea!

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

2 participants