Features: - Spreadsheet-like table with cell navigation (arrow keys) - Formula bar for editing cell values - Click and drag cell selection with Shift+Arrow extend - Column resize by dragging header borders, double-click for best fit - Editable headers via double-click - Command palette (Cmd+P) with 12 commands - Copy/Cut/Paste with CSV, Markdown, and Jira formats - Insert rows/columns above/below/left/right - File drag-and-drop to open CSV files - Native Open/Save dialogs - Go backend for CSV parsing, formatting, and file I/O - Vanilla JS frontend, no frameworks Co-authored-by: Shelley <shelley@exe.dev>
49 lines
984 B
Go
49 lines
984 B
Go
package main
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"github.com/wailsapp/wails/v2"
|
|
"github.com/wailsapp/wails/v2/pkg/options"
|
|
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
|
|
"github.com/wailsapp/wails/v2/pkg/options/mac"
|
|
)
|
|
|
|
//go:embed all:frontend/dist
|
|
var assets embed.FS
|
|
|
|
func main() {
|
|
app := NewApp()
|
|
cmdRegistry := NewCommandRegistry()
|
|
|
|
err := wails.Run(&options.App{
|
|
Title: "CSV Tool",
|
|
Width: 1200,
|
|
Height: 800,
|
|
AssetServer: &assetserver.Options{
|
|
Assets: assets,
|
|
},
|
|
BackgroundColour: &options.RGBA{R: 255, G: 255, B: 255, A: 255},
|
|
OnStartup: app.startup,
|
|
OnDomReady: app.domReady,
|
|
Bind: []interface{}{
|
|
app,
|
|
cmdRegistry,
|
|
},
|
|
DragAndDrop: &options.DragAndDrop{
|
|
EnableFileDrop: true,
|
|
DisableWebViewDrop: true,
|
|
},
|
|
Mac: &mac.Options{
|
|
TitleBar: mac.TitleBarDefault(),
|
|
Appearance: mac.NSAppearanceNameAqua,
|
|
WebviewIsTransparent: false,
|
|
WindowIsTranslucent: false,
|
|
},
|
|
})
|
|
|
|
if err != nil {
|
|
println("Error:", err.Error())
|
|
}
|
|
}
|