Adding Restaurants Manually
Create a restaurant entry from the Restaurants screen:Fill in the form
Complete the restaurant details:
- Name (required): Restaurant name
- Address: Street address
- City: City name
- Neighborhood: Specific neighborhood or district
- Cuisine: Type of cuisine (e.g., Italian, Thai, Mexican)
- Price Range:
$,$$,$$$, or$$$$
Yelp Autocomplete Integration
When adding restaurants through the visit form or want-to-visit form, toni uses Yelp’s API to suggest and auto-fill restaurant data:View autocomplete suggestions
After 300ms debounce, search results appear:
- Narrow terminals (<110 chars): Dropdown below the field
- Wide terminals (≥110 chars): Sidebar panel on the right
Navigate and select
j/kor arrow keys to navigateenterortabto selectescto close without selecting
Editing Restaurants
Update restaurant information from the detail screen:Editing a restaurant updates it across all visits. Changes are tracked for undo/redo.
Deleting Restaurants
Delete a restaurant and all associated data:- Open the restaurant detail screen (
enterfrom Restaurants list) - Press
dto delete - Confirm the deletion (this removes the restaurant, all visits, and any want-to-visit entries)
- Press
uto undo if needed
Viewing Restaurant Details
The restaurant detail screen shows comprehensive statistics:Basic Information
- Restaurant name
- Address, city, neighborhood
- Cuisine type
- Price range
Visit Statistics
- Total visit count
- Average rating (if ratings provided)
- Date of last visit
- Complete visit history
Visit History Display
The detail screen shows visit history in two formats: Timeline view (for ≤5 visits):Restaurant Database Schema
Restaurants are stored with these fields (frominternal/model/types.go):
Price Range Format
Price ranges follow the standard convention:$: Budget-friendly (under $10 per person)$$: Moderate ($10-25 per person)$$$: Upscale ($25-50 per person)$$$$: Fine dining ($50+ per person)
The price range field accepts only these exact values:
$, $$, $$$, or $$$$. Any other value will cause a validation error.Searching and Filtering
On the Restaurants screen, use table controls to find restaurants:- Sort columns: Press
son any column to cycle sort (none → asc → desc → none) - Filter by value: Select a cell and press
nto filter by that value - Clear filters: Press
Nto clear active filters - Jump to column: Press
/then a number (1-9) to jump to a specific column - Hide columns: Press
cto hide the active column - Show all columns: Press
Cto reveal hidden columns
Restaurant Screen Keybindings
| Key | Action |
|---|---|
a | Add new restaurant |
v | Log visit for selected restaurant |
enter / l | Open restaurant details |
e | Edit restaurant (from detail screen) |
d | Delete restaurant (from detail screen) |
j/k | Navigate up/down |
tab / shift+tab | Next/previous column |
s | Cycle sort on active column |
n | Filter by selected value |
N | Clear filters |
c / C | Hide/show columns |
b/f | Previous/next tab |
h | Back to visits |
w | Go to want-to-visit |
u / ctrl+r | Undo/redo |
FAQ
Can I add a restaurant without visiting it?
Can I add a restaurant without visiting it?
Yes! Add it to your want-to-visit list instead. From the Want to Visit screen, press
a to add a place you haven’t been to yet.What if the same restaurant name exists in multiple cities?
What if the same restaurant name exists in multiple cities?
Toni distinguishes restaurants by name AND city. You can have “Pizzeria” in New York and “Pizzeria” in Chicago as separate entries.
Can I import restaurant data from Yelp automatically?
Can I import restaurant data from Yelp automatically?
Partially. When you use the autocomplete feature in visit/want-to-visit forms, selecting a Yelp result auto-creates the restaurant with full data. There’s no bulk import feature.
How do I see all visits to a specific restaurant?
How do I see all visits to a specific restaurant?
Open the restaurant detail screen (press
enter on the restaurant in the list). The detail view shows complete visit history with dates and ratings.Can I edit the cuisine or price range later?
Can I edit the cuisine or price range later?
Yes. Open the restaurant detail, press
e to edit, and update any fields. Changes apply to the restaurant across all visits.