From b399c5546cc0820e4f00d632efbe7dd591bd0f9b Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Tue, 18 Mar 2025 09:59:44 +0300 Subject: [PATCH] [+] update pr34 1. update katerc; 2. add mime.types to few some source code as plain text in firefox; 3. update .whl release for pr34; 4. update commands_typed/typing.py; --- Makefile | 1 + deps/com.github.aiortc.aiortc | 2 +- deps/online.fxreader.nartes.books | 2 +- dotfiles/.config/katerc | 35 +++++++++++++++---- dotfiles/.mime.types | 2 ++ .../fxreader/pr34/commands_typed/typing.py | 27 ++++++++++++++ python/pyproject.toml | 2 +- ...ne_fxreader_pr34-0.1.4.18-py3-none-any.whl | 3 ++ 8 files changed, 64 insertions(+), 10 deletions(-) create mode 100644 dotfiles/.mime.types create mode 100644 python/online/fxreader/pr34/commands_typed/typing.py create mode 100644 releases/whl/online_fxreader_pr34-0.1.4.18-py3-none-any.whl diff --git a/Makefile b/Makefile index e43de39..d853aab 100644 --- a/Makefile +++ b/Makefile @@ -84,6 +84,7 @@ dotfiles_put: dotfiles_fetch: commands install -f -p ~ -s ~/.config/katerc -t dotfiles + commands install -f -p ~ -s ~/.mime.types -t dotfiles commands install -f -p ~ -s ~/.config/Code\ -\ OSS/User/keybindings.json -t dotfiles commands install -f -p ~ -s ~/.config/Code\ -\ OSS/User/settings.json -t dotfiles diff --git a/deps/com.github.aiortc.aiortc b/deps/com.github.aiortc.aiortc index adef10a..2f4edcc 160000 --- a/deps/com.github.aiortc.aiortc +++ b/deps/com.github.aiortc.aiortc @@ -1 +1 @@ -Subproject commit adef10a8c41f5c550622879370a40f8a9e545574 +Subproject commit 2f4edccebb7c61b2d3ba390dabdb1ac0ef54ec20 diff --git a/deps/online.fxreader.nartes.books b/deps/online.fxreader.nartes.books index 41006e6..f2366f3 160000 --- a/deps/online.fxreader.nartes.books +++ b/deps/online.fxreader.nartes.books @@ -1 +1 @@ -Subproject commit 41006e6e73c710c0b78d1fbb37b149579dad34f0 +Subproject commit f2366f328fb8129fa6ae26d00b421025d2f090c7 diff --git a/dotfiles/.config/katerc b/dotfiles/.config/katerc index c15dedd..f4d4e93 100644 --- a/dotfiles/.config/katerc +++ b/dotfiles/.config/katerc @@ -35,10 +35,10 @@ Restore Window Configuration=true SDI Mode=false Save Meta Infos=false Session Manager Sort Column=0 -Session Manager Sort Order=0 +Session Manager Sort Order=1 Show Full Path in Title=true Show Menu Bar=true -Show Status Bar=false +Show Status Bar=true Show Symbol In Navigation Bar=true Show Tab Bar=true Show Tabs Close Button=true @@ -92,7 +92,7 @@ Swap Directory= Swap File Mode=1 Swap Sync Interval=15 Tab Handling=2 -Tab Width=4 +Tab Width=2 Trailing Marker Size=1 Use Editor Config=true Word Wrap=false @@ -101,13 +101,13 @@ Word Wrap Column=80 [KTextEditor Renderer] Animate Bracket Matching=false Auto Color Theme Selection=false -Color Theme=Monokai +Color Theme=Monokai2 Line Height Multiplier=1 Show Indentation Lines=false Show Whole Bracket Expression=false Text Font=Terminus,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1 Text Font Features= -Word Wrap Marker=false +Word Wrap Marker=true [KTextEditor View] Allow Mark Menu=true @@ -119,6 +119,7 @@ Backspace Remove Composed Characters=false Bookmark Menu Sorting=0 Bracket Match Preview=true Chars To Enclose Selection=<>(){}[]'" +Cycle Through Bookmarks=true Default Mark Type=1 Dynamic Word Wrap=true Dynamic Word Wrap Align Indent=80 @@ -180,8 +181,17 @@ SetEditor=false [MainWindow] 1366x768 screen: Window-Maximized=true +2 screens: Height=727 +2 screens: Width=679 +2048x1080 screen: Window-Maximized=true ToolBarsMovable=Disabled +[PluginSymbolViewer] +ExpandTree=false +SortSymbols=false +TreeView=false +ViewTypes=false + [Printing][HeaderFooter] FooterBackground=211,211,211 FooterBackgroundEnabled=false @@ -238,10 +248,10 @@ sortRole=0 viewShade=211,190,222 [lspclient] -AllowedServerCommandLines=/usr/bin/pylsp --check-parent-process +AllowedServerCommandLines=/usr/bin/clangd -log=error --background-index --limit-results=500 --completion-style=bundled,/usr/bin/pylsp --check-parent-process AutoHover=true AutoImport=true -BlockedServerCommandLines= +BlockedServerCommandLines=/usr/bin/python -m esbonio CompletionDocumentation=true CompletionParens=true Diagnostics=true @@ -259,3 +269,14 @@ SymbolExpand=true SymbolSort=false SymbolTree=true TypeFormatting=false + +[project] +autoCMake=false +autorepository=git +gitStatusDoubleClick=3 +gitStatusSingleClick=0 +index=false +indexDirectory= +multiProjectCompletion=false +multiProjectGoto=false +restoreProjectsForSessions=false diff --git a/dotfiles/.mime.types b/dotfiles/.mime.types new file mode 100644 index 0000000..3481368 --- /dev/null +++ b/dotfiles/.mime.types @@ -0,0 +1,2 @@ +# https://terminalroot.com/how-to-open-markdown-files-with-md-extension-in-firefox/ +text/plain txt asc text pm el c h cc hh cxx hxx f90 conf log yaml yml diff --git a/python/online/fxreader/pr34/commands_typed/typing.py b/python/online/fxreader/pr34/commands_typed/typing.py new file mode 100644 index 0000000..517898c --- /dev/null +++ b/python/online/fxreader/pr34/commands_typed/typing.py @@ -0,0 +1,27 @@ +# https://github.com/python/typing/issues/59#issuecomment-353878355 +# https://gitea.fxreader.online/fxreader.online/freelance-project-34-marketing-blog/issues/2#issue-25 + +import typing +from typing import Any +from typing_extensions import Protocol +from abc import abstractmethod + +C = typing.TypeVar("C", bound="Comparable") + +class Comparable(Protocol): + @abstractmethod + def __eq__(self, other: Any) -> bool: + pass + + @abstractmethod + def __lt__(self: C, other: C) -> bool: + pass + + def __gt__(self: C, other: C) -> bool: + return (not self < other) and self != other + + def __le__(self: C, other: C) -> bool: + return self < other or self == other + + def __ge__(self: C, other: C) -> bool: + return (not self < other) diff --git a/python/pyproject.toml b/python/pyproject.toml index 7124920..03199ba 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [project] name = 'online.fxreader.pr34' -version = '0.1.4.17' +version = '0.1.4.18' dependencies = [ #"-r requirements.txt", diff --git a/releases/whl/online_fxreader_pr34-0.1.4.18-py3-none-any.whl b/releases/whl/online_fxreader_pr34-0.1.4.18-py3-none-any.whl new file mode 100644 index 0000000..810b96e --- /dev/null +++ b/releases/whl/online_fxreader_pr34-0.1.4.18-py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d4af5f275b4744e7aaa7f94ba2cfa6d6c6dde4df716d3961dc27d48007ba8be +size 69215