Zachary Yedidia
cb45481526
Make tab views array public
...
Ref #1024
2018-03-02 19:50:33 -05:00
Zachary Yedidia
88d8b0b181
Count replacements in replaceall correctly
...
Fixes #1055
2018-03-02 19:32:23 -05:00
Zachary Yedidia
6d2cbb6cce
Use regexp replaceall
...
Fixes #1038
2018-02-19 17:04:09 -05: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
015fcf5fec
Minor optimizations
2018-01-29 16:02:15 -05:00
Zachary Yedidia
83190a578e
Change HandleShellCommand backend
...
I'm trying to add more options for plugins that want to run shell
commands. Also trying to add support for running shell commands in the
terminal emulator from a plugin and return the output.
More to come soon.
Ref #979
2018-01-20 22:23:52 -05:00
Zachary Yedidia
d82867ee53
Add more comments
2018-01-04 17:14:51 -05:00
Zachary Yedidia
9094c174cc
Initial support for terminal within micro
...
This commit adds beta support for running a shell or other program
within a micro view.
Use the `> term` command. With no arguments, `term` will open your
shell in interactive mode. You can also run an arbitrary command
with `> term cmd` and the command with be executed and output
shown. One issue at the moment is the terminal window will close
immediately after the process dies.
No mouse events are sent to programs running within micro.
Ref #243
2018-01-04 17:03:08 -05:00
Zachary Yedidia
a4ae7a1e11
More command binding
...
Now can bind editable commands with `command-edit:`
Ref #974
2018-01-02 15:15:28 -05:00
Zachary Yedidia
f6e9a16724
Allow binding commands
...
Bind commands with `command:...`
Ref #974
2018-01-02 15:02:46 -05:00
Zachary Yedidia
bf33ab532c
Store string keys for bindings
2017-12-03 23:15:32 -05:00
Zachary Yedidia
2ae9f88eaa
Add showkey command
2017-12-03 13:05:46 -05:00
Zachary Yedidia
bdb699211a
Add raw command to view raw terminal esc codes
2017-11-29 01:06:16 -05:00
Zachary Yedidia
7f287b62fb
Fix autocomplete behavior for empty args
...
This also adds a modified version of go-shellwords as a dependency
and removes the dependency on the original go-shellwords.
2017-11-23 23:04:32 -05:00
Zachary Yedidia
36d72c4cab
Move incomplete colorschemes and improve cd
...
The default colorschemes should ideally use 256 colors instead
of just 16 colors. The `simple` colorscheme should cover most
16 color use cases. I went through the colorschemes and put the themes
that didn't look good or looked incomplete in an in_progress directory.
This commit also improves the `cd` command behavior when using an
unnamed buffer.
2017-11-23 15:57:17 -05:00
Zachary Yedidia
0360a2fcb5
Improve cmdbar parsing and add -l replace flag
...
The -l flag to the replace command means "literal" and will treat
the search term literally instead of as a regular expression.
The command bar also now supports expanding environment variables
and running expressions through the shell and using the result
in the command.
2017-11-22 13:54:39 -05:00
Zachary Yedidia
d247db3e9d
Implement retab command
...
Ref #919
2017-11-21 00:51:07 -05:00
Yannick Armand
bf6ce3a17e
Add option value completion on setlocal
2017-10-08 18:42:09 +02:00
Zachary Yedidia
17dac164ea
Don't store cmd stdout in string
...
Storing the stdout confuses isatty causing programs running within
ShellMode to not format properly.
Fixes #862
2017-10-06 21:09:53 -04:00
Zachary Yedidia
12a4dd58f3
Only replace '~' with home if at start of path
...
Ref #757
2017-09-23 20:56:08 -04:00
Zachary Yedidia
5a7ddb8330
Add autocompletion for option values
...
Closes #555
2017-09-23 20:47:19 -04:00
Zachary Yedidia
e4751fd84c
Optimize search
...
Fixes #722
2017-07-08 15:03:35 -04:00
Zachary Yedidia
252def5b95
Fix recursive search and replace in special case
...
Fixes #717
2017-07-01 16:50:25 -04:00
Zachary Yedidia
91fb8225d1
Add 'a' option in replace prompt
...
Closes #718
2017-07-01 16:47:50 -04:00
Zachary Yedidia
bee60023ae
Optimize search and replace
2017-07-01 16:40:28 -04:00
ali
480a220fda
Change replace command default behaviour to confirm replacement for each occurrences
2017-05-26 03:43:57 +04:30
Zachary Yedidia
b4dda8bad8
Use less memory when opening very large files
2017-04-29 14:12:00 -04:00
Zachary Yedidia
ab24523bff
Fix problem with search and replace indices
...
Closes #637
2017-04-27 20:10:51 -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
Zachary Yedidia
dd87769090
Fix TabSwitch to work by tab name as well
2017-04-02 09:27:04 -04:00
Zachary Yedidia
12d74b99e8
Merge branch 'master' into view-refactor
2017-03-26 20:40:03 -04:00
Zachary Yedidia
bb7ce4cbb3
Add memusage option to view memory usage
2017-03-26 17:37:04 -04:00
Zachary Yedidia
53a19afe52
Fix error when opening directory
...
Fixes #587
2017-03-11 13:08:32 -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
80ab81fefc
Add tabswitch command
...
Fixes #566
2017-02-26 10:52:14 -05:00
Zachary Yedidia
4d1ad52405
Fix find and replace counter
2017-02-20 18:33:44 -05:00
Zachary Yedidia
9404b731ec
Don't trim arguments for 'set'
2017-02-15 12:56:40 -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
theodus
4cb26d2e8e
move to new tab
2016-12-13 12:12:20 -05:00
Thomas LE ROUX
651cb89948
refactor(plugin): Enable human-friendly plugin name
2016-12-12 16:37:48 +01:00
Zachary Yedidia
eeaac76f5f
Use io.Readers to read files more efficiently
2016-11-29 13:44:30 -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
Zachary Yedidia
7492ab4de2
Add 'plugin available' command
...
Closes #413
2016-10-24 19:02:13 -04:00
Zachary Yedidia
ee553b7830
Add reload command
...
Closes #427
2016-10-21 11:51:36 -04:00
Zachary Yedidia
1b9bb31dd6
Cleanup and add more comments
2016-10-18 11:12:28 -04:00
Zachary Yedidia
4db7f33eaf
More fixes to search and replace
2016-10-13 20:47:33 -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
c410b7b2ce
Improve plugin manager error feedback
2016-10-06 13:39:57 -04:00