gryzus24 / anki-dodawacz Goto Github PK
View Code? Open in Web Editor NEWConsole/curses English dictionary look-up tool with Anki integration
License: GNU General Public License v3.0
Console/curses English dictionary look-up tool with Anki integration
License: GNU General Public License v3.0
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.
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ą ?
Reproduction
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.
Wprawdzie można wybrać za pomocą cyfry interesujący nas wynik, ale same cyfry się nie pojawiają tak jak to było we wcześniejszej wersji.
Pomimo, że w wyniku wyszukiwania jest informacja, że to "noun"
With the possibility of pasting selection/clipboard and the contents of the Phrase field more advanced editing features might sometimes come in handy like:
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)
W poprzedniej wersji aplikacji była możliwość włączenia/wyłącznia synonimów i pojawiało się pytanie o przykładowe zdanie - w nowej wersji nie bardzo wiem jak zrobić użytek z tych dwóch pól.
Tak poza tym, to świetna robota! :)
Operacje wyszukiwania kończą się komunikatem np.: Collins 'car' not found
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.