Skip to content

feat: vimmode, fuzzy finder and editor config support - #2

Merged
nathabonfim59 merged 22 commits into
mainfrom
monaco.main
Dec 8, 2024
Merged

feat: vimmode, fuzzy finder and editor config support#2
nathabonfim59 merged 22 commits into
mainfrom
monaco.main

Conversation

@nathabonfim59

Copy link
Copy Markdown
Member

This pull request includes significant changes to the app.go file to initialize services and add new methods for handling project and file operations, the addition of a new main.go entry point, database schema creation, and updates to the frontend to integrate new functionalities and dependencies.

Backend Changes:

  • app.go: Added initialization for ProjectsService, FileService, and ConfigService in the App struct. New methods for handling project and file operations, including GetRecentProjects, OpenProjectFolder, AddProject, GetProjectFiles, LoadDirectoryContents, GetFileContent, SaveFile, SearchFiles, GetEditorConfig, and OpenConfigFile were added. [1] [2]

  • cmd/edit4i/main.go: Added a new entry point for the application with error handling for command execution.

  • db/migrations/0001_initial_schema.sql: Created the initial database schema for the projects table with indexes and migration scripts.

  • db/migrations/embed.go: Embedded the SQL migration files into the Go binary using the embed package.

Frontend Changes:

feat(frontend/welcome): welcome screen
wip(frontend/welcome): support for opening folders

wip(frontend/welcome): refactor runtime location

wip(backend/projects): initial schema for projects

feat(backend/projects): integrate recent projects from db

feat(projects): last opened in projects

wip(frontend): unify types and reorganization

wip(frontend/types): more type reorganization

wip(frontend/commandpallete): temp disable cmd pallete
feat(frontend/editor): insolate FileTree in its own component

wip(frontend/filetree):  get files from fs

feat(frontend/filetree): show folders first and then files (sorted)

feat(frontend/monaco): open from filetree

fix(frontend/monaco): general cleanup

fix(frontend/editor): persists open project across reloads

fix(frontend/welcome): truncate filepath
fix(frontend/explorerpane): double click to collapse all
wip(frontend/keyboard): multiple contexts
wip(filesearch): respect .gitignore

fix(filesearch): race donditions when deleting from input

fix(filesearch): handle empty resultset in search

fix(filesearch): open selected files

wip(frontend): handle search when typing too fast

wip(fuzzysearch): spaces support - broken

wip(fuzzysearch): root dir

fix(fuzzysearch): subdirectory match

feat(fuzzysearch): support for spaces in query
@nathabonfim59
nathabonfim59 requested a review from Copilot December 8, 2024 17:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 47 out of 63 changed files in this pull request and generated 1 suggestion.

Files not reviewed (16)
  • db/migrations/0001_initial_schema.sql: Language not supported
  • frontend/package-lock.json: Language not supported
  • frontend/package.json: Language not supported
  • frontend/package.json.md5: Language not supported
  • frontend/src/App.svelte: Language not supported
  • frontend/src/lib/components/CommandPalette.svelte: Language not supported
  • frontend/src/lib/components/FileFinder.svelte: Language not supported
  • frontend/src/lib/components/FileTree.svelte: Language not supported
  • frontend/src/lib/components/KeyboardManager.svelte: Language not supported
  • frontend/src/lib/components/Modal.svelte: Language not supported
  • frontend/src/lib/components/RecentProjects.svelte: Language not supported
  • frontend/src/lib/editor/Editor.svelte: Language not supported
  • frontend/src/lib/editor/FileTree.svelte: Language not supported
  • frontend/src/lib/editor/FileTreeItem.svelte: Language not supported
  • frontend/src/lib/editor/LeftSidebar.svelte: Language not supported
  • frontend/src/lib/editor/RightSidebar.svelte: Language not supported
Comments skipped due to low confidence (1)

app.go:67

  • The error message should be more descriptive. Consider changing it to 'Failed to open directory dialog: %v'.
return "", fmt.Errorf("error opening directory dialog: %v", err)

Comment thread app.go Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@nathabonfim59
nathabonfim59 merged commit b06178b into main Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants