-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Cat/bat command does not work as expected on all files #113
Comments
Hi @ashprice. Thanks for reporting. When this happens, the screen is cleared (only a CliFM's prompt, no list of files), or refreshed (the list of files is reprinted)? Does this happen only if the command is aliased? |
The screen is refreshed (the list of files is reprinted). I was sure it was happening before with regular I would guess support for tools like this would have to be added individually? |
It's not a matter of support. This is what I think is happening: CliFM updates the screen whenever the
Whatever it may be, I need to clearly reproduce the issue to track the bug and fix it. For the time being, it's good to know it only happens with |
I am only running
I don't know if bat failing would be related to the CPU spikes I am seeing from clifm (100% of one core seemingly at random if clifm is open for a while) - I have been waiting and trying to spot a pattern in usage before opening an issue on that one. |
Hi @ashprice. I'll keep an eye of the bat issue. As to the cpu spikes thing, this needs to be tracked down and fixed, for sure, but I don't think it is related to former issue. We need some kind of pattern to make these issues reproducible. Please keep me informed. Both issues added to the bugs list. |
Made a little adjustment to the inotify system to solve a long time bug: the screen is refreshed when it shouldn't. Give it a try now: if we're lucky enough, both issues could be fixed in a single stroke. |
Hi @ashprice. Could you please confirm that this issue is solved (or not)? |
Hey, |
Thanks! I'll keep trying to reproduce the issue. I'll let you know. |
Hey @leo-arch, I've a very belated updated on this - no fix sadly, but I noted some other info that might be helpful. I hadn't been using clifm (just living in the regular terminal lately) but decided to pick it up again today, remembered this issue and thought I'd have a play. Anyway, the update is this: many files do Here is a random example of a file that
(This is a config file for an engine for analyzing games of Go.) An example of a file that doesn't
If the latter works fine for you, the issue is probably something specific to my setup. |
Hi @ashprice. Tried both files and no issue at all. What's the julia script's name? Just in case. EDIT: A few suggestions: Try running in stealth mode: |
Are you running plain |
Sorry for the slow reply! The script was just named temp.jl Yes, it's fine outside of clifm. Bat is just bat. No specific configuration at all, and no passed arguments.
|
Great. We can (almost) be sure the issue is then caused by the screen auto-refreshing feature. I'll keep trying to reproduce this issue. Thanks for your feedback @ashprice! |
FWIW, |
Thanks for the info @cjk! I'll give this a try and let you know. |
A few quick tests: I've tried setting LESS to a few |
I use bat as a cat alias, but this applies to both. Basically, some files cat as expected, without refreshing the screen, other files print the cat very briefly, then clear the screen and print a fresh clifm prompt.
The weird thing is that some files work as expected despite having the same file ending as files that don't. Eg. a file called shortcutsrc produces the bug, a file called aliasesrc does not. Files with some ending like .conf usually behave as expected, so I assume there is somewhere I should be looking in the documentation about this?
To Reproduce
Open clifm.
cat
orbat
away.Expected behavior
cat/bat should print all files as it would in a regular terminal prompt, without clearing the screen.
Desktop (please complete the following information):
Arch Linux 5.17.1-arch1-1, st, dwm, clifm-git 1.5.1.r68.gd60abd60-1 from the AUR.
Additional context
Sorry if this is explained how to adjust in the documentation and I've missed it!
The text was updated successfully, but these errors were encountered: