Zachary Yedidia
6b7c04b421
Add Dracula colorscheme to defaults
...
See https://draculatheme.com/micro .
2020-12-20 01:08:41 -05:00
Zachary Yedidia
c13acf6b19
Merge
2020-12-17 21:55:59 -05:00
Zachary Yedidia
3b34a021e3
Improve file permission detection
...
Mark files as readonly automatically if write permission is denied.
Display errors when opening files (except for non-existence errors).
Fixes #1224
2020-12-17 21:54:18 -05:00
Zachary Yedidia
4c21808c6c
Remove clipboard error message
2020-12-16 21:35:07 -05:00
Carlos Henrique Guardão Gandarez
7a5f7e443a
Make more libraries available ( #1917 )
...
* Make more libraries available to plugin dvelopment
* Add Unzip function to util
2020-11-21 01:46:17 -05:00
Zachary Yedidia
7df04a58eb
Clear prompt before callback
...
Ref #1913
2020-11-16 14:07:22 -05:00
Zachary Yedidia
f3b21362f3
Disable fake cursor for Windows Terminal
...
Ref #1900
2020-11-06 13:45:34 -05:00
Zachary Yedidia
95fea064b0
Fix internal string binding representation
2020-11-05 15:52:25 -05:00
Zachary Yedidia
5d230754a8
Merge
2020-11-05 15:39:29 -05:00
Zachary Yedidia
19067a9bf0
Enable ignorecase by default
...
Closes #1908
2020-11-05 15:39:05 -05:00
Dmitry Maluka
298fa40f90
Fix buffer.RuneAt ( #1895 )
...
Fix buffer.RuneAt returning the rune not at the given location (as the
documentation claims) but just before it.
2020-10-19 20:36:14 -04:00
Dmitry Maluka
23162f7a34
Add tabbar.active color group ( #1831 )
...
Added tabbar.active color group for displaying the name of the active
tab in the tabbar with different colors.
If tabbar.active is not defined in the colorscheme, the active tab name
is displayed with the same colors as inactive ones.
Ref #1646
2020-10-17 20:53:08 -04:00
Dmitry Maluka
92e9060bcd
Fix suggestions display ( #1825 )
...
Fix the following bugs:
- If a split pane is not at the left edge of the screen, the statusline
with suggestions for it is displayed at wrong place.
- When keymenu is enabled, the statusline with suggestions is not
displayed at all.
2020-10-17 20:48:39 -04: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
c26a365f5c
Enable xterm automatically if screen init fails
2020-09-15 01:11:59 -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
96601a915d
Replace meta with alt automatically, update tcell
2020-09-05 21:59:19 -04:00
Zachary Yedidia
11104fd093
Update to tcell v2
2020-09-05 14:52:35 -04:00
Zachary Yedidia
f35f507832
Never backup closed buffers
2020-09-04 13:36:23 -04:00
Dmitry Maluka
c9b0451a33
AddToHistory function for plugins ( #1830 )
...
Add InfoBuf's method AddToHistory function which adds a new item
to the history for the prompt type `ptype`.
This function is not used by micro itself. It is useful for plugins
which add their own items to the history, bypassing the infobar
command line.
2020-08-23 15:47:14 -04:00
Dmitry Maluka
c7e72220dd
Add scrollbar color group ( #1840 )
...
Ref #1837
2020-08-23 15:45:43 -04:00
Dmitry Maluka
7e19b68426
Avoid duplicate entries in history ( #1822 )
2020-08-13 01:38:50 -04:00
Zachary Yedidia
c5bafbc1c5
Merge
2020-08-12 01:18:18 -04:00
Zachary Yedidia
6b80870dfd
Don't auto-relocate mouse events
2020-08-12 01:18:15 -04:00
Zachary Yedidia
5cb618c466
Improve showkey command
2020-08-11 22:18:10 -04:00
Zachary Yedidia
352f57cf11
Enable registering raw events
...
Fixes #1821
2020-08-11 14:36:58 -04:00
Zachary Yedidia
1e83e666fb
Don't overwrite user bindings
...
This fix still needs more work.
Ref #1821
2020-08-11 01:43:41 -04:00
Zachary Yedidia
c837a7d0b7
Ref #1819
2020-08-10 20:34:10 -04:00
Zachary Yedidia
63d45bc9c5
Fix JobSend stdin
2020-08-10 12:24:29 -04:00
Zachary Yedidia
0283c01432
Record events in cursor
2020-08-09 16:42:03 -04:00
Zachary Yedidia
bbd6f559ab
Allow configuration for info/term bindings
...
This commit exposes the separate infopane bindings to configuration
from the user. This also adds support for separate bindings in the
terminal emulator view. Default bindings are provided, but can also
be rebound in bindings.json.
2020-08-09 16:42:03 -04:00
Zachary Yedidia
2363a4019b
Separate bindings for buffers and command bar
...
This commit separates actions in the command bar from actions in
a normal buffer, and implements what is needed to allow rebinding,
although an interface for command bar keybindings is not yet exposed
to the user.
2020-08-09 16:42:03 -04:00
Zachary Yedidia
d33c28eeb8
Preliminary support for key sequences
...
This commit adds support for binding key sequences such as
"<Ctrl-x><Ctrl-c>". This commit does not solve the problem
of global bindings yet, and therefore the command bar doesn't
work properly in this commit.
2020-08-09 16:42:03 -04:00
Zachary Yedidia
5ff8b3791d
Basic implementation of KeyTree
2020-08-09 16:42:03 -04:00
Zachary Yedidia
6c53407e6d
Improve internal keyevent names
2020-08-09 16:42:03 -04:00
Zachary Yedidia
dd54a64746
Initialize t.release to true
2020-08-04 18:41:14 -04:00
Dmitry Maluka
6e43af31cb
Fix non-working split resize with mouse drag ( #1811 )
...
Fix the 2nd part of #1773 : resize via mouse drag doesn't work if the
split on the left contains other splits, i.e. is not a leaf node.
The problem is that only leaf nodes have unique id. For non-leaf nodes
ID() returns 0. So we shouldn't search the node by id.
So replace GetMouseSplitID() with GetMouseSplitNode().
2020-08-04 18:37:19 -04:00
Dmitry Maluka
a4cc5a4146
Fix erased vertical dividing line ( #1810 )
...
Fix the 1st part of #1773 : the dividing line between vertical splits
is not displayed if the split on the left contains other splits, i.e.
is not a leaf node.
2020-08-04 18:33:16 -04:00
Zachary Yedidia
95ec55fbbf
Check error in terminal emulator
2020-07-27 17:43:55 -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
a45591a24d
Read paste option in screen init
...
Fixes #1767
2020-07-10 12:26:15 -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