Dmitry Maluka
965e43ebf1
Implement word wrapping
...
Fixes #264
Fixes #1644
2021-04-08 23:54:10 +02:00
Dmitry Maluka
c5798b5b8c
Fix softwrap scrolling issues ( #1981 )
...
Softwrap implementation enhanced to fix various issues with scrolling,
centering, relocating etc.
The main idea is simple: work not with simple line numbers but
with (Line, Row) pairs, where Line is a line number in the buffer
and Row is a visual line (a row) number within this line.
The logic remains mostly the same, but simple arithmetic operations
on line numbers are replaced with corresponding operations on
(Line, Row) pairs.
Fixes #632 , #1657
2021-04-07 16:18:51 -04:00
Zachary Yedidia
c3a17a71be
Rename to incsearch
2021-01-27 13:49:38 -05:00
Saeed Rasooli
dd37ad5ce4
add settings option "findontype" to allow disabling search-on-type
2021-01-04 10:30:47 +03:30
Dmitry Maluka
83b3efc9de
Document undocumented colorscheme groups ( #1939 )
2020-12-20 00:35:57 -05:00
Alekhine51
3fb5a7053f
Added a sentence to colors.md clarifying that the truecolor environment variable has to be created by the user. ( #1928 )
2020-12-08 22:43:37 -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
19067a9bf0
Enable ignorecase by default
...
Closes #1908
2020-11-05 15:39:05 -05:00
Marduk Bolaños
225b24f356
Fixed help topic name ( #1876 )
...
The help topic is called `commands` not `command`
2020-10-06 16:55:47 -04:00
Zachary Yedidia
530041ac70
Fix typo
...
Closes #1869
2020-09-23 21:54:25 -04:00
Zachary Yedidia
ad16f1756b
Remove test option
...
Fix #1857
2020-09-14 00:05:35 -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
Bartek Pacia
3ba03cca15
fix spelling ( #1828 )
2020-08-17 13:04:44 -04:00
Zachary Yedidia
c837a7d0b7
Ref #1819
2020-08-10 20:34:10 -04:00
Zachary Yedidia
781a2dd826
Add flake8 linter, postinit and preinit
...
Closes #1768
2020-07-13 13:28:26 -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
Utkarsh Gupta
b748d0c383
Drop unnecessary Ftoa and FtoaWithDigits function ( #1751 )
...
Fixes : #1749
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
2020-06-30 13:19:27 -04:00
Zachary Yedidia
60846f549c
Update plugin documentation
2020-06-24 17:24:45 -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
a584ff36de
Merge
2020-06-17 23:14:03 -04:00
Zachary Yedidia
f5405cee18
Improve keybinding label consistency
...
The old notation (for example `CtrlG`) causes confusion when combined
with new notation needed for alt (`Alt-g`) due to Alt being case
sensitive. Previously both formats were supported, but the documentation
and defaults used a combination. This commit only uses the new notation
for consistency.
Ref #1470
2020-06-17 23:11:50 -04:00
Matthias
c19dce87e4
Fix typo in defaultkeys ( #1730 )
2020-06-17 13:35:59 -04:00
Zachary Yedidia
fde4b92b9f
More consistent key labels in docs
2020-06-12 14:41:57 -04:00
Zachary Yedidia
b8ec7b320a
Add note for macOS terminals in docs
2020-06-12 14:20:26 -04:00
Zachary Yedidia
466889f540
Fix fileformat for newly created files
...
Fixes #1575
2020-06-06 15:56:13 -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
d7ab44253f
Update tcell and support italics in colorschemes
...
Closes #1640
2020-05-17 12:48:34 -04:00
Zachary Yedidia
0a6720498f
Merge branch 'master' of https://github.com/zyedidia/micro
2020-05-17 12:23:21 -04:00
Zachary Yedidia
c46257222c
Add support for FindLiteral
...
Use the FindLiteral action to use Find without regex support.
Fixes #1661
2020-05-17 12:22:33 -04:00
Jeff Warner
d0f7ecf9ca
Adds command "tabmove ±n", for better tab management ( #1636 )
...
* Adds command "tabmove ±n", for better tab management
* Added tabmove to help:commands
* Replace uses of util.Min, util.Max with util.Clamp
Browsing code and discovered `util.Clamp`, ideal for this section of my code
* oops, missed an arg
* Typo, again
2020-05-14 21:51:49 -04:00
Jeff Warner
5d3e4fc3d9
Adds CopyLine action, the new default action for CtrlC if cursor has no selection
2020-04-29 21:06:54 -07:00
Ján Jančár
f0da73bae2
Add StartOfTextToggle and SelectToStartOfTextToggle actions. ( #1612 )
...
These actions reintroduce the behavior of micro where the Home key
toggles between the start of text (first) and the start of the line.
The same applies for the variant with selection. This commit also
sets these bindings as the defaults.
2020-04-10 17:21:02 -04:00
Ján Jančár
052a36b896
Fix docs regarding "Home" key and "StartOfText" and "StartOfLine". ( #1611 )
2020-04-07 12:58:30 -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
dff8b33e9c
Apply basename option in tabbar as well
2020-02-24 13:48:37 -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
Tonus1
8348cc8ec2
Add transparency ( #1509 )
2020-02-13 18:15:32 -05:00
Zachary Yedidia
a7ce85d6f6
Make default plugin options more explicit
...
Ref #1305
2020-02-12 15:34:13 -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
12c286f9b1
Introduce IndentLine action
...
Closes #1476
2020-02-12 13:30:24 -05:00
Zachary Yedidia
bf1258578c
Expose OpenLogBuf to plugins
2020-02-12 12:35:40 -05:00
Zachary Yedidia
4f628bf30b
Remove incorrect plugin documentation
2020-02-12 00:22:32 -05:00
Zachary Yedidia
e1e310a96e
Document all options
2020-02-10 15:07:00 -05:00
Kyle Barron
d65285ee54
Update documentation to include Material colorscheme ( #1279 )
2020-02-10 14:53:27 -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
ce91e41e5a
Update third party licenses
2020-02-09 00:03:03 -05:00
Zachary Yedidia
57c34e2248
More plugin docs and improve doc formatting
2020-02-08 18:31:06 -05:00
Philipp Emanuel Weidmann
de33eac058
Add diff gutter
2020-02-08 13:26:24 +05:30
Zachary Yedidia
674258787e
Add Mac special cases
2020-02-07 20:16:59 -05:00
Zachary Yedidia
2354412922
Add mac keybinds
2020-02-07 20:14:35 -05:00
Zachary Yedidia
3ac30343b8
Merge branch 'fix_defaultkeys_help' of https://github.com/neutralinsomniac/micro into neutralinsomniac-fix_defaultkeys_help
2020-02-07 20:09:44 -05:00
Zachary Yedidia
98ddb62af4
Update docs
2020-02-07 19:41:11 -05:00
Zachary Yedidia
106ba48079
Add some docs for linter, comment, status
2020-02-07 11:32:12 -05:00
Zachary Yedidia
f5e1f93ee5
Update docs
2020-02-06 19:26:27 -05:00
Jeremy O'Brien
abcdeb01e9
Fix defaultkeys help doc to match reality
2020-01-31 13:10:11 -05:00
Zachary Yedidia
d965e8de4f
Fix copy-paste error in docs
2020-01-26 21:39:10 -05:00
Zachary Yedidia
1dc1c65565
Update tutorial docs
2020-01-21 20:37:51 -05:00
Zachary Yedidia
b3e40a2644
Make debug mode flag, plugins can access logbuf
2020-01-15 22:25:08 -05:00
Zachary Yedidia
f3e8413e77
More doc updates
2020-01-06 00:01:49 -05:00
Zachary Yedidia
f2a1e2337f
Update tcell to include true color fix
...
Fixes #1452
2020-01-05 21:26:53 -05:00
Zachary Yedidia
afb03aa37f
Small doc update
2020-01-05 13:21:46 -05:00
Zachary Yedidia
0c6a7e2837
Update options docs and new docs on copy-paste
2020-01-03 13:39:39 -05:00
Zachary Yedidia
2855ae204c
Replace shellwords with shellquote
2020-01-02 18:30:51 -05:00
Zachary Yedidia
50ff45c213
Some documentation updates
2020-01-02 15:10:28 -05:00
Zachary Yedidia
3777bcf295
Merge pull request #1386 from jncraton/docfix
...
Minor grammar fix addressing #1377
2019-12-30 14:28:46 -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
e66d01e989
Some documentation
2019-12-25 19:37:51 -05:00
Zachary Yedidia
c4d5d7c195
Better backup behavior
2019-12-25 17:05:11 -05:00
Zachary Yedidia
aa66435353
Better plugin docs
2019-12-25 17:05:11 -05:00
Zachary Yedidia
b41fc10b8f
Update some docs
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
809b95d290
Add reset command and statusline format string options
2019-12-25 17:05:10 -05:00
Zachary Yedidia
0f4f60c018
Update docs
2019-12-25 17:05:10 -05:00
Jon Craton
e87917f1e1
Minor grammar fix addressing #1377
2019-09-13 11:07:11 -04:00
prez
aae0f4630e
Added option to automatically save files with sucmd
2019-09-11 15:38:15 +02:00
Isaac Andrade
e9337da43f
Separate keys with + sign for consistency
...
Some textual changes (without changing formatting) were made to table header lines.
This is a tiny and almost inconsequential change to improve readability.
2019-07-31 12:48:51 -06:00
Dull Bananas
beea8d42d5
Add detail
2019-05-29 21:17:56 -07:00
Michael Brune
f68149489e
Added an s to command(s)
...
Adding an S seems more intuitive here. The command you are being asked to run there completes to:
`help commands`
not `help command` as one might expect.
Although maybe help aliases might also be something to consider?
2018-09-24 13:12:01 -07:00
supbish
905e984f29
Add "smartpaste" option; fixes #1156
2018-08-17 22:37:19 -04:00
JT Olio
ae9bb763fb
a few miscellaneous fixes and improvements ( #1105 )
...
* add binding for more primitive backspace
* support selecting page up and page down
* fix matchbraceleft for braces that start on x=0
* fix multiline copy-paste indenting
let's say you have two lines like
<space><space>line1
<space><space>line2
so you start from cursor x=0 and select both lines, then paste.
we don't want any leading whitespace in this case, because the
cursor is already at x=0 and the selection already includes
whitespace.
2018-05-12 21:31:57 -04:00
Zachary Yedidia
b7706d775c
Add docs for SpawnMultiCursorSelect
2018-03-30 16:42:28 -04:00
dwwmmn
ac0b89366b
Implement SpawnMultiCursorSelect ( #1046 )
...
Add function to actions.go which adds a new cursor to the beginning of each line of a selection. Bind to Ctrl-M by default.
2018-03-30 16:40:45 -04:00
Zachary Yedidia
f43a1b5ced
Merge pull request #1054 from jtolds/master
...
allow optional brace matching with the closing brace to the left of the cursor
2018-03-19 00:32:26 -04:00
JT Olds
ea6a87d41a
allow optionally brace matching with the closing brace to the left of the cursor
...
this behavior, while slightly less obvious, allows for observing what brace you
just closed. as you write closing braces, the brace you closed gets highlighted
2018-02-27 18:53:04 -07:00
Emily Aviva Kapor-Mater
69ed07cc62
Move setting instructions to top; add some minor organization
2018-02-20 12:11:31 -08:00
Zachary Yedidia
4790c39dfc
Open at line syntax with filename:line:col
...
Ref #1010
Ref #887
Ref #836
2018-02-02 13:57:30 -05:00
Zachary Yedidia
36dc6647dd
Add new shell command documentation
...
Ref #979
2018-01-22 21:03:52 -05:00
Zachary Yedidia
4f41881c10
Make onViewOpen and onBufferOpen the same
...
Ref #948
2018-01-22 15:27:56 -05:00
Joshua Li
d7ba2f600e
implemented select line as an Action
2018-01-16 17:27:15 -05:00
Zachary Yedidia
3f01101da4
Add onBufferOpen plugin callback
...
Closes #948
2018-01-08 17:08:11 -05:00
Zachary Yedidia
8bff7f00d0
Change docs to use true/false instead of on/off
...
Closes #976
2018-01-08 15:21:32 -05:00
Zachary Yedidia
957273fc92
Add railscast colorscheme
...
From https://github.com/pbsds/micro-railscast-theme
2018-01-07 21:02:24 -05:00
Zachary Yedidia
fc2566a0de
Add JumpToMatchingBrace action
...
This commit adds the JumpToMatchingBrace action which lets the cursor
jump to a matching brace if it is on one.
Closes #853
2018-01-07 16:17:22 -05:00
Zachary Yedidia
8b60e4f3b1
Update colorscheme list in docs
...
Closes #956
2018-01-02 22:46:24 -05:00