898 Commits (e64b67a3053dd07ee43d89027080b411c5837c8e)
 

Author SHA1 Message Date
Christian Clason 5884b64852 ci: allow skipping failing publish step
Should allow M1 artifacts to be built and published even though `EnricoMi/publish-unit-test-result-action/composite@v1` is broken on M1 due to broken `PyNaCl` dependency.
3 years ago
Christian Clason c3fe866bb9 refactor(font): conditional compilation on macos
Avoids
```
warning: unused variable: `points_per_inch`
  --> src/renderer/fonts/font_options.rs:94:9
   |
94 |     let points_per_inch = 72.0;
   |         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_points_per_inch`
   |
   = note: `#[warn(unused_variables)]` on by default
```
on macOS, which is innocuous but has been bugging me for a while.
3 years ago
Keith Simmons 3bba418c1c refactor grid_renderer out of renderer and clean up window draw command handling 3 years ago
Keith Simmons c52a6e356a format code 3 years ago
Keith Simmons 3ef86d4bbb log version on startup and bump it 3 years ago
Keith Simmons a4822378e2 log version on startup and bump it 3 years ago
Serg Tereshchenko dc3b3351d5 fix(logging): Replace println with debug in bridge/events.rs 3 years ago
mforsb 8779a76fb0 Clean up tokio::sync::mpsc imports 3 years ago
mforsb e343c64d4e Simplify nvim version check, remove regex dependency
Using `has("nvim-0.4")` check seems more robust than using a regex to
parse the version string. This also means regex is no longer a runtime
dependency.
3 years ago
mforsb 5c90f33e9e Use tokio::sync::mpsc instead of crossfire::mpsc
Since tokio channels has blocking_recv now crossfire isn't needed
anymore.
3 years ago
mforsb 768a589576 Remove rust-embed as a dependency
This is a rather heavy dependency that's easily replaceable using only
the standard library. This brings the number of dependencies down from
368 to 362 (on Linux).
3 years ago
mforsb e3911e63d4 Reduce transitive dependencies in the image crate
Neovide only needs to read .ico images so we can remove all other
formats. This brings the number of dependencies from 391 to 368 on
Linux.
3 years ago
Serg Tereshchenko 71e107d649 fix: Trigger grid resize after font change 3 years ago
Serg Tereshchenko d5404299ee chore(logging): Don't log "icon created" message 3 years ago
Serg Tereshchenko caf9e35726 chore(logging): Use 4 digits for scale_factor display 3 years ago
Keith Simmons 400dbcabd3 remove global suffix on settings call 3 years ago
Serg Tereshchenko 0549540c13 style: apply cargo --fmt 3 years ago
partizan 9149c98292
Merge pull request #865 from neovide/refactor-grid-conv
Refactor grid conversions
3 years ago
Serg Tereshchenko 6d38f34f8b refactor: Use paired values as tuples/Dimensions
Paired values, like width/height now using tuples and Dimensions.

`Dimensions` struct implements traits for multiplication and division,
which allows us to scale grid size to physical and back just by
multiplying `Dimensions` instead of each variable.

Also, added trait for multiplication (u64, u64) by Dimensions.
For the same purpose as above.
3 years ago
Keith Simmons 1e1bd45d45 swap feature flag to just be a setting instead 3 years ago
AnhQuan Nguyen fe56ce7a0f change the confinement 3 years ago
mforsb a5d1af226f Add missing double quote 3 years ago
Keith Simmons ca269d7e30 specify tokio-util version| 3 years ago
Keith Simmons 48336ee84d working swap to upstream nvim-rs 3 years ago
Serg Tereshchenko 725f12cafd refactor: Remove first_render_pass flag 3 years ago
Serg Tereshchenko a8c6e1707b refactor: Refactor startup process to delay setting window size.
Setting initial window size moved into draw_frame, and called
after fonts are loaded. So initial window size matches requested
geometry.

This also fixes missing startup screen, as UiCommand::Resize is not
called on startup.
3 years ago
Serg Tereshchenko d12ab7e33a refactor: Refactor ui_attach options 3 years ago
Keith Simmons 865ab76aff
tweak pr template and fix build pipeline on windows (#864)
Co-authored-by: Keith Simmons <keithsim@microsoft.com>
3 years ago
Keith Simmons 132f993699
add better touch scrolling (#861)
* add better touch scrolling

* optionally send multiple scroll events

* fix formatting

Co-authored-by: Keith Simmons <keithsim@microsoft.com>
3 years ago
partizan 30dd5e7f73
fix(cmd_line): Renamed --multiGrid to --multigrid (#862)
BREAKING CHANGE: Renamed --multiGrid to --multigrid
BREAKING CHANGE: Removed env var NeovideMultiGrid
3 years ago
Lucas Miranda 726539fbae
add neovide_input_use_logo to toggle logo handling (#857)
* add neovide_input_use_logo to toggle logo handling
it also completely ignores keyboard inputs with D modifier

* fix lint errors
3 years ago
mforsb 178cbafb2f
Fix recursion when using -- to pass args to nvim. (#854)
Co-authored-by: Marcus Forsberg <mforsb92@gmail.com>
3 years ago
partizan 6a744fee2c
refactor: Refactor disowning process. (#852) 3 years ago
partizan 257ec70a80
refactor: Refactor window module (#849)
- Split platform-dependent code into separate function
- Remove wrapper function `create_window`
- Move handle_new_grid_size where it belongs
3 years ago
Benson Li 21a8adc4a5
Remember window dimensions #622 (#816)
* Implementation for #622

* Update src/window/settings.rs

Co-authored-by: partizan <serg.partizan@gmail.com>

* applied suggestions from @last-partizan

* applied suggestions from @Kethku

* applied more suggestions from @last-partizan

Co-authored-by: partizan <serg.partizan@gmail.com>
3 years ago
Keith Simmons 6abe057d6e added debug renderer feature 3 years ago
Keith Simmons 949e15f808 add debug renderer feature 3 years ago
Serg Tereshchenko 61fb07d7bf style: Fix clippy warning 3 years ago
PyGamer0 f25d475ea5
Bump swash in Cargo.toml (#848) 3 years ago
Keith Simmons 50d2afbdbb update swash 3 years ago
Lucas Miranda 0d6cfd54cb
Fix to sending key signals when window focus lost (#845)
When window focus has just been lost, key pressed events aren't ignored
3 years ago
Lucas Miranda 0c1a7029e3
Fix to ensure provided gui font is valid (#842)
Providing a wrong font was causing neovide to retry every time to load an
inexistent font, instead just trying to load once at it's setup should
be enough
3 years ago
Keith Simmons 1f112d1f3e update swash 3 years ago
partizan 3da8b56b74
fix(keyboard): Fix shift+tab handling (#836)
Refs #445
3 years ago
Tim Biermann f6a8ffced0
Make waylands app_id and x11s class overrideable (#834)
* trying to make app_id and class exchangeable

* still fails to hand over the argument

* make both app_id and class be set by command line arguments

* added missing cfg for class

* Changes as requested. Putting the os check in a block however doesn't
work for me

* getting rid of superfluous to_string()

* x11-class argument gets ignored

* changed argument name

* Update src/cmd_line.rs

* changed faulty unwrap

* added missing comma

* fixed wrong case

* fixed class

* make cargo fmt happy

* exchanged String::from with String::new

* make both attributes also overrideable via env::var

Co-authored-by: partizan <serg.partizan@gmail.com>
3 years ago
Serg Tereshchenko 5991117814 style(fonts): Removed redundant closure
(Thanks clippy)
3 years ago
partizan 334c2d779f
Refactor keyboard manager (#833)
* refactor(keyboard_manager): Refactor KeyboardManager

This refactoring changes nothing in key handling behaviour, but moves
some code out of handle_event, to make thigs clearer.

* style(keyboard_manager): Move private functions to bottom
3 years ago
partizan e8354e1b23
Dynamic scale factor updates (#817)
* wip: dynamic scale factor updates

* refactor font options

* update font opts

* refacor scale factor updates

* cargo fmt
3 years ago
partizan f58b9470a6
Merge pull request #828 from Kethku/fix-macos-scaling
fix(macos): Fix scaling on mac-os
3 years ago
Serg Tereshchenko 42ff24518b fix(macos): Fix scaling on mac-os
On MacOS points and pixels are the same.
3 years ago