-
Notifications
You must be signed in to change notification settings - Fork 20
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. Add a "raw" mode #22
Comments
I think this is a good idea, but would require some more design/explanation before I would be able to work on it. I'm just not quite certain how pages would be rendered, more specifically:
Also, making pdfs 'greppable' would definitely be possible. If you would like to try to implement this desired functionality yourself, feel free to file a PR. Otherwise, I think a specific use-case or mockup of what it would look like or what the ideal command flow would be could help a lot here. Also, based on this issue, #15, and #12, it would probably make sense to start adding argument parsing into this, so I can start working on at least building out the structure for this sort of thing soon. |
I think we should go for easy wins/implementation, to begin with. I'm saying this cause, unfortunately I don't have the slightest idea about Rust programming, so I shouldn't "dictate" anything, on your or any other ppl willing to spend their time on it. With this in mind, I'd think the following:
The first part of the video shows how yazi-fzf-previewing-480p.movAbout "grepping" pdfs: I also have an Again, tackling this is well beyond my time constraint, so I don't expect anything from you or anyone else. However, imho, something like this would be a great addition and general design direction of Thank you for your time and efforts! |
@vvatikiotis how did you configure yazi to do page up or pagw down on pdfs? when I do ctrl_u it scrolls up or down but not the page |
In [[manager.prepend_keymap]]
on = ["<C-d>"]
run = "seek 5"
desc = "Preview, down 5 lines"
[[manager.prepend_keymap]]
on = ["<C-u>"]
run = 'seek -5'
desc = "Preview, up 5 lines" My |
A simple mode, with the keybinds, but without anything but the PDF would also be appreciated. I closed an issue on this because I didn't know if it counted as a duplicate. |
Hello,
for lack of a better introduction, I'll just write "
tdf
without the TUI, just render the pdf in the terminal".Why? To allow
tdf
to integrate with other command line tools. Like, for instance,fzf
orless
andlesspipe
, which are my use cases. Usingfzf
and configuring it to preview the selected file enables a seamless and very efficient file exploration workflow. Setting uplesspipe
withless
and enabling tab completion withfzf
and previewing seems to me like the ultimate file exploration experience. I consider exploration and file management as different workflows, so as much as I like tuis likeyazi
, for file management, I think that a less/lesspipe/fzf/previewing with previewers combo is much better.(There maybe additional workflows and experiences, like grepping into searchable files/pdf, but I won't go there).
So I envision a
tdf
working seamlessly with other cli tools. In order for this to be possible, tdf (or any other tool) has to let go, or even better, have a "raw" mode, where there is no tui. Something liketdf --raw <file>
would just render the pdf file in the terminal, ideally respecting a pager.I know of one tool,
yazi
, which accomplishes this out of the box. But, as I said before,yazi
is an excellent TUI file manager, whereas something even closer to the shell prompt would be, in my mind, better for just file exploration.Please pardon my long winded post,
tdf
is a valuable tool in my cli toolbelt!The text was updated successfully, but these errors were encountered: