Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanCarloMachado committed Jun 16, 2024
1 parent 4e5a936 commit 222e67d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 60 deletions.
6 changes: 2 additions & 4 deletions python_search/entry_runner.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from __future__ import annotations

import re
import os
from typing import List
Expand All @@ -10,9 +9,8 @@
from python_search.interpreter.interpreter_matcher import InterpreterMatcher
from python_search.logger import setup_run_key_logger
from python_search.error.exception import notify_exception
from python_search.search.search_ui.serialized_entry import (
decode_serialized_data_from_entry_text,
)
from python_search.search.search_ui.serialized_entry import decode_serialized_data_from_entry_text



class EntryRunner:
Expand Down
Empty file removed python_search/privacy/__init__.py
Empty file.
40 changes: 0 additions & 40 deletions python_search/privacy/privacy_detector.py

This file was deleted.

12 changes: 0 additions & 12 deletions python_search/search/entries_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ def load_entries_as_json(self):

return json.dumps(result)

@staticmethod
def load_privacy_neutral_only() -> List[Entry]:
from python_search.privacy.privacy_detector import PrivacyDetector

detector = PrivacyDetector()

for i in EntriesLoader.load_all_entries():
if not detector.has_sentitive_content(
i.get_content_str()
) and not detector.has_sentitive_content(i.key):
yield i

@staticmethod
def load_all_entries() -> List[Entry]:
"""
Expand Down
2 changes: 1 addition & 1 deletion python_search/search/search_ui/kitty.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class KittySearch:
Renders the search ui using fzf + termite terminal
"""

_DEFAULT_WINDOW_SIZE = (990, 170)
_DEFAULT_WINDOW_SIZE = (800, 170)

_configuration = None

Expand Down
5 changes: 2 additions & 3 deletions python_search/search/search_ui/terminal_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@


class SearchTerminalUi:
MAX_LINE_SIZE = 80
MAX_KEY_SIZE = 45
MAX_CONTENT_SIZE = 45
MAX_KEY_SIZE = 35
MAX_CONTENT_SIZE = 35
NUMBER_ENTRIES_TO_RETURN = 6

_documents_future = None
Expand Down

0 comments on commit 222e67d

Please sign in to comment.