Skip to content

Commit 5aa22ee

Browse files
committed
version bump
1 parent aaa3aa2 commit 5aa22ee

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "toolong"
3-
version = "1.4.0"
3+
version = "1.5.0"
44
description = "A terminal log file viewer / tailer / analyzer"
55
authors = ["Will McGugan <[email protected]>"]
66
license = "MIT"

src/toolong/line_panel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def compose(self) -> ComposeResult:
4949
if "\\n" in self.text.plain:
5050
lines = self.text.split("\\n")
5151
text = Text("\n", no_wrap=True).join(lines)
52-
yield Label(text, expand=True, classes="nl")
52+
yield Label(text, classes="nl")
5353
else:
5454
yield Label(self.text)
5555

src/toolong/log_file.py

-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def get_create_time(self) -> datetime | None:
7474
return timestamp
7575

7676
def open(self, exit_event: Event) -> bool:
77-
7877
# Check for compressed files
7978
_, encoding = mimetypes.guess_type(self.path.name, strict=False)
8079

@@ -151,7 +150,6 @@ def get_raw(self, start: int, end: int) -> bytes:
151150
return os.pread(self.fileno, end - start, start)
152151

153152
def get_line(self, start: int, end: int) -> str:
154-
155153
return (
156154
self.get_raw(start, end)
157155
.decode("utf-8", errors="replace")

src/toolong/log_lines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class LogLines(ScrollView, inherit_bindings=False):
131131
BINDINGS = [
132132
Binding("up,w,k", "scroll_up", "Scroll Up", show=False),
133133
Binding("down,s,j", "scroll_down", "Scroll Down", show=False),
134-
Binding("left,h", "scroll_left", "Scroll Up", show=False),
134+
Binding("left,h", "scroll_left", "Scroll Left", show=False),
135135
Binding("right,l", "scroll_right", "Scroll Right", show=False),
136136
Binding("home,G", "scroll_home", "Scroll Home", show=False),
137137
Binding("end,g", "scroll_end", "Scroll End", show=False),

src/toolong/selector_watcher.py

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def add(
3232

3333
def run(self) -> None:
3434
"""Thread runner."""
35-
3635
chunk_size = 64 * 1024
3736
scan_chunk = self.scan_chunk
3837

0 commit comments

Comments
 (0)