GithubHelp home page GithubHelp logo

octobanana / fltrdr Goto Github PK

View Code? Open in Web Editor NEW
483.0 7.0 9.0 1.47 MB

A TUI text reader for the terminal.

Home Page: https://octobanana.com/software/fltrdr

License: MIT License

CMake 0.79% Shell 0.60% C++ 98.61%
text reader tui terminal

fltrdr's People

Contributors

joseprrm avatar octobanana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fltrdr's Issues

Ubuntu 18.04 Build Error

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.

Fedora 31: Build error

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.

  • icu
  • gcc
  • cmake
    Relevant errors

-- 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>
      |          ^~~~~~~~~~~~~~~~

Incompatible with lower version Macos(High Sierra)

/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&&
^

src/ob/string.hh:7:20 not found

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)

Cannot rebind keys

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}

Odd Whitespace

I'm seeing fltrdr insert odd whitespace in some files. So far it seems to be limited to URLs. For example, see the screenshot reading the README.md for this project:

img-2019-02-19-203543

I am running v0.1.0 (18.02.2019).

Would it be hard to pipe a webpage to fltrdr?

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.

Clarify Text Styles

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.

Add Unicode text support

Using Linux, I tried in different terminal emulators and all the accented characters I tested (éèàçôîû) show up wrong.

Error: could not open stdin with docker

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"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.