Giter Club home page Giter Club logo

anki-dodawacz's People

Contributors

gryzus24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anki-dodawacz's Issues

[curses] garbled output in less on Windows

Commands that redirect their output to less do not display properly on any terminal on Windows.

Less barely manages to work in a clean terminal session on Windows, making it inherit the program's curses environment just asks for something to break. This is yet another reason to consider implementing a simpler pager that supports only scrolling and searching.

Czy można wybrać pozycję spoza zakresu 1-20 wyniku?

Wcześnie można było ograniczyć liczbę pozycji w wyniku wybierając np. rzeczownik, ale w nowej wersji aplikacji chyba nie ma takiej możliwości :(. Nie łatwiej było by pozwolić przescrollować się po wszystkicg pozycjach i np. spacją wybrać te które nas interesują ?

[curses] less cannot determine the size of the window after resizing

Reproduction

  • make the window small
  • enter curses
  • make the window bigger
  • type "--help" or any other command that produces output big enough to redirect it to less

Cause
This is caused by readline which is imported in a completer.py file while running the program on Linux.
Less is being run in a subprocess which inherits all the environment variables like "COLS" and "LINES" which are set to None because of readline and that's probably why it has a problem with resizing.

I tried running less in a new shell instead of a subprocess, but then it has some problems with interpreting ANSI color characters. Explicitly setting these environment variables does not help and incurs other problems.

Python's readline API does not expose certain variables and functions responsible for readline's rampant behavior and makes it hard to reconcile many conflicting features in a curses context.

Possible solution
Write a simpler pager (only scrolling and searching) and not rely on less at all.

[curses] more advanced line editing in prompt

With the possibility of pasting selection/clipboard and the contents of the Phrase field more advanced editing features might sometimes come in handy like:

  • Ctrl-Backspace to delete the whole word
  • [Ctrl-T or ???] to delete everything except the word under the cursor

[curses] Tab completion in the search prompt

After using readline's tab completion in the normal Search prompt it's annoying to have to type the whole thing when using the curses prompt.

It would be cool to have this feature especially as in the future the whole program might be in curses. Then, tab completion would be cross-platform (assuming better curses experience on Windows in general)

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.