- Drop support for EOL versions Python 3.6 and Python 3.7.
- Return
str
instead oflist
when executingtldr -l
(thanks @uunnxx) - Use pathlib instead of os.path (thanks @vitorhcl)
- Respect language settings when geting a list of commands (thanks @frenzymadness)
- Fix
--search
option (thanks @CleanMachine1)
- Add support for BSD platform directories (thanks @vitorhcl)
- Add
--update
long option (thanks @owenvoke) - Add support for fetching individual translation archives for cache (thanks @SaurabhDRao)
- Add support to show message for other versions of the same page in other platforms (thanks @Jaimepas77)
- Update
DOWNLOAD_CACHE_LOCATION
to use GitHub Releases (thanks @vitorhcl) - Add
macos
alias forosx
directory and update--platform
option (thanks @patricedenis) - Add support for escaping placeholders for special pages (thanks @kbdharun)
- Add support for Python 3.11 and Python 3.12 (thanks @kbdharun)
- Add support for Client Specification v2.2
- Fix forcing color through termcolor
- Change non-word regex to be POSIX compliant (thanks @stevejbrown)
- Update pages source to use the main branch
- Add a timeout to the URL requests (thanks @Jaimepas77)
- Add
--search
option to find tldr pages based on keywords (thanks @gotlougit) - Specify support for v1.5 of the tldr client specification
- Command names are lowercased before searching for page
- Fix color printing for tokens that end with curly braces
We have moved from argcomplete to shtab for providing shell completions. This library is more efficient on doing tab completion, avoiding costly time it takes for the python intrepreter to parse tldr to get options.
See Readme#autocomplete for details on setting up shtab. Please see the argcomplete README for details on where to look to remove its provided completions.
- breaking Move to shtab for tab completion support (thanks @casperdcl)
- Change default max cache age from 1 day to 7 days, can get prior behavior by setting the
TLDR_CACHE_MAX_AGE
environment variable - Install manpage in pypi package
- Add option to print raw markdown (thanks @dadav)
- Support Python 3.10
- breaking Drop support for Python 3.5 (thanks @nebnola)
- Allow overriding system language using
TLDR_LANGUAGE
environment variable (thanks @nebnola)
- Improve wording of missing page error message (thanks @CleanMachine1)
- Fallback to using linux as platform if no pages folder found for current platform
- Get remote resource only after all cache failed (#151) (thanks @ramwin)
- Set
--help
usage line to match node client (#149)
- Add autocomplete and
--list
command (thanks @wcheang) - Always fall back to English for LANG / LANGUAGE env vars (thanks @columbarius)
- Exit with code
1
when command not found (thanks @samuel-w) - Check that cache directory exists on platform before using it
- breaking Drop support for Python 2 and Python 3.4
- breaking Rename environment variable
TLDR_REMOTE_SOURCE
toTLDR_SOURCE
- breaking Remove ability to print out multiple pages at the same time
- breaking Make
--update
act the same as--download_cache
, remove ability to only update currently cached pages - breaking Remove
--download_cache
flag (redundant to--update
) - breaking Remove printing of tldr page to console width, and remove any ability to paint blank lines (see #98 for more info)
- Verify if colors specified via environment variables are valid, fallback to default if not
- Set
User-Agent
header for urlopen requests - Allow specifying endpoints for pages and cache via environment variables
- Explicitly state support for Python 3.8
- Use default terminal colors instead of always white for printing text
- Catch KeyboardInterrupt exception to display appropriate message
- Add ability to disable SSL inspection
- Add
--version
flag to cli to print out cli version and supported client specification - Move to using
long_description
andlong_description_content_type
to handle markdown README in setup.py - Add support for handling pages in other languages
- Remove symlink script in-favor of entry_points again
- Narrow top-level catch-all exception to only catch urllib exceptions
- Handle using
file://
as remote source for pulling pages - Improve handling of environment variable colors to not be order specific of options
- Update LICENSE to LICENSE.md
- Move to GitHub actions from Travis-CI
- Use flake8 to lint codebase
- Changed
--os
flag to--platform
to conform to client specification - Add windows as available platform to search for for
--platform
option - Add
--render
flag to parse local markdown files - Add
--download_cache
flag to pull down entire TLDR cache - Explicitly state support for Python 3.7
- Print errors to
sys.stderr
and use non-zero exit code
- Use newer raw github path to fetch pages
- Detect windows as current platform from sys.platform
- Fix using http to fetch pages in 0.4.3, use https again
- Fix the cli options always using their default values
- Fix typo in parameter name in function definition
- Add
--source
option to control where to fetch page - Add support for space separated commands, fallback to showing multiple pages if concatenated name does not exist
- Add
--color
option to toggle whether to strip colors or not.
- Use https for fetching pages
- Use symlink over entry points for package installation
- Add description of cache location to README
- Add Python 3.6 to setup.py classifiers
- Check
USE_CACHE
before attempting to load from cache
- Update default colors to match node client (remove blue default background color)
- Add top-level exception handling to catch all thrown exceptions and display generic network message
- Test against Python 3.6
- Add support for setting cache location using
XDG_CACHE_HOME
environment variable for cache location - Move default cache location from
${HOME}/.tldr_cache
to${HOME}/.cache/tldr
(ifXDG_CACHE_HOME
not set)
- Write and read from cache files using binary mode
- Use cache to display page by default before attempting to fetch from network, depending on age
- Add configuration settings to control cache enabled and max page age before fetching via network
- Add
--update
flag to update all previously cached pages
- Update README with information on color configuration
- Add pypi badge to README
- Nest
get_terminal_size()
to prevent namespace pollution - Add ability to cache fetched pages, which are used as fallback if there is network problems
- Add ability to omit background colors when printing
- Use
setuptools_scm
to determine version for client in setup.py
- Fix URL pointing to old location to client in setup.py
- Use setuptools-markdown to parse markdown readme for pypi
- Add missing Python 3.4 and 3.5 classifiers to setup.py
- Add support for parsing and painting user input parameters in tldr pages
- Create basic test suite
- Set-up Travis test pipeline for Python 2.7, 3.3+
- Migrate to tldr-pages organization from rprieto
- Add ability to set display colors via environment variables
- Add basic README
- Replace
os.popen()
with equivalent functions from subprocess module - Add support for client for Windows
- Initial Release