Ali Kefia
1a5518ebbb
Shellcheck as a new shell linter + runtime.go out of git control ( #2157 )
...
* shellcheck as a new shell linter + runtime.go out of git control
* keep runtime.go and keep both shfmt and shellcheck since we can remove from custom conf
2021-07-16 15:01:50 -04:00
Zachary Yedidia
56c7744e23
Fix erlang comment syntax
2021-05-31 20:26:32 -04:00
Dmitry Maluka
965e43ebf1
Implement word wrapping
...
Fixes #264
Fixes #1644
2021-04-08 23:54:10 +02:00
Zachary Yedidia
975e78d9c0
Remove conf highlighting (too many conflicts)
...
Fixes #2031
The conf highlighter interferes with many more specific highlighters and
doesn't provide much value on its own.
2021-02-20 14:27:58 -05:00
Zachary Yedidia
c21b85929f
gofmt
2021-01-27 22:52:40 -05:00
Zachary Yedidia
c3a17a71be
Rename to incsearch
2021-01-27 13:49:38 -05:00
Zachary Yedidia
120cd02b30
Merge branch 'PR-find-on-type' of https://github.com/ilius/micro into ilius-PR-find-on-type
2021-01-27 13:48:01 -05:00
Siddhant N Trivedi
cf35b8021c
Fix some quality issues ( #1914 )
...
* Add .deepsource.toml
* Fix unnecessary typecasting on `bytes.Buffer`
* Fix check for empty string
* Replace nested if block with else-if
* Replace nested if block with else-if
* Replaced string.Replace() with string.ReplaceAll where n<0
* Remove deepsource toml file
Signed-off-by: siddhant-deepsource <siddhant@deepsource.io>
Co-authored-by: DeepSource Bot <bot@deepsource.io>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2021-01-09 13:39:21 -05:00
Saeed Rasooli
dd37ad5ce4
add settings option "findontype" to allow disabling search-on-type
2021-01-04 10:30:47 +03:30
Zachary Yedidia
54c23cae72
Merge branch 'python-highlight-zero' of https://github.com/a11ce/micro into a11ce-python-highlight-zero
2020-12-27 18:42:53 -05:00
Zachary Yedidia
ecde9a53d7
Update runtime
2020-12-20 14:53:04 -05:00
Zachary Yedidia
6b7c04b421
Add Dracula colorscheme to defaults
...
See https://draculatheme.com/micro .
2020-12-20 01:08:41 -05:00
a11ce
1e5f8c020e
Highlight 0 as a constant number in python3
2020-12-15 18:57:28 -05:00
Zachary Yedidia
95fea064b0
Fix internal string binding representation
2020-11-05 15:52:25 -05:00
Zachary Yedidia
19067a9bf0
Enable ignorecase by default
...
Closes #1908
2020-11-05 15:39:05 -05:00
Zachary Yedidia
a424a0dca1
Fix autosave not running by default
2020-10-08 23:33:34 -04:00
Zachary Yedidia
cfcb2e4577
Update runtime
2020-10-06 17:39:20 -04:00
Zachary Yedidia
49786cf8c3
Fix palette colors with tcell v2
2020-09-21 01:21:59 -04:00
Sourya Vatsyayan
fc3dd9a62f
Fix quality issues ( #1856 )
...
* Add .deepsource.toml
* Remove unnecessary comparison with bool
* Remove unnecessary use of slice
* Replace multiple `append`s with one
* Remove unnecessary wrapping of function call
* Fix check for empty string
* Simplify error creation with `fmt.Errorf`
* Fix defers before error check
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove untrappable `os.Kill` signal
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove empty else branch
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Add missing error check
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Merge variable declaration and assignment
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove unnecessary `nil` check
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Revert changes to generated files
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
* Remove .deepsource.toml
Signed-off-by: sourya_deepsource <sourya@deepsource.io>
Co-authored-by: DeepSource Bot <bot@deepsource.io>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2020-09-16 00:08:01 -04:00
Zachary Yedidia
fcfec28d79
Don't highlight parens in default theme
2020-09-13 20:25:02 -04:00
Zachary Yedidia
5044ccf6bb
Update keybinding docs
...
Also updates the pane type of `info` to `command` which is a more
descriptive name.
2020-09-06 17:38:23 -04:00
Zachary Yedidia
11104fd093
Update to tcell v2
2020-09-05 14:52:35 -04:00
Zachary Yedidia
352f57cf11
Enable registering raw events
...
Fixes #1821
2020-08-11 14:36:58 -04:00
Zachary Yedidia
c837a7d0b7
Ref #1819
2020-08-10 20:34:10 -04:00
Zachary Yedidia
015e7c7b83
Don't update internal plugins
...
Ref #1792
2020-07-22 15:40:40 -04:00
Ryan Westlund
1f27f51f9a
Add syntax support for Renpy ( #1789 )
2020-07-22 15:26:37 -04:00
franekjel
1a89d2095d
Support for multiple modifiers in colorschemes ( #1772 )
...
* Support for multiple modifiers (eg. "bold italic")
* Test for multiple modifiers (bold + italic + underline)
2020-07-14 17:58:03 -04:00
Zachary Yedidia
781a2dd826
Add flake8 linter, postinit and preinit
...
Closes #1768
2020-07-13 13:28:26 -04:00
Zachary Yedidia
a52dbb2142
Fix swift linting problem
2020-07-09 18:08:14 -04:00
Zachary Yedidia
41a27cc58a
Update linter to include eslint
...
Ref #1766
2020-07-09 18:04:40 -04:00
Zachary Yedidia
3d387732c4
Update linter documentation
...
Ref #1766
2020-07-09 17:58:42 -04:00
Zachary Yedidia
806525c3da
Improve comment plugin
...
When commenting a selection, the plugin won't just toggle each
line individually but will only uncomment the block if it is all
comments.
The comment plugin also now takes into account any number of spaces
between the comment character and the text. For example '//comment' will
be uncommented properly, as well as '// comment'.
Fixes #1758
2020-07-05 15:48:49 -04:00
Zachary Yedidia
aeb5563df0
Update runtime
2020-07-04 20:06:37 -04:00
Zachary Yedidia
f143418267
Add support for copy-paste via OSC 52
...
Ref #1754
2020-07-04 20:00:39 -04:00
Zachary Yedidia
977290d77b
Improve php string highlighting
...
Fixes #1753
2020-07-01 23:38:47 -04:00
Ryan Westlund
e946d9eddf
Improve Haskell syntax highlighting ( #1745 )
2020-06-26 17:53:43 -04:00
Zachary Yedidia
60846f549c
Update plugin documentation
2020-06-24 17:24:45 -04:00
Zachary Yedidia
5f62f550f3
Add more functions to customize status bar
...
Adds `status.lines`, `status.vcol`, `status.bytes`, `status.size`,
and exposes some functions from go-humanize to plugins.
Ref #1727
2020-06-24 17:19:42 -04:00
Zachary Yedidia
db1df05017
Support month and day names in crontab syntax
...
Ref #1739
2020-06-24 16:33:22 -04:00
Zachary Yedidia
05cbc310f3
Use boundaries in cron syntax rules
...
Fixes #1739
2020-06-24 16:00:56 -04:00
Zachary Yedidia
687e4bdc25
Don't delete user settings if a parse error occurs
2020-06-23 17:29:20 -04:00
Zachary Yedidia
a8332fd316
Improve backup system
...
This commit introduces several improvements to the backup system.
* Backups are made every 8 seconds for buffers that have been modified
since the last backup.
* The `permbackup` option allows users to specify that backups should
be kept permanently.
* `The backupdir` option allows users to store backups in a custom
directory.
Fixes #1641
Fixes #1536
Ref #1539 (removes possibility of race condition for backups)
2020-06-22 17:54:56 -04:00
Zachary Yedidia
4d13308624
Persist plugin options correctly
2020-06-20 20:07:33 -04:00
Zachary Yedidia
891b117a33
Bind Ctrl-/ (CtrlUnderscore) in comment plugin
2020-06-18 17:18:34 -04:00
Zachary Yedidia
b8ec7b320a
Add note for macOS terminals in docs
2020-06-12 14:20:26 -04:00
Ján Priner
b2261fc225
Add latex support in comment plugin ( #1725 )
2020-06-12 12:58:51 -04:00
Zachary Yedidia
660d345880
Don't apply cli options to settings.json
2020-06-08 22:19:15 -04:00
Zachary Yedidia
ae05ff1811
settings.json only contains modified settings
...
If a setting has a default value it will not be listed in settings.json.
2020-06-08 15:33:38 -04:00
Zachary Yedidia
140662f1ec
Verify that all settings have correct type
...
This prevents crashes that occur when the user has put the wrong
type for a setting manually in the settings.json file.
2020-06-07 17:31:16 -04:00
Zachary Yedidia
466889f540
Fix fileformat for newly created files
...
Fixes #1575
2020-06-06 15:56:13 -04:00