diff --git a/pyproject.toml b/pyproject.toml index 575585b..f0ca4db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "searchcode" -version = "0.4.3" +version = "0.4.4" description = "Simple, comprehensive code search." authors = ["Ritchie Mwewa "] license = "GPLv3+" diff --git a/searchcode/__init__.py b/searchcode/__init__.py index cdadd72..d4c7500 100644 --- a/searchcode/__init__.py +++ b/searchcode/__init__.py @@ -20,7 +20,7 @@ from .api import Searchcode __pkg__ = "searchcode" -__version__ = "0.4.3" +__version__ = "0.4.4" __author__ = "Ritchie Mwewa" diff --git a/searchcode/cli.py b/searchcode/cli.py index 0f1e464..cd32c17 100644 --- a/searchcode/cli.py +++ b/searchcode/cli.py @@ -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()) @@ -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) @@ -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(