Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update copy in the datasource screen to address issue #78 #95

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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 components/main_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def main_menu(context: ViewContext):
terminal = context.terminal
while True:
exit_instruction = "⟪ Hit Ctrl+C at any time to exit a menu ⟫"
exit_instruction = "⟪ Hit Ctrl+C at any time to go back ⟫"
with terminal.nest(draw_box("CIB Mango Tree") + "\n" + exit_instruction + "\n"):
action = prompts.list_input(
"What would you like to do?",
Expand Down
4 changes: 3 additions & 1 deletion components/new_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def new_project(context: ViewContext):
terminal = context.terminal

with terminal.nest(draw_box("1. Data Source", padding_lines=0)):
print("Select a file for your dataset")
print(
"Select a .csv for your dataset\n\nText in [brackets] identifies the folder\n\n"
)
selected_file = prompts.file_selector(
"Select a file", state=app.file_selector_state
)
Expand Down
2 changes: 1 addition & 1 deletion terminal_tools/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def is_dir(entry: str):
while True:
print(f"current path: {current_path}")
choices = [
("[..]", ".."),
("[..]Exit folder/move to higher-level directory", ".."),
*(
(f"[{entry}]" if is_dir(entry) else entry, entry)
for entry in sorted(os.listdir(current_path))
Expand Down