Commit Graph

1798 Commits

Author SHA1 Message Date
Bryan Phelps a34e1d64ec
Implement NeovimEditor implementation of setTextOptions (#2262) 2018-05-29 17:40:48 -07:00
Bryan Phelps 7f62821778
Automation: Improve assert logging for automation (#2261)
* Improve assert logging for automation

* Fix lint issues
2018-05-29 16:55:23 -07:00
Bryan Phelps d18087914c Add Wayan Jimmy as a backer - thank you! :) 2018-05-29 13:26:13 -07:00
Amadeus Folego 642508603f Add Cryza to contributors list 2018-05-28 13:08:22 -03:00
Amadeus Folego da1122a228 Add CrossR to readme 2018-05-28 13:06:59 -03:00
Amadeus Folego 3cc6ae27a3 Add Akin909 to list of contributors 2018-05-28 11:34:02 -03:00
Bryan Phelps b5d452d792
Dependency: Upgrade to electron 2.0.1 (#2218)
Dependency: Upgrade to electron 2.0.2
2018-05-25 20:35:02 -07:00
Bryan Phelps 48a681685c Add James Herdman as a backer - thank you! :) 2018-05-25 18:47:42 -07:00
Bryan Phelps 0b21bfce51 Add Bryan Germann as a backer - thank you! :) 2018-05-25 18:47:11 -07:00
Akin 38566d9248
remove call to clear the oni-backup dir on oni startup (#2227) 2018-05-23 06:30:14 +01:00
Akin 2e79e328b2
fix parsing issues in ui-test tabs (#2226) 2018-05-23 06:29:21 +01:00
Akin 47e94d9445
Feature/upgrade react to 16.3 (#2229)
* Add missing import for the RxJS `debounceTime` operator

* upgrade to react 16.3
2018-05-23 06:28:11 +01:00
Akin 730d4120da
Feature/ upgrade prettier and pretty-quick (#2228)
Upgrade prettier and the pretty quick package which runs it as a pre-commit hook the main reason for this being that prettier incrementally improve their parsing and formatting strategy and crucially for a `typescript` project they add support for new ts syntax that prettier would otherwise choke on without upgrades
2018-05-23 06:27:17 +01:00
satotake f507d7235a Config: add "editor.fontWeight" (#2232) 2018-05-22 22:00:55 -04:00
Manuel Hornung 3bb8412b0d
Merge pull request #2223 from onivim/cryza/bugfix/webgl-renderer-error-invalid-array-length
Fix WebGL renderer for non-integer `devicePixelRatio`
2018-05-22 12:46:51 +02:00
Manuel Hornung 4b90495a32
WebGLRenderer: Lazily (re)initialize the glyph buffer with sufficient size (#2224)
* Lazily (re)initialize the glyph buffer in the WebGLRenderer to ensure sufficient length for a completely filled screen

* Apply the same fix to the solid cell renderer
2018-05-22 12:46:16 +02:00
Manuel Hornung fecd2018e4
Merge pull request #2225 from onivim/cryza/bugfix/broken-debug-build
Add missing import for the RxJS `debounceTime` operator
2018-05-19 18:29:02 +02:00
Manuel Hornung c7ae478717 Add missing import for the RxJS `debounceTime` operator 2018-05-19 17:07:36 +02:00
Manuel Hornung 7740d10289 Ensure that the `offsetGlyphVariantCount` is an integer 2018-05-19 15:36:48 +02:00
keforbes c577d79665
Merge pull request #2210 from keforbes/sidebar-width
Fix #2205, enable sidebar.width config setting
2018-05-18 09:40:25 -06:00
Kazuyuki Kamata ecc6c4a548 Bugfix: oni.input.unbind() (#2216)
* Bugfix: oni.input.unbind()

* Add a unit test for unbinding an array
2018-05-17 19:52:17 -07:00
keforbes def017083e set sidebar width from config during initial Oni launch 2018-05-17 15:46:16 -06:00
keforbes fddbb84ff1 fix lint issue 2018-05-17 15:22:36 -06:00
keforbes 291f49916b fix implementation 2018-05-17 15:20:43 -06:00
keforbes 5f5c238271
Merge pull request #2204 from keforbes/reinforce-learning
Cleanup tutorials
2018-05-17 12:37:40 -06:00
Bryan Phelps 46f5707c81
Refactoring: Move 'asObservable' from oni-types to oni core (#2215)
* Move from oni-types asObservable method to just an asObservable method in core

* Fix lint issues

* Use updated oni-types version
2018-05-16 17:33:10 -07:00
Bryan Phelps 8766bf2b41
Feature - Buffer Layers: Add 'visibleLines' to the context for buffer layers (#2188)
* Plumb through 'visible lines' to the buffer layer context

* Fix lint issues

* Augment the AddLayer test to validate we are getting content out

* Upgrade to latest oni-api and bring in improved types
2018-05-16 15:42:54 -07:00
Bryan Phelps e80fb44a2d Add Carlos Coves Prieto as a backer - thank you! :) 2018-05-16 10:58:53 -07:00
Bryan Phelps 30865a6639 Add Dimas Cyriaco as a backer - thank you! :) 2018-05-16 10:57:17 -07:00
Bryan Phelps e055a07fb7 Add Eric Hall as a backer - thank you! :) 2018-05-16 10:56:43 -07:00
Bryan Phelps d608b53c14 Add Daniel Polanco as a backer - thank you! :) 2018-05-16 10:56:13 -07:00
Bryan Phelps c43cea6da1 Add Domenico Maisano as a backer - thank you! :) 2018-05-16 10:55:55 -07:00
Jörn Griepenburg 94d6cbfc38 Enable use of middle click to close tabs (#2190)
* Add middle click tab closing (#2069)

by adding a onMouseDown directive to both tab file icon and
tab name and checking the resulting React.MouseEvent for a
middle click

* Fix unused imports and whitespace in Tabs ui test (#2069)

* Update Tabs component test snapshot (#2069)

* Fix Tabs ui test to correctly retrieve children (#2069)

* Differentiate between single und multiple tabs in test (#2069)

* Use mousedown event for tab selection and closing (#2069)

by middle clicking and let the tab itself handle the logic
for it by checking React.MouseEvent.button value

* Update classnames dependency to lastest master branch

and write own @types module declaration so that it can be used in
testing nstead of using a mock. The mock does not suffice as the
way the actual module previously had to be imported was
"import * as classNames" where classNames was the actual function.

It is not possible to build a module in typescript/es6 imports, which
will directly return a function in the same way the dependency did
in commonjs module syntax. Instead when defining a function to be
returned as default export it is returned as an Object like this
"{ default: [Function] }", which is correctly resolved when importing
with "import classNames from 'classnames'".

This only previously worked in production as webpacks ts-loader,
handles this issue, whereas when testing the sources are only compiled
with tsc.

There is an update to the classnames dependency on the current master,
but there hasn't been a release since 2006. So options were to setup
webpack for tests as well or add updated classnames dependency which
sets a "default" value on its commonjs exports.

Links for reference:
https://github.com/JedWatson/classnames/issues/152
https://github.com/JedWatson/classnames/pull/106
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/25206
https://github.com/Microsoft/TypeScript/issues/2719

* Fix tab click onMouseDown callback

* Test tab clicks to select/close trigger callbacks

* Mock child react components directly to test smaller unit

* Reset calls to callback mocks in each test case

* Add tests for tabs interaction with FileIcon/Sneakable
2018-05-16 08:27:03 -07:00
Ryan C 0ce4fb1993 Moved Issue template to the correct folder. (#2212)
* Moved Issue template to the correct folder.

* Fix template.
2018-05-16 08:19:24 -07:00
Bryan Phelps dd417ae184
Limit chords to four keys (#2208) 2018-05-16 08:18:06 -07:00
Manuel Hornung c88161c0d7
Merge pull request #2207 from onivim/cryza/bugfix/webgl-renderer-artifacts
Add glyph padding/overlap to the WebGLAtlas and WebGLTextRenderer
2018-05-16 13:25:07 +02:00
keforbes 61e6b53a7b enable sidebar.width config setting 2018-05-15 14:57:52 -06:00
Nick Neisen 89734cd113 [RFC] #1999 - Add Targets.vim tutorial (#2192)
* Add Targets.vim tutorial

Add a tutorial with description, useful keys, and interactive examples
to teach users about Target.vim.

* Add ci( stages, pauses, and text insertions.

Have the user type 'foo' and 'bar' after using the c operator.  Change
the message to switch to normal mode.  Add aditional stages to have the
user use the ci( command.

Add pauses where needed so that the user can view the result of them
entering the correct keys.

* Fix spelling mistakes and adjust wordage

Change 'paranthesis' missellings to 'parenthesis'.  Change command
vocabulary to match command.
2018-05-15 11:55:03 -07:00
Bryan Phelps 6dae5d1372
Update intro video with 0.3.2 features (#2019)
* Update HeroDemo to use new split mode

* Fix issue with oni split mode not being set completely

* Display achievement at beginning of video

* Get achievement working

* Continue improving test

* Add code to create the demo app

* Start implementing browser / terminal demo

* Add 'sneak' to oni api

* Add tags for sneak mode so its easier to automate

* Show end-to-end development experience

* Get test working end-to-end

* Only put one alert in

* Continue tweaking demo

* Demo updates

* Update demo

* Update demo

* Demo tweaks

* Fix lint issues

* Revert changes to sneak

* Revert change to Sneakable

* Revert change to Oni.ts
2018-05-15 10:21:58 -07:00
Bryan Phelps d2878545bb
#4332 - Fix bug with 'onScrolled' event not firing in all cases (#2143)
* Use the 'scroll' event from redraw as a hitn that we should dispatch the scroll event

* Add CiTest to validate scroll event

* Fix up test

* Fix up CiTest for scroll event
2018-05-15 10:16:29 -07:00
Daniel Kosiński db90b584a2 Add issue template (#2203) 2018-05-15 17:26:59 +01:00
Manuel Hornung 892232f9b7 Add glyph padding and overlapping sections of the rendered glyph quads to fix the artifacts 2018-05-14 22:33:43 +02:00
keforbes a622ce25b1 cleanup tutorials 2018-05-14 14:17:00 -06:00
Manuel Hornung bfd84e6395
Merge pull request #2199 from onivim/cryza/performance/webgl-render-bold-italic-characters
Add bold and italic rendering to the WebGLRenderer
2018-05-14 22:16:51 +02:00
Akin 95cdae7b19
Bugfix/add sneakability back to tabs (#2186)
* pass selected tab id to sneak callback

* [WIP] add ci test

* actually add new file to vcs

* Add a ci test to prevent sneakability regression

* add getMatchingSneak to ciTest fix typo in getMatchingSneak
2018-05-14 20:17:59 +01:00
Manuel Hornung d3d4c0ef5b
Merge branch 'master' into cryza/performance/webgl-render-bold-italic-characters 2018-05-14 20:44:00 +02:00
Manuel Hornung c6165ed661
Merge pull request #2198 from onivim/cryza/bugfix/webgl-renderer-out-of-texture-space
Improve WebGL Renderer stability
2018-05-14 20:39:39 +02:00
Akin 5e597e3e7d
Feature/add file drag and drop handler (#2179)
* add file drag and drop handler component

* move filedrop handler into separate component
use editor container component to collect drop events

* add comment to explain use of filedraghandler

* fix comments typo

* refactor ref setting into file handler and add global hooks
remove hooks from neovim editor

* move global drag event handlers

* fix comment to match functionality

* tweak comment merge upstream
2018-05-14 17:58:11 +01:00
Akin 75cfb53858
Bugfix: Accumulating error squiggle styles in document head (#2197)
* use attrs for error squiggle and marker components
upgrade styled-components

* return empty string not undefined as this is cast to string and added to the css
2018-05-14 17:46:51 +01:00
Manuel Hornung 285fec2a5a Add bold and italic rendering to the WebGLRenderer 2018-05-13 14:45:55 +02:00