Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "searchcode"
version = "0.4.3"
version = "0.4.4"
description = "Simple, comprehensive code search."
authors = ["Ritchie Mwewa <rly0nheart@duck.com>"]
license = "GPLv3+"
Expand Down
2 changes: 1 addition & 1 deletion searchcode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from .api import Searchcode

__pkg__ = "searchcode"
__version__ = "0.4.3"
__version__ = "0.4.4"
__author__ = "Ritchie Mwewa"


Expand Down
12 changes: 8 additions & 4 deletions searchcode/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ def licence(
console.print(
License.terms_and_conditions,
justify="center",
style="on #272822", # monokai themed background :)
)
elif warranty:
console.print(
License.warranty,
justify="center",
style="on #272822",
)
else:
click.echo(ctx.get_help())
Expand Down Expand Up @@ -179,7 +177,9 @@ def code(id: int):
if code_data:
status.update("Determining code language")
language = guess_language_all_methods(code=code_data)
syntax = Syntax(code=code_data, lexer=language, line_numbers=True)
syntax = Syntax(
code=code_data, lexer=language, line_numbers=True, theme="dracula"
)
console.print(syntax)


Expand Down Expand Up @@ -228,7 +228,11 @@ def extract_code_string_with_linenumbers(lines_dict: t.Dict[str, str]) -> str:
)

syntax = Syntax(
code=code_string, lexer=language, word_wrap=False, indent_guides=True
code=code_string,
lexer=language,
word_wrap=False,
indent_guides=True,
theme="dracula",
)

panel = Panel(
Expand Down