Zachary Yedidia
47324aea97
Merge
2017-04-28 11:07:28 -04:00
Zachary Yedidia
def2b28d4e
Differentiate between help buffers and log buffers
...
Closes #636
2017-04-28 11:07:05 -04:00
Zachary Yedidia
ab24523bff
Fix problem with search and replace indices
...
Closes #637
2017-04-27 20:10:51 -04:00
Zachary Yedidia
b8debb5404
Merge pull request #585 from samdmarshall/add-yaml-linter
...
Add yaml linter
2017-04-22 18:53:11 -04:00
Zachary Yedidia
d0e39853c6
Fix issue with cursorline
2017-04-22 18:48:05 -04:00
Samantha Marshall
a0bfd99a5d
Updating changes to be in-line with master
...
Merging in master
2017-04-22 14:22:38 -04:00
Zachary Yedidia
471a8b7c2b
Fix crash if tabs extend past view width
...
Ref #631
2017-04-21 12:48:03 -04:00
Zachary Yedidia
591e5e3145
Fix colorcolumn being ignored
...
Closes #627
2017-04-18 13:33:19 -04:00
Zachary Yedidia
282e7b1828
Merge pull request #626 from Necklaces/master
...
Added more default bindings:
2017-04-16 11:39:49 -04:00
Zachary Yedidia
007b060cbd
Speed up search and replace
...
Ref #625
2017-04-16 11:11:04 -04:00
Zachary Yedidia
8168a75bde
Slightly speed up search and replace
...
This commit also adds a linter for literate
2017-04-16 10:43:13 -04:00
Nichlas Severinsen
5afda4e76c
Added more default bindings:
...
- Shift+Home for selecting to start of line
- Shift+End for selecting to end of line
These already exist as Ctrl+Shift+Left/Right-arrow
2017-04-16 15:34:44 +02:00
Zachary Yedidia
88c712b848
Allow plugins to create runtime files from strings
2017-04-15 14:45:44 -04:00
Zachary Yedidia
fca63d02f9
Update runtime
2017-04-15 12:02:01 -04:00
Zachary Yedidia
6458d3cac4
Don't draw cursorline at cursor position
...
Fixes #622
If the cursorline is drawn at the cursor's position, then the cursor
doesn't display. I'm not really sure why this is a problem with the
gnome terminal, it didn't seem to happen on earlier versions.
2017-04-13 21:37:13 -04:00
Zachary Yedidia
843867717c
Merge
2017-04-02 09:27:25 -04:00
Zachary Yedidia
dd87769090
Fix TabSwitch to work by tab name as well
2017-04-02 09:27:04 -04:00
Zachary Yedidia
398370424b
Relocate cursor on search
...
This commit also fixes some true color colorscheme issues
Fixes #614
2017-03-31 10:39:10 -04:00
Zachary Yedidia
be2d3c9c1e
Read extra new line
...
Ref #603
2017-03-29 12:01:01 -04:00
Zachary Yedidia
05aa30d1be
Improve html syntax rules
2017-03-29 10:08:37 -04:00
Zachary Yedidia
1c2b57dfe8
Add support for limit-group to highlights region limits
2017-03-29 09:54:54 -04:00
Zachary Yedidia
47ef864295
Add skip statements to all strings
2017-03-29 09:45:16 -04:00
Zachary Yedidia
a517ea45bd
Slight improvements to included region highlighting
2017-03-29 09:25:08 -04:00
Zachary Yedidia
342f3c223d
Don't skip included rules in end
2017-03-29 09:21:54 -04:00
Zachary Yedidia
079cbe11f4
Fix incorrect crystal filetype detection
...
Closes #608
2017-03-28 19:26:14 -04:00
Zachary Yedidia
3e61bd4d49
Improve some more region highlighting
2017-03-28 17:18:06 -04:00
Zachary Yedidia
b517ed28c0
Fix region highlighting with empty rules
2017-03-28 15:18:38 -04:00
Zachary Yedidia
299712ead3
Add support for skipping and remove need for lookbehind
2017-03-27 20:53:08 -04:00
Zachary Yedidia
c24f75999a
Better unicode support in highlight
2017-03-27 19:35:28 -04:00
Zachary Yedidia
bde48c051a
Fix out of bounds error on syntax highlighting
...
Fixes #606
2017-03-27 16:26:32 -04:00
Zachary Yedidia
d087a890ba
Fix some issues with unicode syntax highlighting
...
Closes #604
2017-03-27 14:40:42 -04:00
Zachary Yedidia
75d4e70560
Document the keepautoindent option
...
Closes #602
2017-03-27 13:22:34 -04:00
Zachary Yedidia
73ab25d008
Properly handle files that don't end with newlines
...
Closes #603
2017-03-27 13:15:00 -04:00
Zachary Yedidia
47fd1475b5
Fix indent char styling
...
Closes #598
2017-03-27 11:45:24 -04:00
Zachary Yedidia
12d74b99e8
Merge branch 'master' into view-refactor
2017-03-26 20:40:03 -04:00
Zachary Yedidia
1350deae56
Fix small softwrap bug
2017-03-26 18:01:02 -04:00
Zachary Yedidia
df564e1b8b
Update yaml syntax file
2017-03-26 17:45:58 -04:00
Zachary Yedidia
bb7ce4cbb3
Add memusage option to view memory usage
2017-03-26 17:37:04 -04:00
Zachary Yedidia
1655fde09b
Fix precedence for python multi-comments
2017-03-26 17:24:02 -04:00
Zachary Yedidia
89d1f1c202
Proper unicode support
2017-03-26 17:20:53 -04:00
Zachary Yedidia
b23c507af5
Read one line for empty strings
2017-03-26 15:27:53 -04:00
Zachary Yedidia
15055440da
Optimize how files are read into the buffer
2017-03-26 15:23:32 -04:00
Zachary Yedidia
e2b7c85955
Small optimization to state only highlighting
2017-03-26 13:03:43 -04:00
Zachary Yedidia
9c5ab2afbd
Fix possible overflow error
2017-03-25 17:31:46 -04:00
Zachary Yedidia
d413562145
Add more performance and memory optimizations
2017-03-24 14:11:21 -04:00
Zachary Yedidia
87f54be13a
Add support for lookbehind in region regexes
...
Use the 'regexp2' library for lookahead and lookbehind in region
start and end regular expressions to support things like closing quotes
that aren't preceded by backslashes.
2017-03-22 19:03:06 -04:00
Zachary Yedidia
bea1c5dc28
Fix another issue with horizontal scrolling
2017-03-22 12:28:02 -04:00
Zachary Yedidia
04b4dbbfee
Improve performance on long lines
2017-03-22 11:58:43 -04:00
Zachary Yedidia
d55e7319da
Fix small bug
2017-03-21 15:46:06 -04:00
Zachary Yedidia
54bb99d758
Improve new syntax files and fix a region glitch
2017-03-21 15:07:39 -04:00
Zachary Yedidia
b0e287498e
Update runtime
2017-03-21 13:16:08 -04:00
Zachary Yedidia
8a33c98bc6
Support rule precedence just like the old format
2017-03-21 13:15:46 -04:00
Zachary Yedidia
59bf1a2260
Optimize the memory usage for syntax highlighting
2017-03-21 12:45:27 -04:00
Zachary Yedidia
214adcf611
Properly clear syntax highlighting when it is disabled
2017-03-20 17:40:33 -04:00
Zachary Yedidia
23152f0c50
Use bytes for highlight groups
2017-03-20 15:14:04 -04:00
Zachary Yedidia
2a4abbee24
Fix larger multiline region highlighting
2017-03-16 16:38:44 -04:00
Zachary Yedidia
f637268fa7
Fix small issue with regions
2017-03-16 13:15:12 -04:00
Zachary Yedidia
ea7f90713c
Fix some small glitches with cursor positioning
2017-03-13 19:23:47 -04:00
Zachary Yedidia
53a19afe52
Fix error when opening directory
...
Fixes #587
2017-03-11 13:08:32 -05:00
Zachary Yedidia
ed6951a653
Check if file is dir before opening
...
Fixes #587
2017-03-09 12:56:24 -05:00
Zachary Yedidia
2e99f52133
Fix split divider style
2017-03-09 12:40:53 -05:00
Zachary Yedidia
da5542a557
Fix findNext and findPrevious with certain regexes
...
Fixes #576
2017-03-05 11:20:42 -05:00
Zachary Yedidia
253e86230c
Build runtime
2017-03-03 11:49:53 -05:00
CaptainMcClellan
9f9b5def41
Added theming to the Vsplit divider. ( #578 )
...
* Added title setting (Requires tcell pull!) and optimized tab display.
* Changed tcell call to screen.
* Fixed bad reference for getting Buffer name.
* Themeable vsplit divider.
* Bugfix.
2017-03-03 11:48:51 -05:00
Zachary Yedidia
ab74e56a40
Revert "Added title setting (Requires tcell pull!) and optimized tab display." ( #581 )
2017-03-03 11:43:44 -05:00
Zachary Yedidia
98365b6bfb
Fix block indent selection
...
Fixes #572
2017-03-02 19:46:23 -05:00
CaptainMcClellan
57c030d3b9
Added title setting (Requires tcell pull!) and optimized tab display. ( #575 )
...
* Added title setting (Requires tcell pull!) and optimized tab display.
* Changed tcell call to screen.
* Fixed bad reference for getting Buffer name.
2017-03-02 12:27:49 -05:00
Zachary Yedidia
6df2d7d822
Update runtime
2017-03-01 17:09:09 -05:00
Zachary Yedidia
995a910f6a
Update runtime
...
Also made a minor addition to ruby.micro which fixes #574 .
2017-03-01 09:36:41 -05:00
CaptainMcClellan
c29e58e3d4
Syntax Highlight Overhaul ( #568 )
...
* Adds new syntax groups and docs
* Large refactor of syntax highlighting files
* Changed keybindings for changing tabs.
* Improved the documentation.
* Added F3 for find to default bindings.
* Massive overhaul of the syntax files
* Phase 1 color-scheme updates.
* The new colorschemes.
* Colorscheme and syntax updates.
* Tiny fix to the cmc theme.
* Another phase of colorschemes and testing gitconfig.
* Fixed haskell error
* Fortran fix
* Delete test.txt
Heh, sorry about forgetting to do this again.
2017-03-01 09:30:35 -05:00
Zachary Yedidia
bd0c5c655e
Add more syntax files and include syntax highlighter in the repo
2017-02-26 11:14:35 -05:00
Zachary Yedidia
e6e190942c
Minor fixes
2017-02-26 11:14:35 -05:00
Zachary Yedidia
25ad139675
Remove old view code
2017-02-26 11:14:35 -05:00
Zachary Yedidia
a095644731
Minor fix to tab size
2017-02-26 11:14:35 -05:00
Zachary Yedidia
f197eca320
Improve horizontal scrolling
2017-02-26 11:14:35 -05:00
Zachary Yedidia
d602cb68ca
Support include statements in syntax files
2017-02-26 11:14:35 -05:00
Zachary Yedidia
56e98ea5f4
Highlight selections
2017-02-26 11:14:35 -05:00
Zachary Yedidia
16d8a560bf
Don't highlight if syntax is off
2017-02-26 11:14:35 -05:00
Zachary Yedidia
32325f99ad
Support multiple splits
2017-02-26 11:14:35 -05:00
Zachary Yedidia
9b33a1058a
Add cursorline support
2017-02-26 11:14:35 -05:00
Zachary Yedidia
ff5c8d7451
Draw tab characters correctly
2017-02-26 11:14:35 -05:00
Zachary Yedidia
1ba51e4f59
Fix newline state
2017-02-26 11:14:35 -05:00
Zachary Yedidia
7fe2b8ef2f
Store highlighting matches in each line
2017-02-26 11:14:35 -05:00
Zachary Yedidia
7bb61307e0
Fix tab size
2017-02-26 11:14:35 -05:00
Zachary Yedidia
d0057121ef
Start implementing syntax highlighting optimizations
2017-02-26 11:14:35 -05:00
Zachary Yedidia
18c4196354
Store states in linearray
2017-02-26 11:14:35 -05:00
Zachary Yedidia
2fcb40d5a9
Use new syntax highlighting engine from zyedidia/highlight
...
This changes all the syntax files in the runtime directory and also
changes how syntax highlighting is done from inside micro.
2017-02-26 11:14:35 -05:00
Zachary Yedidia
0adb601f3c
Improve drawing
2017-02-26 11:14:35 -05:00
Zachary Yedidia
b669437296
Add gutter message drawing and better cursor locating
2017-02-26 11:14:35 -05:00
Zachary Yedidia
9ef27203f0
Add support for line numbers and cursor locations in the new view
2017-02-26 11:14:35 -05:00
Zachary Yedidia
d2a1d849c9
Calculate line number offset
2017-02-26 11:14:35 -05:00
Zachary Yedidia
712b383e2c
Use the new cellview for displaying
...
Syntax highlighting is still not supported when using the new cellview.
2017-02-26 11:14:35 -05:00
Zachary Yedidia
94175d1aa6
Add beginning of cellview as well as improved ViewTypes
...
This is the beginning of the view refactor (#515 ). It's just
the start and is untested for now.
2017-02-26 11:14:35 -05:00
Zachary Yedidia
80ab81fefc
Add tabswitch command
...
Fixes #566
2017-02-26 10:52:14 -05:00
Zachary Yedidia
75a344ef56
Merge
2017-02-23 22:20:36 -05:00
Zachary Yedidia
ffebb58d92
Update autoclose
2017-02-23 22:20:33 -05:00
Zachary Yedidia
5024ecd640
Add colorscheme complete function
...
This function is not used at the moment.
2017-02-23 16:32:33 -05:00
Zachary Yedidia
043f7cdc47
Fix various linter and vet warnings
2017-02-21 13:07:37 -05:00
Zachary Yedidia
4d1ad52405
Fix find and replace counter
2017-02-20 18:33:44 -05:00
Samantha Marshall
bb55fc4150
fixing bug in closing tabs and not being able to select tabs
2017-02-20 18:01:29 -05:00
Zachary Yedidia
263eec7368
Resize all tabs on EventResize
...
Fixes #552
2017-02-20 13:08:14 -05:00
Zachary Yedidia
7b03f5bab2
Fix bold highlighting not working right
2017-02-20 09:28:37 -05:00
Samantha Marshall
e379239140
fixing hex number highlighting for nim
2017-02-19 16:04:42 -05:00
Zachary Yedidia
c1db99a5a5
Merge pull request #522 from samdmarshall/master
...
Redo of #516 -- Making micro a bit more user-friendly around the quitting behavior
2017-02-16 15:57:04 -05:00
Zachary Yedidia
fb2bf7a377
Merge pull request #520 from samdmarshall/tab-scrolling
...
adding tab scrolling and additional tab indicators
2017-02-16 15:51:19 -05:00
Zachary Yedidia
9404b731ec
Don't trim arguments for 'set'
2017-02-15 12:56:40 -05:00
Zachary Yedidia
d695d12872
Update go highlighting
2017-02-10 21:00:31 -05:00
TANIGUCHI Masaya
4c678c4936
add c++ linter
2017-02-08 15:11:23 +09:00
TANIGUCHI Masaya
97632e5573
add keywords
2017-02-08 14:36:39 +09:00
Zachary Yedidia
5dc8fe40ca
Add option to disable use of a the primary clipboard
...
Closes #544
2017-02-07 19:21:25 -05:00
Zachary Yedidia
28af256be0
Fix stringwidth build
2017-02-03 07:32:48 -05:00
Zachary Yedidia
c3a165e61d
Merge pull request #539 from samdmarshall/nim
...
Adding syntax and linter support for nim-lang
2017-02-02 23:00:12 -05:00
Zachary Yedidia
33e5dd4aed
Update runtime
2017-01-27 10:32:58 -05:00
Samantha Marshall
9122f152d1
fixing thestart/end syntax
2017-01-27 08:40:41 -05:00
Samantha Marshall
2202b32f31
finishing up syntax file
2017-01-26 15:50:54 -05:00
Samantha Marshall
15ab0b2fed
adding nim linter and syntax
2017-01-26 14:19:07 -05:00
DanielPower
f7560c3311
Add gruvbox truecolor colorscheme ( #530 )
...
* Add gruvbox truecolor colorscheme
* Fixed typo in gruvbox-tv, added operator type in colorschemes
* Added operator type to all default themes
* Changed operator to symbol
* changed operator to symbol due to name conflict
* Removed unused 'operator' field. Fixed gutter-error color
* Restored the statement group and removed operator
2017-01-20 14:32:34 -05:00
Samantha Marshall
ea57d8b883
Adding additional Python and Objective-C linting ( #524 )
...
* adding mypy and pylint to the linter plugin
* adding objective-c linting
* updating runtime file
2017-01-17 16:34:11 -05:00
Samantha Marshall
a7e5a5b26c
only prompt the user if they can close all buffers, otherwise it would be misleading
2017-01-10 10:18:49 -05:00
Samantha Marshall
ea0dda98ce
adding different functionality for closing a tab versus quitting micro
2017-01-10 10:13:21 -05:00
Nicolai Søborg
41fb57e449
Fix: incorrect clipboard w/ CutLine, DeleteLine and Search ( #508 )
...
* Fix: incorrect clipboard w/ CutLine, DeleteLine and Search
* Refactor: Add Cursor.CopySelection(clipboard)
2017-01-09 18:28:45 -05:00
Samantha Marshall
3783f0a9f0
adding tab scrolling and additional tab indicators
2017-01-04 14:24:13 -05:00
Zachary Yedidia
ae566920b6
Merge pull request #518 from samdmarshall/key-unbinding
...
Key unbinding
2017-01-04 13:56:34 -05:00
Zachary Yedidia
036ed7b9ed
Add SaveAs action
...
Fixes #509
2017-01-04 13:51:17 -05:00
Zachary Yedidia
5775b4c05d
Fix gutter coloring for soft wrap
...
Fixes #511
2017-01-04 13:29:57 -05:00
Samantha Marshall
29502e7f41
simplify the code around unbinding keys
2017-01-02 11:28:47 -05:00
Samantha Marshall
362d8eabae
Adding functionality to unbind keys
...
* adds new special-case keybinding to remove an existing default key binding.
* hides the show/close help text in the status line when no key is assigned to "ToggleHelp"
* updating documentation
2017-01-02 10:56:55 -05:00
Zachary Yedidia
143339dd67
Merge
2016-12-26 10:34:41 -05:00
Zachary Yedidia
7611c13d12
Better fix for mouse clicking
2016-12-26 10:33:41 -05:00
Zachary Yedidia
d49e366413
Merge pull request #507 from NicolaiSoeborg/master
...
Fix travis build (new imports for gopher-luar)
2016-12-25 10:56:53 -05:00
Nicolai
ac5fbd9515
Fix travis build (new imports for gopher-luar)
...
See
24588ee686
2016-12-25 15:42:18 +01:00
Zachary Yedidia
aef75f9b83
Fix bug with mouse clicks
...
Fixes #504
2016-12-24 15:34:01 -05:00
Zachary Yedidia
faec861081
Update php rules
2016-12-23 18:25:47 -05:00
Zachary Yedidia
2649b673f7
Merge
2016-12-22 18:34:15 -05:00
Zachary Yedidia
7958dc0592
Update php syntax rules
2016-12-22 18:34:10 -05:00
Zachary Yedidia
379a49f944
Merge pull request #488 from McSwaggens/removewhitespaces-setting
...
Added removewhitespaces setting
2016-12-22 17:49:49 -05:00
Daniel Jones
a311e07106
Changed removewhitespaces setting to keepautoindent
2016-12-23 09:44:57 +11:00
Zachary Yedidia
496fab031c
Merge
2016-12-22 16:38:24 -05:00
Zachary Yedidia
1a95f34b0e
Fix prompts not displaying
2016-12-22 16:38:20 -05:00
Zachary Yedidia
d560de4b40
Merge pull request #499 from 10sr/addrmtrailingws
...
[Proposal] Add feature to trim trailing whitespaces on save
2016-12-22 15:45:55 -05:00
Zachary Yedidia
0d9fc601ac
Merge pull request #489 from november-eleven/refactor/plugin-name
...
Enable human-friendly plugin name
2016-12-22 15:44:09 -05:00
Samantha Marshall
968d5be74e
fixing test, was using incorrect assignment syntax
2016-12-18 15:29:22 -05:00
Samantha Marshall
71ee042218
preventing messages from over-writing the current prompt message
2016-12-18 15:14:18 -05:00
Nicolai Søborg
37ae99ccd9
Fix: mouse clicking with softwrap
...
When clicking on a long line with softwrap turned on, the cursor will show up in the wrong location (`screenY` will be wrong in `GetSoftWrapLocation`). This seems to fix it.
2016-12-18 00:27:06 +01:00
10sr
701d0dfe3d
Add rmtrailingws feature
2016-12-17 11:33:48 +09:00
10sr
5b689a5592
Fix bug that eofnewline does not work on save
2016-12-15 16:29:50 +09:00
Colin Rioux
4e5aa4ecc8
Minor fix to documentation
2016-12-14 15:11:57 -05:00
Zachary Yedidia
5f50d79efa
Update docs
...
Fixes #486
2016-12-14 10:30:03 -05:00
theodus
4cb26d2e8e
move to new tab
2016-12-13 12:12:20 -05:00
Zachary Yedidia
1d41634272
Add missing word boundary to python regex
...
Fixes #490
2016-12-13 09:27:54 -05:00
Zachary Yedidia
32e8284505
Expand '~' in SaveAs
...
Fixes #491
2016-12-13 08:58:08 -05:00
Thomas LE ROUX
651cb89948
refactor(plugin): Enable human-friendly plugin name
2016-12-12 16:37:48 +01:00
Zachary Yedidia
63f18f033c
Update runtime
2016-12-11 16:43:07 -05:00
Daniel Jones
0558de12c6
Added removewhitespaces setting
2016-12-11 23:01:10 +11:00
Zachary Yedidia
d71ad04d98
Display colorscheme error message using TermMessage
2016-12-10 20:36:03 -05:00
Zachary Yedidia
73d14f5d37
Merge pull request #485 from sirikid/syntax-fix
...
Initial OCaml support (integer and real literals, comments)
2016-12-09 10:41:38 -05:00
Zachary Yedidia
291b1d1efc
Use shell to parse command when using JobStart
...
Also changed all occurrences of JobStart to JobSpawn in the linter
plugin.
2016-12-09 10:34:39 -05:00
Ivan Sokolov
57960bdc81
Initial OCaml support (integers and real literals, comments)
2016-12-08 18:11:56 +03:00
Ivan Sokolov
11e9419258
Simple fix for Pascal syntax highlighting
2016-12-08 05:03:00 +03:00
Zachary Yedidia
3f01f73ea9
Give error message if input is a directory
...
Fixes #479
2016-12-07 10:28:03 -05:00
Zachary Yedidia
67ac3f1a24
Fix string width for different sized tabs
...
Fixes #475
2016-12-06 09:09:24 -05:00
Rohan Allison
44fa0d77ff
Add Crystal language support ( #473 )
...
* ignore micro binary
* Add crystal syntax
* Add more crystal keywords; add character style
* Default character style to string
2016-12-05 18:07:27 -05:00
Nicolai Søborg
128dc9fea1
Log erroneous keybindings
2016-12-05 17:02:46 +01:00
10sr
92362093ab
Allow symlink plugin directory
2016-11-30 14:28:13 +09:00
Zachary Yedidia
6fbff048f0
Fix bug with opening empty files
2016-11-29 16:25:16 -05:00
Zachary Yedidia
370e667e91
Remove debug statements
2016-11-29 13:57:26 -05:00
Zachary Yedidia
eeaac76f5f
Use io.Readers to read files more efficiently
2016-11-29 13:44:30 -05:00
Zachary Yedidia
d13f9602ff
Merge pull request #449 from 10sr/jobSpawn
...
Add `JobSpawn()` function for plugin interface
2016-11-29 08:57:41 -05:00
Zachary Yedidia
400ac56651
Make tab.CurView public
2016-11-28 20:50:11 -05:00
Zachary Yedidia
5481a834bf
Actually rename width, height, lockWidth, lockHeight
2016-11-28 20:28:40 -05:00
Zachary Yedidia
e53229ec00
Make some view vars public
2016-11-28 20:23:22 -05:00
Zachary Yedidia
cee5a88341
Allow creating splits at arbitrary indices
2016-11-28 20:20:30 -05:00
Zachary Yedidia
1b92700990
Allow splits to be created in either direction
...
This commit adds the `splitRight` and `splitBottom` options to allow
the user to pick which direction to split in.
This also means that a new split is no longer just appended to the list
of splits.
2016-11-28 19:16:49 -05:00
Zachary Yedidia
78b2a99f2e
Display 'No name' for empty files
2016-11-28 12:52:45 -05:00
Zachary Yedidia
4e4b4bfe68
Don't open buffer if there was an error loading the file
2016-11-28 10:51:09 -05:00
Zachary Yedidia
543f840912
Order syntax files, with custom syntax files first
...
Fixes #460
2016-11-23 14:18:20 -05:00
Zachary Yedidia
ea31c662c5
Optimize startup
2016-11-23 11:56:12 -05:00
Zachary Yedidia
c9b9b3d27f
Update runtime
2016-11-20 11:07:04 -05:00
Zachary Yedidia
0fbae7610c
Fix buffer name problem
...
Fixes #458
2016-11-19 19:07:51 -05:00
Zachary Yedidia
c692570212
Replace CtrlO with open command
...
This comit also makes it possible for a binding to auto-type the
beginning of a command into command mode.
Closes #450
2016-11-19 12:57:54 -05:00
Zachary Yedidia
3ecdd96931
Add cd and pwd commands to change the working dir
...
Closes #451
2016-11-18 16:48:08 -05:00
10sr
7bc8d77387
Add Buffer.AbsPath and a plugin function DirectoryName ( #455 )
...
* Add Buffer.AbsPath
* Add a plugin function DirectoryName
* Update plugins.md
2016-11-18 11:53:48 -05:00
Zachary Yedidia
4ce02e4c85
Add foundation for resizing splits arbitrarily
...
This commit adds the ability to lock a split's width or height so
you can have splits that aren't equally sized. It isn't yet possible
for users to resize splits but the functionality has been implemented.
2016-11-16 12:36:48 -05:00
10sr
d70a2fe63d
Add plugin function JobSpawn
2016-11-16 14:06:12 +09:00
Zachary Yedidia
89c468924e
Fix rare out of bounds error with selections
...
Fixes #446
2016-11-11 20:12:21 -05:00
Zachary Yedidia
d0d167b663
Put linted classfiles in temp directory
...
Fixes #445
2016-11-09 17:30:25 -05:00
Zachary Yedidia
7c2baa6086
Add default ftoptions plugin to override settings
...
The ftoptions plugin will override values in settings.json based
on language requirements (e.g. using tabs in makefiles).
2016-11-08 09:34:12 -05:00
Zachary Yedidia
4c0b00bf2b
Reset ModTime even if WriteFile fails
...
Ref #440
2016-11-03 10:55:44 -04:00
Zachary Yedidia
b4b0eda7d9
Merge pull request #433 from ilius/pr03.python_syntax
...
Fixes in Python 2.7 syntax, add Python 3.x syntax
2016-10-29 10:20:41 -04:00
Jon Craton
55add69fa0
Removed duplicate paste code for OS-level paste
2016-10-28 23:15:55 -04:00
Zachary Yedidia
199c295f1f
Merge
2016-10-28 20:34:38 -04:00
Zachary Yedidia
ad0e098a25
Add ByteOffset and ToCharPos to plugin API
2016-10-28 20:34:28 -04:00
Jon Craton
9719e6caa7
Search entire file instead of line 1 to the number of lines in view
2016-10-28 19:42:17 -04:00
Saeed Rasooli
418720f6df
add python3 syntax highlighting (detect from header)
2016-10-28 21:01:44 +03:30
Saeed Rasooli
80bd2694d6
fixes in python (2.7) syntax file, and rename to python2.micro
...
constants: sort by name, and __file__, remove __import__
functions: add next, help, __import__
separate types (like int and str) from builtin functions
separate and comment out methods/attrs of standard library (why hightlight?)
comment out NonSenseTypes like IntType, they are never used in code
magic methods: add __dict__
exec and map are functions, not keyword
remove trailing spaces
2016-10-28 21:01:43 +03:30
Saeed Rasooli
f6b7aaebbd
Improvement: FindFileType: header regex should be prior to file extention
2016-10-28 21:01:43 +03:30
Zachary Yedidia
74610b8cd7
Fix problem with calculation Bottomline
...
Fixes #432
2016-10-26 12:29:23 -04:00
Zachary Yedidia
7492ab4de2
Add 'plugin available' command
...
Closes #413
2016-10-24 19:02:13 -04:00
Zachary Yedidia
63ccbc1ebd
Add eofnewline option
...
Closes #429
Enable with '> set eofnewline on'
2016-10-23 18:37:29 -04:00
Zachary Yedidia
ee553b7830
Add reload command
...
Closes #427
2016-10-21 11:51:36 -04:00
Zachary Yedidia
49397039e0
Update runtime
2016-10-19 10:34:09 -04:00
Zachary Yedidia
1b9bb31dd6
Cleanup and add more comments
2016-10-18 11:12:28 -04:00
Zachary Yedidia
8db3b22411
Merge
2016-10-18 08:58:31 -04:00
Zachary Yedidia
4aae5ca451
Fix dockerfile syntax file
...
Fixes #421
2016-10-18 08:58:09 -04:00
Jon Craton
cc9342df9d
Added OutdentLine action
2016-10-15 12:47:15 -04:00
Jon Craton
fe0dce0960
Added IndentString method on Buffer ( #415 )
...
* Added IndentString function to retrun the string used for indentation (n-spaces or a tab) based on buffer settings
* Combined redundant statements
* Removed duplicate leading whitespace check
* Better IndentString description
* Fixed remainder logic that I broke
2016-10-15 10:09:20 -04:00
Jon Craton
78b0aac5ec
DuplicateLine now duplicates the current selection if there is text selected
2016-10-14 22:22:48 -04:00
Jon Craton
690627a338
Refactored IndentSelection and OutdentSelection to remove duplicate code ( #414 )
...
* Refactored indent selection
* Refactored OutdentSelection
* Refactored to use x and y instead of line and j
2016-10-14 16:52:55 -04:00
Zachary Yedidia
4db7f33eaf
More fixes to search and replace
2016-10-13 20:47:33 -04:00
Zachary Yedidia
d3c5e3ab47
Improvements for softwrap mouse support
2016-10-13 17:09:15 -04:00
Zachary Yedidia
b13c6c4892
Fix problem with regexes in search and replace
...
Fixes #410
2016-10-13 14:59:57 -04:00
Zachary Yedidia
c50dda244b
Fix mouse support with soft wrap
2016-10-13 14:26:45 -04:00
Zachary Yedidia
3fdc2ca0da
Always use the selection as search term when using quick search
2016-10-13 12:12:55 -04:00
Zachary Yedidia
6b7ca3c559
Merge pull request #409 from ilius/pr02.improve_search_escape
...
Improve Search behaviour, and Escape key behaviour
2016-10-13 12:10:11 -04:00
Zachary Yedidia
5c2a2b1b7e
Fix problem with horizontal scrolling
2016-10-12 22:05:24 -04:00
Zachary Yedidia
69e45f9a4f
Fix problem causing hsplits not to display
2016-10-12 22:03:16 -04:00
Saeed Rasooli
127ebc15b9
Improvement: improve Search behaviour, and Escape key behaviour
2016-10-13 00:49:43 +03:30
Zachary Yedidia
ea1de18326
Add docs
2016-10-12 16:34:34 -04:00
Zachary Yedidia
edd25c68ee
Fix glitch with bottomline when softwrap is disabled
2016-10-12 16:30:32 -04:00
Zachary Yedidia
e30a4139e6
Add softwrap
2016-10-12 16:24:00 -04:00
Saeed Rasooli
546acfd21d
Fixes in last PR: MoveLinesUp and MoveLinesDown ( #408 )
...
* Bugfix: fix panic in MoveLinesUp when moving up the *last* line
* Bugfix: don't panic in Buffer.Line if index is out or range
* clean MoveLinesDown since it won't work for the last line anyway, add comment
* Cleanup: replace spaces with tabs in MoveLinesUp and MoveLinesDown
2016-10-12 11:38:44 -04:00
Saeed Rasooli
0bf07eadcc
Improvement: move MoveLinesUp and MoveLinesDown to Buffer
...
enables Undo/Redo with EventHandler, #407
2016-10-12 08:15:46 +03:30
Saeed Rasooli
c1dd403ab9
Feature: add MoveLinesUp (Alt + Up) and MoveLinesDown (Alt + Down) actions
2016-10-12 08:15:46 +03:30
Zachary Yedidia
d163637fa8
Update docs
2016-10-11 09:13:03 -04:00
Zachary Yedidia
905d4d7020
Make monokai the default colorscheme
...
Monokai is a better default colorscheme because it has a better 16
color approximation than zenburn. On 16 color terminals, it looks like
zenburn is not syntax highlighting anything.
2016-10-11 09:09:56 -04:00
Zachary Yedidia
f85dd77036
Merge
2016-10-10 21:44:48 -04:00
Zachary Yedidia
8f5f8ffdd6
Fix tabstop sizing with mix of tabs and spaces
...
Fixes #404
2016-10-10 21:44:16 -04:00
Zachary Yedidia
b09093f78c
Merge
2016-10-10 18:40:48 -04:00
Zachary Yedidia
104699e500
Use default foreground for empty indent chars
...
Fixes #403
2016-10-10 18:40:21 -04:00
Zachary Yedidia
38bf8c0225
Temporary fix for plugin panic
...
Fixes #402
2016-10-07 20:34:03 -04:00
Zachary Yedidia
6acda994e4
Update docs and readme
2016-10-06 20:36:37 -04:00
Zachary Yedidia
e563211790
Make linter a default plugin once again
2016-10-06 20:28:10 -04:00
Zachary Yedidia
aa624d86e6
Move linter and go plugins to their own repos
...
The linter and go plugins are no longer 'default'. Their installation
should be handled by the plugin manager: `> plugin install go` and
`> plugin install linter`.
The autoclose plugin will remain a default plugin because it provides
a more essential feature.
Closes #397
2016-10-06 17:18:53 -04:00
Zachary Yedidia
c410b7b2ce
Improve plugin manager error feedback
2016-10-06 13:39:57 -04:00
Zachary Yedidia
921b828afb
Add some documentation about plugin manager
2016-10-05 18:26:41 -04:00
Zachary Yedidia
d3d35bd9ff
Add more descriptive error messages for plugin installation failures
...
Ref #378
2016-10-05 18:00:05 -04:00
Zachary Yedidia
76a328a062
Use official plugin channel
...
Use the channel for official plugins from
https://github.com/micro-editor/plugin-channel
Ref #378
2016-10-05 17:57:03 -04:00
Zachary Yedidia
fb90e169cb
Only allow one package per repository
...
This may be temporary.
Ref #378
2016-10-05 17:52:39 -04:00
Zachary Yedidia
a1a307d858
Merge pull request #378 from boombuler/pm
...
Plugin-Manager
2016-10-05 17:51:22 -04:00
Zachary Yedidia
3733e7e223
Add 'Unsplit' action and VSplit and HSplit actions
...
This commit adds the 'Unsplit' action used to close all splits except
the current one.
It also adds the 'VSplit' and 'HSplit' actions which open empty
vertical/horizontal splits so you can bind them to keys.
Closes #228
2016-10-04 11:08:32 -04:00
boombuler
3e8a587aa3
changed json5 repo
2016-10-02 07:57:39 +02:00
boombuler
8f2f1f8c1d
skip core dependencies if micro was build with an unknown version.
2016-10-01 09:28:48 +02:00
boombuler
a940ce3036
allow user to set plugin channels / repos in settings.json
2016-10-01 08:37:04 +02:00
boombuler
d7da72a720
fix plugin zips which contain a root directory
2016-10-01 08:05:05 +02:00
boombuler
b54853140a
new command plugin list
...
this command shows all currently installed plugins and their verion
2016-10-01 07:37:20 +02:00
boombuler
8ad2179423
Merge remote-tracking branch 'zyedidia/master' into pm
2016-10-01 07:20:21 +02:00
Zachary Yedidia
3037d72bcb
Fix more tabnum issues
...
Fixes #395
2016-09-30 07:29:24 -04:00
Zachary Yedidia
7d16e97b95
Switch to my fork of json5
...
This should reduce go get download times for micro considerably
because the original json5 committed a bunch of binaries which
cause the repository to be very large and slow to download.
My fork fixes that.
2016-09-29 18:43:10 -04:00
Zachary Yedidia
0293b774f3
Fix SplitTree tab index
...
Fixes #392
2016-09-29 14:23:25 -04:00
Zachary Yedidia
32cd94b88f
Minor optimization to tabsize fix
2016-09-28 18:08:06 -04:00