octobanana / fltrdr Goto Github PK
View Code? Open in Web Editor NEWA TUI text reader for the terminal.
Home Page: https://octobanana.com/software/fltrdr
License: MIT License
A TUI text reader for the terminal.
Home Page: https://octobanana.com/software/fltrdr
License: MIT License
Setting Environment Variables
Building fltrdr in release mode
Compiling fltrdr
CMAKE_BUILD_TYPE is release
-- Configuring done
-- Generating done
-- Build files have been written to: /home/andrew/fltrdr/build/release
[ 16%] Building CXX object CMakeFiles/fltrdr.dir/src/fltrdr/tui.cc.o
clang: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
/home/<user>/fltrdr/src/fltrdr/tui.cc:27:10: fatal error: 'filesystem' file not found
#include <filesystem>
^~~~~~~~~~~~
1 error generated.
CMakeFiles/fltrdr.dir/build.make:110: recipe for target 'CMakeFiles/fltrdr.dir/src/fltrdr/tui.cc.o' failed
make[2]: *** [CMakeFiles/fltrdr.dir/src/fltrdr/tui.cc.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/fltrdr.dir/all' failed
make[1]: *** [CMakeFiles/fltrdr.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
real 0m0.887s
user 0m0.815s
sys 0m0.053s
I get this error, I have been unable to resolve it. I also tried installing clang and using it as described in #3 (despite it being about MacOS). Probably I'm just missing something obvious.
Hi
First off: great project. I'm really excited to test this out on MacOS
I installed cmake with brew install so that requirement is fine. However on MacOS I get a fatal error on 'Filesystem file not found'.
I found some information on this problem but I'm not sure how to implement this. The current llvm version is 7.0.1.
https://stackoverflow.com/questions/49577343/filesystem-with-c17-doesnt-work-on-my-mac-os-x-high-sierra
Using the example config with fltrdr v0.1.0 (18.02.2019) currently results in the warning: unknown command 'style text-brace 4feae7'
.
Hi
I'm here once again to ask your assistance! I really like this project and would like to use this on fedora. I think I installed all the necessary packages.
-- Build files have been written to: /home/ew/Documents/Proj/fltrdr/build/release
[ 14%] Building CXX object CMakeFiles/fltrdr.dir/src/main.cc.o
In file included from /home/ew/Documents/Proj/fltrdr/./src/fltrdr/fltrdr.hh:5,
from /home/ew/Documents/Proj/fltrdr/src/fltrdr/tui.hh:4,
from /home/ew/Documents/Proj/fltrdr/src/main.cc:7:
/home/ew/Documents/Proj/fltrdr/./src/ob/text.hh:6:10: fatal error: unicode/coll.h: No such file or directory
6 | #include <unicode/coll.h>
| ^~~~~~~~~~~~~~~~
/tmp/fltrdr/./src/ob/timer.hh:112:25: error: call to unavailable member function 'value': introduced in macOS 10.14
auto const t = pstr.value();
~~~~~^~~~~
/usr/local/Cellar/llvm/8.0.0/bin/../include/c++/v1/optional:938:33: note: candidate function has been explicitly made unavailable
constexpr value_type const& value() const&
^
/usr/local/Cellar/llvm/8.0.0/bin/../include/c++/v1/optional:947:27: note: candidate function not viable: 'this' argument has type 'const
std::__1::optional<std::__1::vector<std::__1::basic_string, std::__1::allocator<std::__1::basic_string > > >', but method is not marked const
constexpr value_type& value() &
^
/usr/local/Cellar/llvm/8.0.0/bin/../include/c++/v1/optional:956:28: note: candidate function not viable: 'this' argument has type 'const
std::__1::optional<std::__1::vector<std::__1::basic_string, std::__1::allocator<std::__1::basic_string > > >', but method is not marked const
constexpr value_type&& value() &&
^
/usr/local/Cellar/llvm/8.0.0/bin/../include/c++/v1/optional:965:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for
object argument
constexpr value_type const&& value() const&&
^
Hey, I liked to try out your project but i'm getting the following error while trying to build or install:
[...]/fltrdr/./src/ob/string.hh:7:20: fatal error: optional: No such file or directory compilation terminated. CMakeFiles/fltrdr.dir/build.make:62: recipe for target 'CMakeFiles/fltrdr.dir/src/main.cc.o' failed make[2]: *** [CMakeFiles/fltrdr.dir/src/main.cc.o] Error 1 CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/fltrdr.dir/all' failed make[1]: *** [CMakeFiles/fltrdr.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
i install your parg lib, libstdc++6 and have cmake 3.14
ubuntu 16.04..
(Edit: same for peaclock)
Keys currently cannot be rebound.
HJKL is awkward for some non-standard/non-us keyboard layouts.
As fltrdr already exposes most if not all of the necessary commands to fit the functionality of the existing keybinds, I'd suggest a format in the config something like:
bind {key} {command} {args}
Perhaps I'm the only one interested in that, but I wonder if it would be feasible to make fltrdr
fetch the content of a webpage (with 0 depth on links of course) or even a div (if there are anchor URL available) with fltrdr <url>
? Perhaps that is already doable with some other UNIX commands to fetch the text content and pipe it to fltrdr
with command <url> | fltrdr
?
I wonder if lynx
and readability-cli
could be used for that.
Looking at the output of --help
, it is difficult to discern what the various text style values (text
, text-primary
, text-secondary
, text-highlight
, etc) refer to.
When I first launched fltrdr on a text file I found the behaviour of highlighting the character under the cursor to be distracting. I wanted to highlight the whole word. Through trial and error I discovered that the property I wanted was text-primary
, but it would have been helpful if the documentation was more specific on this point.
Using Linux, I tried in different terminal emulators and all the accented characters I tested (éèàçôîû
) show up wrong.
I'm trying to build this into a Docker image but can't get stdin to work. It's very likely that I'm missing something Docker specific, but I'm not sure.
The error I get is: Error: could not open stdin
using the following Dockerfile
RUN apk add --no-cache bash cmake make g++
WORKDIR /app
COPY CMakeLists.txt build.sh env.sh /app/
COPY src /app/src/
RUN ./build.sh
FROM alpine
RUN apk add --no-cache libstdc++
COPY --from=build /app/build/release/fltrdr /usr/bin/
ENTRYPOINT ["/usr/bin/fltrdr"]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.