656 Commits (130e15439a3a36d3e74756ccae666b3656a10f9e)

Author SHA1 Message Date
Keith Simmons 2cbdf4ac6d
attach and detach the windows console (#1178)
* attach and detach the windows console

* remove commented code

* fix formatting

* fix build issues and consolidate windows utils

* formatting fix

Co-authored-by: Keith Simmons <keithsim@microsoft.com>
3 years ago
Keith Simmons cac8d279b1 remove dbg 3 years ago
Serhii Tereshchenko c322b79a04
fix: Fix opening files on linux (#1180)
I don't know how about other OS where you using SHELL, but on linux you should
pass arguments like this, or this happens:

[src/bridge/command.rs:26] cmd = Command {
    std: "/usr/bin/nvim" "--embed README.md",
    kill_on_drop: false,
}
nvim: Unknown option argument: "--embed README.md"
3 years ago
Serhii Tereshchenko 6225e22da2
refactor: Use debug level for more important messages, leave trace only for super verbose (#1177) 3 years ago
Keith Simmons dd74ff4239
fix for macos finder issue (#1162)
* attempt fix for finder issue

* pull command creation functions out and implement macos exists and which

* remove macos hack

* refactor platform specific startup code

* fix wsl command issue

Co-authored-by: Keith Simmons <keithsim@microsoft.com>
3 years ago
Keith Simmons db53e94db9
Use loaded fonts if no configured font works (#1171) 3 years ago
Keith Simmons 49224f8008 adjust font cache size if it gets too big 3 years ago
Keith Simmons de7696d407 redraw after new default style 3 years ago
Serhii Tereshchenko 8ff2768ed4
refactor: Move call to SETTINGS.get inside should_ignore_input (#1169)
It wasn't required outside, and this way code is cleaner.
3 years ago
Keith Simmons 36200088a4
don't parse version number from client info (#1166)
Co-authored-by: Keith Simmons <keithsim@microsoft.com>
3 years ago
LoipesMas 8682680c79
Merge pull request #1165 from LoipesMas/transparency
Correctly apply opacity to floating windows
3 years ago
LoipesMas b90fb39f20 Correctly apply opacity to floating windows 3 years ago
Keith Simmons ab0394ae40 formatting fixes 3 years ago
Nguyễn Anh Khoa e6670a5413
Remote copy/paste (#1003)
* add clipboard-rs

* set g:clipboard when starting remote session

* add rpcrequest handler

* add paste to clipboard rpcrequest

* seperate clipboard to bridge/clipboard

* update remote clipboard logic

- when paste: use line ending matching file format
- when copy: use line ending of remote system

* update remote clipboard setup

- use `neovide_no_custom_clipboard` to disable custom clipboard
- disable cache to not use old clipboard contents when error returned
  from `get_remote_clipboard`

* code cleanup and format
3 years ago
Nguyễn Anh Khoa f0a9e1c20d
use cargo version string to register neovide channel (#1161) 3 years ago
Keith Simmons 8542333c94 Add window position check to fix off screen issue 3 years ago
Keith Simmons 557e988c09 minor refactoring (should startup faster) and handle exit codes properly 3 years ago
Keith Simmons 3cb891f2b8
Fix grayed out text from lsp (#1158)
* clone paint before drawing undercurl

* fix formatting

Co-authored-by: Keith Simmons <keithsim@microsoft.com>
3 years ago
multisn8 dce1014e7d
Touch support (scrolling, click-by-tap, visual selection by dragging) (#1148)
* Add basic touchscreen scrolling support

* Fix horizontal scroll direction

* Add touch deadzone

* Add drag by touch hold

* Fix touch drag behavior

The one before actually wasn't intended.

* Finetune default touch settings

* Move cursor to drag position upon touch drag start
3 years ago
LoipesMas 9e422e1b1a
Merge pull request #1146 from LoipesMas/transparency
Fix floating windows transparency
3 years ago
LoipesMas 344b8ded67 Fix floating windows transparency 3 years ago
Keith Simmons 22676de88a redraw screen after dpi scale change 3 years ago
Eric Pfister f5bb8cc89b
Fix cursor bold and italic rendering (#1136)
* Fix cursor bold and italic rendering

* Rename character to grid cell

* Rename character -> grid_cell in Cursor struct

* Rename get_cursor_character -> get_cursor_grid_cell
3 years ago
fredizzimo 224f1f2083
Merge pull request #1118 from fredizzimo/improve_wsl_launch
Run WSL Neovim inside a login shell
3 years ago
Keith Simmons 98e1a72fe6 fork the stdio as well 3 years ago
ViViDboarder 5502f3137c Trim newlines from end of path on macOS 3 years ago
Louis C. Murguia 3efc3c1759
Buttonless option for macOS (#1076)
* Buttonless option for macOS

* Properly export PATH on macOS when ran from Finder #1072

* Merge conflicts resolved

* Refactoring frame options

* Adding frame file; forgot to add

* Updating window files

* Updated from revisions; .vscode folder added to .gitignore

* Formatting

* Remove comment of shadow option in frame decoration.

* Fix transparency for buttonless

* General fix for buttonless and transparency

* Formatting

* revert unecessary changes

Co-authored-by: Keith Simmons <keith@the-simmons.net>
Co-authored-by: Keith Simmons <keithsim@microsoft.com>
3 years ago
Keith Simmons 9cfac28ac8 disable subpixel antialiasing 3 years ago
Keith Simmons 32dabc0eb5 more formatting 3 years ago
Keith Simmons df52afa106 formatting and clippy fixes 3 years ago
Keith Simmons 616ffe15ba don't setup separate thread 3 years ago
Fred Sundvik b83003a8ec Fix notification event ordering
Use a single thread instead of spawning a new task for each
notification. This makes sure they are processed in the correct order.
3 years ago
Keith Simmons 90a03f23d3 fix 0.6 mouse issues 3 years ago
Keith Simmons 5c4026c4a4 organize use statements 3 years ago
Keith Simmons 3c2250ed24 update comment in main 3 years ago
Serg Tereshchenko aa340c5e41 style: Change variable name 3 years ago
vzex 740a24c05e remove mut ref in maybe_get_keybinding
the next_dead_key should be changed only when a key_pressed or a dead key released,don't ask me why, it just make things work right with winit.(all test case passed)
3 years ago
vzex 0469ac14f5 rename pre_is_dead to prev_dead_key 3 years ago
vzex 24a7234858 add more support for dead key
list user cases for dead key and modify key(alt), on mac:
1 (us keyboard):[options+e u]=>ú
2 (us keyboard):[options+8]=>•
3 (chinese keyboard) ime:[nihao space]=>你好
4 (Austria keyboard):[= a] => á
5 (Austria keyboard):[= q] =>`q
6 (Austria keyboard):[= =] =>´´q
7 (Austria keyboard):[= shift+= q] =>´`q
8 (Austria keyboard):[= esc] =>´ and leave insert mode
9 (Austria keyboard):[= left] =>´ and move caret to left
3 years ago
vzex 68816b346b fix bug for ctrl can't use 3 years ago
vzex feae712bae fix another type of dead key input 3 years ago
vzex 0fd299d995 fix macos dead key
after typing dead key, there is also an ime event triggered,so get text_with_all_modifiers is unnecessary
3 years ago
vzex 52c93d87af Update keyboard_manager.rs
rename
3 years ago
vzex bf1ea9c6e2 rename enum and vec queue 3 years ago
sunxiaomeng ccb28dda00 fix #243 ime input support 3 years ago
Keith Simmons 26169f84c0 Add event aggregator and remove manual usage of channels. Also add redraw editor command on resume 3 years ago
Fred Sundvik 0849151838 Run neovim directly in WSL login shell
Therefore, the neovim path hack is no longer needed, since the path and
other environment variables are now set correctly.
3 years ago
Fred Sundvik 7d19cd5ebe Refactor commandline processing
This reduces the amount of code duplication, and similar flow
is used for both wsl and non-wsl code paths.
3 years ago
Keith Simmons 22cb5bc05f refactor saved settings to be an enum to enable persistence of maximized state 3 years ago
Keith Simmons 494f8924e9 Add <CR> mapping for testing out fonts 3 years ago
Keith Simmons d0cc37c84c minor text tweak 3 years ago
Keith Simmons 29668bb743 formatting and clippy fixes 3 years ago
Keith Simmons bc8d002e32 add ability to list available fonts 3 years ago
Keith Simmons f8cb3a2131 fix minor typo 3 years ago
Fred Sundvik b0ec20be4a Use the width of letter 'M' instead of font average width
The average character width in the font information is not always
reliable, so get the width from the character 'M' instead. It still
fall backs to the average if there's no 'M' in the font.
3 years ago
Fred Sundvik c428501def Fix the font spacing
Previously the font width was always rounded down to the nearest
integer, which typically caused the fonts to look to squashed. To
correct the issue a fudge factor, which scales the fonts so that the
width is always an exact integer, was introduced.
3 years ago
LoipesMas a46f12be35
Remove unused `use` 3 years ago
Fred Sundvik 8c2099496a Fix window settings load and save
Some of the load and save paths were fixed. And the json is now
structured to properly support saving and loading of both position and
size data, and is easily extendible for more fields and objects in the
future.
3 years ago
LoipesMas 36479dd45b
Merge pull request #1099 from LoipesMas/remember_pos
Add remember_window_position setting
3 years ago
Fred Sundvik d030f97d45 Fix for non-existing data directory
Also respect XDG_DATA_HOME on unix systems instead of using hardcoded
path.
3 years ago
LoipesMas 97da1926ba Remember position and size on by default 3 years ago
LoipesMas c77a7a93cc Add remember_window_position setting 3 years ago
Nguyễn Anh Khoa f563360735
remove "-complete=expression" with -nargs=0 (#1097)
fix: Remove `-complete` when using `-nargs=0`

Newer versions of Vim/Neovim throw error when using -complete with
-nargs=0

https://github.com/neoclide/coc.nvim/issues/3414
https://github.com/neoclide/coc.nvim/pull/3210
3 years ago
Keith Simmons 60ec743b7e tweaks to cli args 3 years ago
Keith Simmons 78bcc7431a add nosrgb flag 3 years ago
Keith Simmons 6b96f79bb1 move window files into main window directory rather than being window wrapper 3 years ago
Keith Simmons b78a714be0 attach to console on startup 3 years ago
Keith Simmons 4982c2615e only set background opacity if window transparency is not 1.0 3 years ago
Keith Simmons 76bddae01a check loaded window size before running 3 years ago
Keith Simmons 5539b035b5 remove verbosity 3 years ago
Keith Simmons 00bed7dabd add some tests documenting behavior 3 years ago
Serg Tereshchenko bad4415e48 fix redundant field names 3 years ago
Serg Tereshchenko 2e68a48cb0 refactor: Use neovim_args for passing files to open 3 years ago
Serg Tereshchenko 2014b40195 fix: Add files_to_open, removed in https://github.com/neovide/neovide/pull/1016/ 3 years ago
Serg Tereshchenko 6e93bd7552 fix: Add verbosity flag, removed in https://github.com/neovide/neovide/pull/1016, set default verbosity to "warn". 3 years ago
Keith Simmons cf8b48f5f5 default to only logging errors 3 years ago
LoipesMas 4131c50cfd Fix compiler warnings on non-Windows 3 years ago
Keith Simmons 46e7bec50d move mouse hiding to just be in the mouse manager 3 years ago
Jan Sosulski 81f52db78b cargo fmt 3 years ago
Jan Sosulski f17020b6af added setting to hide mouse cursor when typing 3 years ago
Keith Simmons 15f9e82af1 fix formatting and clippy 3 years ago
Keith Simmons c1f7af6eaa fix formatting 3 years ago
Alex Pawlowski 894c07bf5a Document handle_macos() 3 years ago
Alex Pawlowski 774f55b882 Linting 3 years ago
Alex Pawlowski 6a627e2be7 Properly parse PATH on macOS
This fixes Fish support Neovide is launched from Finder, as well as other non-standard configs where ~/.profile is missing
3 years ago
LoipesMas ef8a95a91d Fix transparency for floating windows 3 years ago
LoipesMas 5906bf58c3 Cleanup 3 years ago
LoipesMas 06113d603e Fix separators and tabline not disappearing 3 years ago
LoipesMas d4c9b7b850 Sort floating windows by position 3 years ago
LoipesMas b8b9573168 Formatting 3 years ago
LoipesMas a6f5906fbd Remove unnecessary code 3 years ago
LoipesMas 1345eb396b Draw default-color background as transparent 3 years ago
LoipesMas b0dc9332c4 Make only root_canvas semi-transparent 3 years ago
LoipesMas 45ab1843b8 Draw floating text as opaque
I don't think anyone wants transparent text
3 years ago
LoipesMas 139e0da98d Draw black background as transparent 3 years ago
LoipesMas b68cf32006 Revert useless change 3 years ago
LoipesMas 62bdb20c41 Remove useless code 3 years ago
LoipesMas 42f74a3bbb Transparency working again 3 years ago
Keith Simmons 401d1a88a2 add tests for the cmdline parsing 3 years ago
LoipesMas 5630d5240e Add neovim_bin argument 3 years ago