Skip to content
Closed
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
38 changes: 38 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Check

on:
pull_request:

jobs:
test:
strategy:
fail-fast: false
matrix:
runner:
- ubuntu-22.04
- macos-latest
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4

- name: Install system dependencies (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libgtk-3-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
xdg-utils

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Stub frontendDist for cargo build
run: mkdir -p dist

- name: Run cargo test
working-directory: src-tauri
run: cargo test
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased]

### Added
- Native menu bar (File / Edit / View / Window / Help) with platform-gated accelerators
- Markdown file associations (`.md` / `.markdown` / `.mdx`) so Marky can be the default viewer
- PR check running `cargo test` on macOS and Linux
- Adjustable text size — scales all text app-wide (sidebar, toolbar, command palette, markdown content) via Settings dropdown or Cmd+Plus/Cmd+Minus/Cmd+0
- Resizable sidebars — drag the edge of the folder sidebar or table of contents to resize; double-click to reset to default
- Copy contents as markdown
Expand Down
7 changes: 7 additions & 0 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mod commands;
mod error;
mod folder;
mod fs;
mod menu;
mod registry;
mod search;
mod settings;
Expand Down Expand Up @@ -110,8 +111,14 @@ pub fn run() {
app.manage(InitialTargetState(Mutex::new(initial_resolved)));
app.manage(registry);
app.manage(watchers);

let (menu, handles) = menu::build(app.handle())?;
app.set_menu(menu)?;
app.manage(handles);

Ok(())
})
.on_menu_event(menu::handle_event)
.invoke_handler(tauri::generate_handler![
commands::get_initial_target,
commands::set_initial_target,
Expand Down
Loading