From 90b4c65e2b9dfef37f0e78035fb1038993f65473 Mon Sep 17 00:00:00 2001 From: Ritchie Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Sat, 10 May 2025 08:44:41 +0200 Subject: [PATCH 1/2] Remove background from license information (CLI) --- searchcode/cli.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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( From e8e7f547127f9b48594a264d9a9fa0cd11f77121 Mon Sep 17 00:00:00 2001 From: Ritchie Mwewa <74001397+rly0nheart@users.noreply.github.com> Date: Sat, 10 May 2025 08:46:25 +0200 Subject: [PATCH 2/2] Remove background from license information (CLI) --- pyproject.toml | 2 +- searchcode/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"