Zachary Yedidia
19067a9bf0
Enable ignorecase by default
...
Closes #1908
2020-11-05 15:39:05 -05: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
f143418267
Add support for copy-paste via OSC 52
...
Ref #1754
2020-07-04 20:00:39 -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
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
eeab114ed5
Add parsecursor
option for file:line:col syntax
...
This option is disabled by default, and when enabled causes micro
to parse `:line:col` as a location for the cursor rather than
as part of the filename.
Closes #1650
Closes #1685
2020-05-29 14:55:24 -04:00
Colin Hughes
00edf0207f
Added hybrid line numbers ( #1690 )
...
* Added hybrid line numbers
* Changed rulerhybrid to relativeruler, modified documentation accordingly.
* Reverted go.mod and go.sum
I don't know how they got changed but they are good now.
Co-authored-by: Colin Hughes <semilin@pop-os.localdomain>
2020-05-28 22:24:09 -04:00
Zachary Yedidia
bfe68b1626
Allow divider customization with divchars option
...
Adds the `divchars` and `divreverse` options to customize divider
styles.
2020-05-21 14:35:54 -04:00
Zachary Yedidia
eff89a98a7
Fix v2 import path for go mod
2020-05-04 10:16:15 -04:00
Zachary Yedidia
d78fe81e21
line_array insert for eofnewline and make default
...
Makes the `eofnewline` option enabled by default.
Fixes #1525
2020-02-24 22:31:05 -05:00
Zachary Yedidia
087e7207f7
Add 'xterm' option
...
Ref #1489
2020-02-15 12:53:17 -05:00
Zachary Yedidia
600d8558b2
Change some default option values
2020-02-13 20:51:56 -05:00
Zachary Yedidia
5519f053ac
Merge branch 'autosu' of https://github.com/seitokaichou/micro into seitokaichou-autosu
2020-02-12 14:15:30 -05:00
Zachary Yedidia
7b5bc8fe37
Fix issue with global/local settings
2020-02-12 13:18:59 -05:00
Zachary Yedidia
695d4c2b1b
Use filepath.Join more
2020-02-11 13:09:17 -05:00
Zachary Yedidia
ecb9fd5a8a
Change diffgutter default to false
2020-02-10 00:30:13 -05:00
Zachary Yedidia
bdf9e6d3a4
Merge branch 'diff-gutter' of https://github.com/p-e-w/micro
2020-02-10 00:28:43 -05:00
Zachary Yedidia
6514b77e0d
Enable autosave option
...
The autosave option is now specified as an integer, which denotes
the number of seconds to wait between saving the file. If the option
is 0, then autosaving is disabled. If the option is given by the user
as a boolean, it will be converted to 8 if true, and 0 if false.
Fixes #1479
2020-02-08 16:53:08 -05:00
Philipp Emanuel Weidmann
de33eac058
Add diff gutter
2020-02-08 13:26:24 +05:30
Zachary Yedidia
106ba48079
Add some docs for linter, comment, status
2020-02-07 11:32:12 -05:00
Zachary Yedidia
6a1b8f4a4f
Add option to clean unused settings and other parts of config
2020-02-02 15:30:06 -05:00
Zachary Yedidia
dba8ef2fdd
Use namespaces for plugin options
2020-02-02 14:35:30 -05:00
Zachary Yedidia
bcb1947a0a
Add plugin manager
2020-02-01 23:54:38 -05:00
Zachary Yedidia
b0b5d7b392
Add CurPane and CurTab functions for plugins
2020-02-01 12:20:08 -05:00
Zachary Yedidia
0abe427026
Make readonly and filetype local-only
2020-01-20 22:03:32 -05:00
Zachary Yedidia
dc4da37908
Add "paste" option to enable aggressive pasting
...
Ref #1043
2020-01-02 12:42:39 -05:00
Zachary Yedidia
e98be1a1e5
Update deps
2020-01-01 20:44:45 -05:00
Zachary Yedidia
8570ff9a8c
Remove autosave option
...
With the new backup option, the autosave option is no longer useful.
Since it never really worked well in the first place, it has been
removed.
Closes #1420
2019-12-26 14:35:48 -05:00
Zachary Yedidia
a95dab078e
Minor edit to statusline format
...
Ref #1432
2019-12-26 12:25:42 -05:00
Zachary Yedidia
a86a6c464e
Start implementing backup system
2019-12-25 17:05:11 -05:00
Zachary Yedidia
ba594abfad
Clearer status bar
2019-12-25 17:05:11 -05:00
Zachary Yedidia
199d65017f
Auto init settings if config doesn't exist
2019-12-25 17:05:11 -05:00
Zachary Yedidia
d1e713ce08
Add better matchbrace
2019-12-25 17:05:11 -05:00
Zachary Yedidia
c0293b5d0e
Add autosave option
2019-12-25 17:05:11 -05:00
Zachary Yedidia
ccb5904591
Add mkparents option
2019-12-25 17:05:11 -05:00
Zachary Yedidia
9eed8bc247
Remove local settings
2019-12-25 17:05:11 -05:00
Zachary Yedidia
be136a4648
Full extensible linter support
2019-12-25 17:05:10 -05:00
Zachary Yedidia
55e33badd0
Add readonly option
2019-12-25 17:05:10 -05:00
Zachary Yedidia
809b95d290
Add reset command and statusline format string options
2019-12-25 17:05:10 -05:00
Zachary Yedidia
7cd5024e34
Small fixes
2019-12-25 17:05:10 -05:00
Zachary Yedidia
0612af1590
Change project layout and use go.mod
2019-12-25 17:05:10 -05:00