-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat: replace less
with minus
#100
base: main
Are you sure you want to change the base?
Conversation
Hi again @TornaxO7 and thanks for putting this PR together. I haven't tested the branch out yet, but here are some of my thoughts:
Let me know if you're stuck on some parts and we'll see if we can simplify or change some things around. |
ooooof, I though that we replace
good point! If I'm seeing it correctly |
hm... so would you like to have |
I think the discussion of whether to have minus as the default pager can come later down the line. For the first version, I'd like to be able to use it with the
No problem, my friend. Like I mentioned earlier, I have tried to decouple the highlighting logic from the presentation logic. The idea behind this is that we should be able to easily swap out these parts since they don't have anything to do with each other. We already have a
I suspect that having minus read from our temporary file will solve any memory issues, but I might be on thin ice here. In any case we need to take into account large files. So to sum up, a way forward could be creating a Lastly, it is important that the minus is able to pick up newline entries somehow. This is already handled with the temp file, as we continuously watch the original file and write to the temp file if new entries come in. |
I just noticed that I still think it is worth looking more into. I'd like to take another look at integrating So to sum up, I'll have a look at this again as well, and if there aren't any big blockers (performance, memory etc.) we can look into integrating tighter with tailspin. Open to thoughts and your ideas as well. |
Closes #95
It's mostly done. I need to fix some bugs (like opening a huge file, somehow breaks the pager and takes a lot of time) and especially hope that AMythicDev/minus#114 gets merged so we have the follow-mode with
minus
as well :)I'll also add more docs if you approve the code (I don't want to remove more lines if you don't like them ;-;).
You can try it out if you want :)
but now I should really go to bed