Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize document_cli_flags.py working on issue #81 #103

Open
wants to merge 595 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
595 commits
Select commit Hold shift + click to select a range
ce78539
Fix PIL image background sanitization
joouha Nov 23, 2023
421281a
Keep track of cursor position in console after showing outputs
joouha Nov 23, 2023
1359a16
Update copyright year
joouha Nov 24, 2023
69eed52
Add microseconds to log file formatter
joouha Nov 24, 2023
da7a85d
Remove duplicated log setup call
joouha Nov 24, 2023
3c4e627
Set scroll offsets on kernel inputs
joouha Dec 19, 2023
64033ca
Disable a debug log statement
joouha Dec 19, 2023
30401ff
Type linting
joouha Dec 19, 2023
fb6d957
Disable automatic linting of ansi text
joouha Dec 19, 2023
f6f796c
Fix bug with moving cursor between cells
joouha Dec 19, 2023
bdf048f
Update changelog
joouha Dec 19, 2023
ae19e82
Cache mouse input parsing
joouha Dec 19, 2023
e901496
Formatting & spelling fixed
joouha Dec 19, 2023
f46ceae
Throttle mouse input events
joouha Dec 19, 2023
303cb98
Use metaclass for better Datum instance caching
joouha Dec 19, 2023
4c35ab9
Fix issue preventing Datum conversion caching from working
joouha Dec 19, 2023
1e61cf2
Prevent unnecesary conversion calls when calculating Datum size
joouha Dec 19, 2023
af67a8a
Use original HTML resource URIs to load resources
joouha Dec 19, 2023
d630072
Optimise child drawing in ScrollingContainer
joouha Dec 19, 2023
b4b8d34
Add hashbangs to scripts
joouha Dec 21, 2023
a8e4c78
Add `run_notebook` script to repo
joouha Dec 21, 2023
1682eeb
Improve scrolling responsiveness on large cells
joouha Dec 21, 2023
fea1c33
Typing fixes
joouha Dec 21, 2023
2e56385
Fix bug with input_box height in console
joouha Dec 21, 2023
d1b9a55
Hightlight input line number only if there are multiple lines
joouha Dec 21, 2023
5348a39
Print all of scrolled inputs in console
joouha Dec 22, 2023
ea2d5e3
Fix missing styles in scrolling container children
joouha Dec 26, 2023
cf8a6da
Optimize `ScrollingContainer` child rerendering
joouha Dec 26, 2023
843292d
Reset sub-screen on ScrollingContain child refresh
joouha Dec 29, 2023
a5820b4
Fix bug in form global mouse capture
joouha Dec 29, 2023
de9d56a
Revert buggy unordered zip when loading assets
joouha Dec 29, 2023
167cda2
Prevent window contents overflowing
joouha Dec 29, 2023
5448081
Update required sixelcrop version
joouha Dec 29, 2023
c8882bf
Update to latest fsspec & upath
joouha Jan 3, 2024
c7ca281
Formatting tidyup
joouha Jan 3, 2024
343c0cf
Fix minor typing issue with `apply_style`
joouha Jan 3, 2024
17dd624
Use private color registers for sixel graphics
joouha Jan 3, 2024
f19afda
Do not highlight brackets if kernel input not focused
joouha Jan 3, 2024
f318df3
Update to latest sixelcrop
joouha Jan 6, 2024
e482b03
Add `ziamath` LaTex to SVG convertor
joouha Jan 6, 2024
2a79b1c
Use terminal colors for default datum fg/bg
joouha Jan 6, 2024
ad3a803
Allow terminal graphics to be aligned horizontally
joouha Jan 6, 2024
ebfd0bb
Fix issue when terminal graphics have zero height
joouha Jan 6, 2024
398c468
Add rendered LaTeX math in markdown
joouha Jan 6, 2024
1c2b15f
Add docstrings
joouha Jan 7, 2024
3c8dc59
Clean up unused imports
joouha Jan 7, 2024
685f3e3
Cache `Display.preferred_width` calculation
joouha Jan 7, 2024
03a08d2
Prevent kitty graphic stretching
joouha Jan 7, 2024
7834897
Fix issue with chafa.py image tearing
joouha Jan 8, 2024
54e2655
Fix error when formatting invalid character with black
joouha Jan 9, 2024
44db67a
Add ruff code formatter
joouha Jan 9, 2024
86a7460
Update `chafa.py` dependency
joouha Jan 9, 2024
8aeae6d
Rename `ziamath` conversion function
joouha Jan 9, 2024
a122fb9
Improve `imagemagick` detection
joouha Jan 9, 2024
7e1970d
Use datum flatten imagemagick conversions
joouha Jan 9, 2024
ff268a3
Move `graphics` module
joouha Jan 9, 2024
643cef9
Use cached conversions within datum conversion chain
joouha Jan 9, 2024
8e576e5
Pre-render graphics
joouha Jan 9, 2024
d6cd405
Exclude ruff from type checking
joouha Jan 9, 2024
79295b6
Revert from `chafa.py` to `timg`
joouha Jan 9, 2024
e39cf33
Fix ANSI conversion backspace issue
joouha Jan 9, 2024
b1df851
Explicitly disable autowrap on exit for kitty
joouha Jan 9, 2024
f3984d4
Pad kitty graphics to prevent stretching
joouha Jan 9, 2024
734c920
Reinstate default size for unsized kitty graphics
joouha Jan 10, 2024
be25c3f
Mimimize size of LaTeX graphics in HTML to fix placement issue
joouha Jan 10, 2024
7ad4c3f
Fixes to `matplolib` LaTeX renderer
joouha Jan 10, 2024
db0b419
Fixes to `ziamath` LaTeX renderer
joouha Jan 10, 2024
3bd3f24
Implement progressive loading in webview
joouha Jan 10, 2024
96b55ec
Update `have_formatter` filter
joouha Jan 10, 2024
6c9b52d
Readd formatter filter check when formatting
joouha Jan 10, 2024
e907891
Change syntax for Python 3.8 compatibility
joouha Jan 10, 2024
505fa56
Update changelog
joouha Jan 11, 2024
1789794
Add screen multipler passthrough
joouha Jan 11, 2024
121694f
Fix PageUp / PageDown keybindings
joouha Jan 11, 2024
1355f58
Supress STDERR from ruff formatter
joouha Jan 12, 2024
241420b
Use hidden terminal style for non-visible HTML
joouha Jan 12, 2024
1a70f24
Implement CSS text-decoration blink
joouha Jan 12, 2024
0d1e891
Remove non-breaking space style
joouha Jan 12, 2024
3e340da
Trigger redraw on theme update
joouha Jan 12, 2024
5e57801
Test automatic highlight color selection
joouha Jan 12, 2024
fa25b90
Only reset HTML soup if deferring remote assets
joouha Jan 12, 2024
94b33de
Focus the webview when a web tab is focused
joouha Jan 13, 2024
6280bfa
Turn off deferred asset loading in webview for now
joouha Jan 13, 2024
faeb800
Stop top bar disappearing in notebook app
joouha Jan 13, 2024
965064a
Remove blank line at top of cleared console
joouha Jan 15, 2024
54dc78d
Add extra params to `Datum` conversion cache key
joouha Jan 15, 2024
f797d83
Fix CSS grid with no defined columns
joouha Jan 15, 2024
aad2173
Limit `ScrollingContainer` index
joouha Jan 15, 2024
db606fd
Handle error on toggle buttons with no options
joouha Jan 15, 2024
08e47c2
Update screenshot in readme
joouha Jan 15, 2024
be896c6
Update changelog
joouha Jan 15, 2024
af6400d
Release v2.7.0
joouha Jan 15, 2024
6f9d8f3
Correct release date in change-log
joouha Jan 15, 2024
ef86e1b
Fix scrolling issue in Select widgets
joouha Jan 16, 2024
f119653
Ensure all visuals update on color scheme change
joouha Jan 16, 2024
b6b828d
Fix typo
joouha Jan 18, 2024
50f2fbb
Automatic mouse support in console
joouha Jan 18, 2024
ce3d6d7
Handle missing file in text editor
joouha Jan 18, 2024
7daed59
Allow redirecting stdout log to a file
joouha Jan 18, 2024
689631e
Immediate notification of kernel death
joouha Jan 18, 2024
49a2c4e
Add `force_graphics` config option
joouha Jan 18, 2024
a1d7c71
Update default logging in `euporie-hub` to prevent flickering
joouha Jan 18, 2024
be8d933
Prompt to save dirty text files
joouha Jan 19, 2024
987efcb
Use clickable margin for kernel inputs
joouha Jan 19, 2024
097c76a
Exit on sigint
joouha Jan 19, 2024
588d2ea
Clean up console keybindings
joouha Jan 19, 2024
0a64653
Skip kernel in in preview if not running notebook
joouha Jan 19, 2024
42170f9
Clean up console keybindings a bit more
joouha Jan 19, 2024
dc4d18b
Use `hatch fmt` for formatting & linting
joouha Jan 19, 2024
3b3a783
Fix typos
joouha Jan 19, 2024
a3f1942
Linting fixes
joouha Jan 19, 2024
73b27fd
Stop monitoring the kernel on shutdown
joouha Jan 19, 2024
1119ad3
Fix hatch type checking environment
joouha Jan 20, 2024
f63970d
Typing, linting & spelling
joouha Jan 20, 2024
02643ad
Fix text wrapping for formatted log tracebacks
joouha Jan 20, 2024
620ce11
Simplify `ScrollingContainer` using `CachedContainer`
joouha Jan 20, 2024
9fa99d8
Fix line wrapping (fixes tables)
joouha Jan 29, 2024
f85e681
Retain fg & bg colors during conversion chain
joouha Feb 8, 2024
2b19e17
Fix `buffer_is_markdown` filter
joouha Jan 28, 2024
88684db
Fix async kernel history load timing issue
joouha Feb 8, 2024
fe3c856
Fix typo
joouha Feb 8, 2024
36b60cf
Do not display typed escape key in inputs
joouha Feb 8, 2024
16223fe
Modify `__main__` for Python 3.12 compatibility
joouha Feb 8, 2024
9bd49f7
Fix slowness in `ScrollingContainer`
joouha Feb 8, 2024
97661a7
Typing fixes for main entry-point
joouha Feb 9, 2024
0886f9d
Move filters used in conversion to filters module
joouha Feb 9, 2024
fc5a97f
Remove unused variable assignment
joouha Feb 9, 2024
a7bea78
Improve menu accessibility
joouha Feb 9, 2024
1810654
Do not load clipboard until app start
joouha Feb 9, 2024
78a25ba
Do not stretch images with chafa
joouha Feb 9, 2024
afab91f
Do not add trailing newline when wrapping formatted text
joouha Feb 9, 2024
44092ca
Fix typo
joouha Feb 9, 2024
3dd08f9
Typing fixes for `ScrollingContainer`
joouha Feb 9, 2024
2714e21
Add default ansipurple color
joouha Feb 9, 2024
5532637
Make cell output mime selectable
joouha Feb 9, 2024
09488d0
Single lint
joouha Feb 9, 2024
c1fcadf
Minor typing fix
joouha Feb 9, 2024
6d70e74
Reorganize settings menu slightly
joouha Feb 9, 2024
ea5123b
Add `UntitledPath` implementation
joouha Feb 9, 2024
6a03d0d
Implement untitled path handling
joouha Feb 9, 2024
72aab68
Use untitled path in console
joouha Feb 9, 2024
876883d
Add dummy controls
joouha Feb 9, 2024
2564888
Hide input overflow margin if lines wrapping enabled
joouha Feb 9, 2024
dfbe694
Accumulate status bar fields
joouha Feb 9, 2024
bf46047
Update notebook app default statusbar message visibility
joouha Feb 9, 2024
65b3e12
Implement multiple inspection methods
joouha Feb 9, 2024
1f1a655
Implement diagnostics in inputs
joouha Feb 9, 2024
793671c
Show current diagnostic in statusbar
joouha Feb 9, 2024
1e89b18
Implement diagnostic processor
joouha Feb 9, 2024
4663a68
Use diagnostic processor in kernel inputs
joouha Feb 9, 2024
9145f82
Show diagnostics highlights in line number margin
joouha Feb 9, 2024
ae93479
Style diagnostic highlights
joouha Feb 9, 2024
d9631db
Fix `get_app` import in kernel input commands
joouha Feb 9, 2024
189403c
Remove inspection command from console app
joouha Feb 9, 2024
332808e
Fix typo
joouha Feb 9, 2024
f052510
Add diagnostics reports to tabs & cells
joouha Feb 9, 2024
b6cd303
Update input formatting, inspection & completion
joouha Feb 9, 2024
8192402
Update formatter settings in menu
joouha Feb 9, 2024
25ea9d0
Refactor source of `KernelInput` language
joouha Feb 9, 2024
e9ae880
Use HSplit in edit tab
joouha Feb 9, 2024
9d29e06
Show cursor position on right in text editor status bar
joouha Feb 9, 2024
a2754ce
Update pager border style
joouha Feb 9, 2024
ecbb09f
Move autoinspection trigger to `KernelInput`
joouha Feb 9, 2024
e663e55
Pass cell formatters to `KernelInput`
joouha Feb 9, 2024
3e0c856
Inherit `BaseTab` path handling in Notebook tab
joouha Feb 9, 2024
6459ded
Add border margin implementation
joouha Feb 9, 2024
ed7eb24
Clean up unused imports
joouha Feb 9, 2024
0517e0e
Fix reformatting in console
joouha Feb 9, 2024
d9064c5
Move cursor to start of buffer on console execution
joouha Feb 9, 2024
06268fa
Clean up obsolete console input scrollbar
joouha Feb 9, 2024
2792e2e
Refresh console app on input refresh
joouha Feb 9, 2024
01f6b35
Fix autoinspection in console app
joouha Feb 9, 2024
2ecfabb
Fix kernel input parameters for console
joouha Feb 9, 2024
78504fc
Clean up unused inspect function from console
joouha Feb 9, 2024
6570a68
Clean up unused format function from console
joouha Feb 9, 2024
9b2bf79
Remove newline
joouha Feb 9, 2024
1bb1c2b
Fixup app reference in cell border function
joouha Feb 9, 2024
eedab3d
Set cell exection count to int
joouha Feb 9, 2024
c7293f8
Fixup app reference in cell refresh function
joouha Feb 9, 2024
eaf1907
Add missing import for `CliFormatters`
joouha Feb 9, 2024
1dc2efe
Add various events to `KernelTab`s
joouha Feb 9, 2024
b7a0e87
Implement LSP client
joouha Feb 9, 2024
a6b923d
Implement LSP completer
joouha Feb 9, 2024
66ae626
Add additional completion type style
joouha Feb 9, 2024
471cd29
Implement LSP formatter
joouha Feb 9, 2024
5af61a6
Add known LSP server list generation script
joouha Feb 9, 2024
6d27cc6
Fixup imports
joouha Feb 9, 2024
66f333b
Implement per-app LSP client instances
joouha Feb 9, 2024
248339c
Shutdown LSPs on application exit
joouha Feb 9, 2024
488540c
Add LSP support to base `KernelTab`
joouha Feb 9, 2024
7b0701a
Add overrides for LSP support in Console tab
joouha Feb 9, 2024
a273aab
Add overrides for LSP support in `Notebook` tab
joouha Feb 9, 2024
063a263
Add LSP support for notebook cells
joouha Feb 9, 2024
44bf29c
Configure typos-lsp
joouha Feb 9, 2024
4331d0f
Switch back from `contextlib.supress` to `try ... except`
joouha Feb 9, 2024
6f8c814
Clean up unused code
joouha Feb 9, 2024
1594217
Update changelog
joouha Feb 9, 2024
c7b96d9
Only show notebook rendering status once pre-rendering starts
joouha Feb 10, 2024
2a0ea85
Start `ScrollingContaer` prerendering after initial draw
joouha Feb 10, 2024
d16e794
Add setting to enable/disable LSP
joouha Feb 12, 2024
ae56f61
Add setting to configure LSP servers
joouha Feb 12, 2024
19df0b1
Remove non-functional kitty workaround
joouha Feb 12, 2024
52640be
Add ipykernel environment
joouha Feb 12, 2024
a87d26c
Move fotmat setting to `KernelInput`
joouha Feb 12, 2024
18f083d
Clean up LSP settings
joouha Feb 12, 2024
168f810
Re-organize notebook app menu
joouha Feb 12, 2024
3d21ba4
Update copyright year
joouha Feb 12, 2024
9acda97
Rename `search_bar` module to `search`
joouha Feb 12, 2024
495cfd8
Rename `status_bar` module to `status`
joouha Feb 12, 2024
450400f
Remove ignore for fixed mypy issue
joouha Feb 12, 2024
b1eb054
Re-enable menu descriptions in status-bar
joouha Feb 12, 2024
5efac02
Add and update menu descriptions
joouha Feb 12, 2024
719d944
Fix notebook app tab focusing
joouha Feb 12, 2024
73dad38
Focus scrolling container when clicking empty space
joouha Feb 12, 2024
b28ea79
Remove unneeded type:ignore comment
joouha Feb 12, 2024
5cc3de9
Add menu separator
joouha Feb 12, 2024
18ca1d8
Fix mis-named attribute
joouha Feb 15, 2024
45742a4
Fix LSP notebook cell delete message format
joouha Feb 15, 2024
b0b39ff
Prevent LSP loading in preview app
joouha Feb 15, 2024
d02a853
Make LSP message parameters optional
joouha Feb 15, 2024
0c37d81
Move LSP loading trigger into `kernel_init` method
joouha Feb 15, 2024
6a43440
Update notebook cell paths to use colons
joouha Feb 16, 2024
81eec01
Additional use of weakrefs in cell widget
joouha Feb 16, 2024
4ca1dcb
Add LSP cell open and close events
joouha Feb 16, 2024
6fb0f69
Do not existing cells to LSP as new cells
joouha Feb 17, 2024
f865268
Only show one diagnostic message in statusbar
joouha Feb 17, 2024
5d80b8f
Strip trailing newlines from CLI formatters
joouha Feb 18, 2024
9cfb8fe
Set default custom fg & bg colors
joouha Feb 18, 2024
834f012
Fix menu focus issue
joouha Feb 18, 2024
0d9e620
Update `universal_pathlib`
joouha Feb 19, 2024
0953167
Update precommit hooks
joouha Feb 19, 2024
74fe8af
Clean up unused code
joouha Feb 19, 2024
47e0203
Update cell widget docstring
joouha Feb 19, 2024
3d2f2b5
Use new `Upath.joinuri` method
joouha Feb 19, 2024
7d235ba
Fix `UntitledPath` implementation
joouha Feb 19, 2024
b2173fe
Remove debug logging statement
joouha Feb 19, 2024
a89841b
Add special key-bindings for xterm
joouha Feb 19, 2024
155fe20
Fix numlock+Enter on kitty
joouha Feb 19, 2024
fd2de94
Use ordered set for tab file_extensions
joouha Feb 20, 2024
a41b3b5
Fix saving notebook with no file extension
joouha Feb 20, 2024
6803d37
Fix cell border visibility logic
joouha Feb 20, 2024
e413a43
Simplify `UnititledPath` implementation
joouha Feb 20, 2024
0ba8bd4
Correct typo in docstring
joouha Feb 20, 2024
0766f0d
Typing fixes to placate mypy
joouha Feb 20, 2024
b86bb2e
Update changelog
joouha Mar 1, 2024
2919273
Release v2.8.0
joouha Mar 1, 2024
fee07f5
Fix Numlock + Tab in kitty
joouha Mar 1, 2024
027e0a9
Fix pager mime selection issue
joouha Mar 1, 2024
2d1cc38
Release v2.8.1
joouha Mar 1, 2024
04d9595
Optimize document_cli_flags.py
YashRL Mar 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/media
/examples

.python-version

Expand Down
32 changes: 13 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,58 +8,52 @@ repos:
hooks:
- id: fix-byte-order-marker
name: Fix Byte Order Marker
entry: hatch run check:fix-byte-order-marker
entry: hatch run hatch-static-analysis:fix-byte-order-marker
language: system
types: [text]
- id: check-added-large-files
name: Check for added large files
entry: hatch run check:check-added-large-files
entry: hatch run hatch-static-analysis:check-added-large-files
language: system
- id: check-toml
name: Check Toml
entry: hatch run check:check-toml
entry: hatch run hatch-static-analysis:check-toml
language: system
types: [toml]
- id: check-yaml
name: Check Yaml
entry: hatch run check:check-yaml
entry: hatch run hatch-static-analysis:check-yaml
language: system
types: [yaml]
- id: trailing-whitespace
name: Trim Trailing Whitespace
entry: hatch run check:trailing-whitespace-fixer
entry: hatch run hatch-static-analysis:trailing-whitespace-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: end-of-file-fixer
name: Fix End of Files
entry: hatch run check:end-of-file-fixer
entry: hatch run hatch-static-analysis:end-of-file-fixer
language: system
types: [text]
stages: [commit, push, manual]
- id: ssort
name: ssort
entry: hatch run check:ssort
- id: ruff
name: ruff check
entry: hatch run hatch-static-analysis:ruff check
args: ["--fix"]
language: system
types: [python]
require_serial: true
- id: black
name: black
entry: hatch run check:black
language: system
types: [python]
require_serial: true
- id: ruff
name: ruff
entry: hatch run check:ruff
args: ["--fix"]
name: ruff format
entry: hatch run hatch-static-analysis:ruff format
language: system
types: [python]
require_serial: true
- id: codespell
name: codespell
description: Checks for common misspellings in text files.
entry: hatch run check:codespell
entry: hatch run hatch-static-analysis:codespell
language: system
types: [text]
- id: tests
Expand Down
Loading