Florian Sundermann
d7e38a52ea
fixes #379
...
when tabstospaces is off tabs were always treated as
as a number of spaces not as tabs with tabstops.
2016-09-28 08:12:19 +02:00
boombuler
f3f4790103
simple plugin search
2016-09-27 21:25:57 +02:00
boombuler
83c1136ac5
Merge remote-tracking branch 'zyedidia/master' into pm
2016-09-27 20:57:49 +02:00
Zachary Yedidia
0ae5ae5d9a
HSplit log, and update docs
2016-09-27 14:29:55 -04:00
Zachary Yedidia
c070e3e8f7
Merge pull request #381 from boombuler/logview
...
Log View
2016-09-27 14:28:06 -04:00
Zachary Yedidia
0de167b07b
Add new plugin runtime function
2016-09-27 14:24:52 -04:00
boombuler
f904e2fe99
always scroll log to the cursor befor drawing and don't ask for save changes for help and log views
2016-09-27 17:52:40 +02:00
boombuler
b195ebad46
AddLog should be "public" accessible
2016-09-27 17:52:05 +02:00
Florian Sundermann
23ef69b935
change pluginmanager json to json5
2016-09-27 13:28:32 +02:00
Florian Sundermann
55c790f069
more tolerant version parsing
2016-09-27 13:26:11 +02:00
boombuler
50c7441533
also add TermMessage output to log
2016-09-26 19:28:42 +02:00
boombuler
c1a3ee1706
possibility to show a log view
2016-09-26 19:08:37 +02:00
boombuler
357fc09e69
Merge remote-tracking branch 'zyedidia/master' into pm
2016-09-26 18:24:43 +02:00
Zachary Yedidia
c1d08a6dc0
Fix typo
2016-09-26 12:08:35 -04:00
boombuler
f689143670
fixed tests
2016-09-26 17:51:50 +02:00
boombuler
56b3b79c50
removed testing code
2016-09-26 17:37:53 +02:00
Florian Sundermann
f351c251e4
first few pm commands
2016-09-26 16:53:39 +02:00
Zachary Yedidia
5cc66cef42
Fix problems recognizing CtrlH
...
Fixes #368
The 'Backspace2' key has been renamed to 'Backspace'.
2016-09-26 09:34:55 -04:00
Florian Sundermann
6791759440
Merge remote-tracking branch 'zyedidia/master' into pm
2016-09-26 12:49:57 +02:00
Zachary Yedidia
292df7a9f7
Add mouse support and binding support to prompts
...
Closes #244
2016-09-24 15:26:19 -04:00
Zachary Yedidia
64fd96611c
Check buffer filetype after loading plugins
2016-09-24 14:30:35 -04:00
Zachary Yedidia
de4a007bdf
Merge pull request #371 from boombuler/plugins
...
Handle Plugins via RT-Files
2016-09-24 14:09:02 -04:00
boombuler
567faeb07e
initial commit of pluginmanager
2016-09-23 10:03:42 +02:00
Florian Sundermann
8172ebf62b
fixed loading order
...
plugins were not able to provide colorschemes
2016-09-19 16:04:59 +02:00
Florian Sundermann
1720d4023f
load plugins as rt-files
2016-09-19 14:40:56 +02:00
Florian Sundermann
da6ab78384
fixed build
2016-09-19 13:28:14 +02:00
Florian Sundermann
6fe20fb305
some additions to the plugin API
...
Those changes were originally used for the snippet plugin which
may not be part of the core.
2016-09-19 13:23:47 +02:00
Zachary Yedidia
d41f0bb324
Merge
2016-09-18 09:30:28 -04:00
Zachary Yedidia
8e555e60f7
Inherit background color from default
...
Fixes #366
2016-09-18 09:29:58 -04:00
Zachary Yedidia
243f99aeb1
Add function to load runtime files from a directory for a plugin
2016-09-16 16:15:44 -04:00
Zachary Yedidia
ab36db7646
Update yaml header
2016-09-16 15:22:38 -04:00
Zachary Yedidia
2e3c87b67d
Add quick start guide to help.md
2016-09-16 12:14:08 -04:00
Zachary Yedidia
a549d12808
Merge pull request #334 from techtonik/filemanagers
...
Usability integration with file managers
2016-09-16 12:09:17 -04:00
Zachary Yedidia
149fea8b76
Allow plugins to add their own runtime files
2016-09-16 11:02:10 -04:00
Florian Sundermann
9eeb14956c
allow plugins to list / read runtime files
...
also renamed most of the new functions to be
more specific about what kind of files this is for.
2016-09-15 16:42:45 +02:00
Florian Sundermann
796638d095
simplified file handling for runtime files
2016-09-15 15:50:26 +02:00
Zachary Yedidia
79621505f1
Merge pull request #359 from boombuler/params
...
Params
2016-09-14 17:14:01 -04:00
Zachary Yedidia
e484445b1e
Merge pull request #354 from boombuler/help
...
Help
2016-09-14 17:13:46 -04:00
Richard Burke
bdc857952a
Added ability to validate options values when being set
2016-09-14 20:06:48 +01:00
Zachary Yedidia
2bcc59faea
Fix pyflakes linter pattern
...
Fixes #358
2016-09-14 12:54:31 -04:00
Florian Sundermann
6cc12b871c
include trailing path delimiter
...
"C:" is not valid on windows but "C:\" is.
"foo" is as valid as "foo/" on other OS...
2016-09-14 16:28:25 +02:00
Florian Sundermann
d201e7c503
fixed directory completion on windows
2016-09-14 16:15:49 +02:00
Zachary Yedidia
c695df0adf
Merge pull request #356 from boombuler/bug355
...
fixed bug 355
2016-09-14 07:29:44 -04:00
boombuler
7d395a29a7
don't clone unsaved file buffers.
...
if I open multiple empty tabs, I don't want the same "new file buffers"
2016-09-14 09:37:12 +02:00
boombuler
4046bb977e
fixed bug 355
2016-09-14 09:24:38 +02:00
boombuler
d250b9d7b0
allow plugins to have a help file
2016-09-13 09:06:06 +02:00
boombuler
a7f159bddc
Load help files when needed
2016-09-13 08:53:20 +02:00
Zachary Yedidia
d0fa467a3c
Revert "Improve performance for very long lines"
...
This reverts commit d5694c0f35 .
Fixes #351
See #348
2016-09-11 16:05:15 -04:00
Zachary Yedidia
0bc80adc28
Fix strange selection for long lines
...
See #351
2016-09-11 15:00:44 -04:00
Zachary Yedidia
b5160c5d2c
Optimize search and replace a lot
2016-09-10 11:32:54 -04:00
Zachary Yedidia
210a538cdd
Improve performance for xml and html files
2016-09-10 10:32:21 -04:00
Zachary Yedidia
fd786b3020
Allow a buffer to be opened simultaneously
2016-09-10 10:30:15 -04:00
Zachary Yedidia
d5694c0f35
Improve performance for very long lines
2016-09-10 10:03:51 -04:00
Zachary Yedidia
922baa930d
Add eval command
2016-09-09 15:54:32 -04:00
Zachary Yedidia
faafda6b21
Remove pkgbuild from pre installed syntax files
2016-09-09 14:48:18 -04:00
Zachary Yedidia
9efc4fb5e9
Remove duplicate PKGBUILD filetype
2016-09-09 12:41:56 -04:00
Zachary Yedidia
37d83a280f
Merge
2016-09-09 12:32:05 -04:00
Zachary Yedidia
8c0544c264
Use shell.micro for PKGBUILD files
...
Fixes #345
2016-09-09 12:31:44 -04:00
Zachary Yedidia
0c00e8da0e
Merge pull request #341 from boombuler/bug297
...
fixes #297
2016-09-08 17:31:45 -04:00
Zachary Yedidia
af47cce86b
Resize tabs more often
...
Fixes #343
2016-09-08 17:30:41 -04:00
Zachary Yedidia
301e86a46e
Add SaveAs action and command
...
Fixes #340
You can bind the action `SaveAs` and if you provide an argument to
the `save` command it will save as. For example `> save test.txt`.
2016-09-08 14:13:46 -04:00
Florian Sundermann
0b1afe7f6c
fixes #297
...
use a buffered channel to queue events.
otherwise those events might get lost.
2016-09-08 13:47:13 +02:00
Matthew Brener
4f4e87a82c
its --> it's in actions.go comment
2016-09-08 16:14:04 +10:00
Zachary Yedidia
8f06e51170
Add colorcolumn option
...
Fixes #333
For example: `> set colorcolumn 80`.
2016-09-07 17:17:51 -04:00
anatoly techtonik
a853164302
Usability integration with file managers
2016-09-08 00:11:51 +03:00
Zachary Yedidia
cc73efc0bd
Merge branch 'master' of https://github.com/to-miz/micro into to-miz-master
2016-09-07 16:57:42 -04:00
Niklas Hennigs
956b1bdb3a
Missed the test for the last commit, now fixed
2016-09-07 17:52:16 +02:00
Niklas Hennigs
cd52aaba13
This fixes zyedidia/micro#329
...
Now all multi-byte characters are considered a wordchar
2016-09-07 17:29:38 +02:00
Zachary Yedidia
cc6189b7ce
Check colorschemes from ~/.config/micro/colorschemes
...
Fixes #331
2016-09-07 07:25:42 -04:00
Zachary Yedidia
e643860e3d
Add Open command for view
2016-09-06 19:58:34 -04:00
Zachary Yedidia
0373589ab8
Merge
2016-09-06 19:30:28 -04:00
Zachary Yedidia
dce56a2b85
Have HandleShellCommand return the stdout
...
HandleShellCommand will now return the stdout as a string and
it also takes an additional flag indicating whether it should
wait before closing the shell and returning to the editor.
2016-09-06 19:27:57 -04:00
anatoly techtonik
1f457f9d9e
Fix CanClose comment after API change
...
Follow up to 966dac97f8
2016-09-06 22:51:13 +03:00
Zachary Yedidia
131524e670
Merge branch 'params' of https://github.com/boombuler/micro into boombuler-params
2016-09-06 10:59:30 -04:00
Zachary Yedidia
539495d2f7
Add support for macros
...
Closes #270
CtrlU to toggle recording and CtrlJ to playback.
You can also rebind using the "ToggleMacro" and "PlayMacro"
actions.
Note that recursive macros are not yet supported.
2016-09-06 10:44:15 -04:00
Zachary Yedidia
966dac97f8
Make unsaved changes prompt more clear
...
Fixes #301
2016-09-06 10:06:36 -04:00
Leo Arias
02b6eaaff0
Update runtime
...
closes #317
2016-09-05 18:31:36 +00:00
boombuler
a952e249b4
added pascal syntax
2016-09-05 17:53:49 +02:00
Zachary Yedidia
0a534767f0
Merge branch 'primary-clipboard'
2016-09-05 11:37:49 -04:00
Zachary Yedidia
b1cb583e8c
Update runtime
2016-09-05 10:30:08 -04:00
Zachary Yedidia
ea4d822923
Merge pull request #283 from boombuler/autocompleteplugin
...
Autocomplete for plugins
2016-09-05 10:29:51 -04:00
to-miz
725533d991
fixed inserting runes that require ctrl+alt
...
we check wheter an input is a binding first, only if it is not a binding
do we insert the rune regardless of modifiers
2016-09-05 16:03:05 +02:00
Zachary Yedidia
2041e12eba
Fix some issues with mouse selection copying
2016-09-05 08:36:30 -04:00
Zachary Yedidia
5d00522d4e
Deselect for CursorStart
...
Fixes #308
2016-09-05 08:25:49 -04:00
Zachary Yedidia
c71e816e37
Fix recursive function
2016-09-04 21:28:40 -04:00
Zachary Yedidia
6721ec8e7d
Copy to primary clipboard for any change in selection
2016-09-04 21:19:14 -04:00
Zachary Yedidia
cf3ce29a08
Fix YesNoPrompt bug
2016-09-04 18:27:11 -04:00
Zachary Yedidia
a8feef3c12
Minor cleanup
...
See #300
2016-09-04 12:57:09 -04:00
Zachary Yedidia
de9707f088
Merge
2016-09-04 12:51:00 -04:00
Zachary Yedidia
9ff396c69f
Don't allow setting invalid colorschemes
...
Fixes #303
2016-09-04 12:50:13 -04:00
Zachary Yedidia
b3f6731db5
Update runtime
2016-09-04 11:36:25 -04:00
Zachary Yedidia
54a34001e3
Fix cursor problem in LetterPrompt
...
Fixes #300
2016-09-04 11:19:53 -04:00
James Tancock
187ea0da1c
Correct the number of spaces to add when a tab is inserted at an offset cursor.
...
Fixes #268
2016-09-04 15:50:39 +01:00
Zachary Yedidia
5b7fa01825
Add newline to end of settings.json
...
Fixes #296
2016-09-04 10:10:57 -04:00
Zachary Yedidia
c38044106c
Merge pull request #298 from boombuler/bug269
...
exit conditional replace if no match is left
2016-09-04 09:44:05 -04:00
boombuler
fce5b81c22
exit conditional replace if no match is left
2016-09-04 09:29:26 +02:00
Zachary Yedidia
a4ac9f2b7b
Merge pull request #286 from boombuler/bug269
...
fixes conditional replace
2016-09-03 13:45:43 -04:00
Zachary Yedidia
abedeebc0a
Merge pull request #282 from boombuler/windows
...
File autocomplete should now work on windows
2016-09-03 13:45:19 -04:00
Zachary Yedidia
b905400892
Add default bindings for CtrlHome and CtrlEnd
...
Fixes #280
2016-09-03 13:37:16 -04:00
Zachary Yedidia
c4d6f5e584
Fix various infobar bugs
...
Fixes #294
Fixes #295
2016-09-03 13:28:48 -04:00
Zachary Yedidia
76f80bf694
Merge pull request #293 from devoncarew/add_dart
...
add dart syntax highlighting
2016-09-03 12:53:39 -04:00
Devon Carew
a7b72f0e0e
add dart syntax highlighting
2016-09-03 09:16:52 -07:00
Zachary Yedidia
af22e0a567
Allow overwriting options with flags
...
Fixes #258
Also related to #233 , this commit also changes how +LINE,COL works. Now it is
micro -startpos LINE,COL file.
2016-09-03 11:26:01 -04:00
boombuler
98b6f63b70
fixes conditional replace
...
before this, conditional replace always replaces the first found
occurence of the match not the currenly selected.
Might also fix #269
2016-09-03 12:34:57 +02:00
boombuler
403a99d2ea
removed obsolete replace command preparations
2016-09-03 12:13:25 +02:00
boombuler
b2735d7b5b
use build-in functions to quote / unquote
2016-09-03 12:02:49 +02:00
boombuler
699ad316e5
removed old code
2016-09-03 08:18:47 +02:00
boombuler
8617ae5c1f
keep trailing space at commandline
2016-09-03 08:16:18 +02:00
boombuler
881f57b047
allow plugins to register autocomplete functions
2016-09-02 19:42:33 +02:00
Zachary Yedidia
b45fcf5bd7
Use json5 for config files
2016-09-02 11:12:16 -04:00
Zachary Yedidia
89c34ed8b3
Copy to primary clipboard on mouse selection
2016-09-02 10:44:32 -04:00
Zachary Yedidia
d9b8a04841
Add support for primary clipboard
2016-09-02 09:40:08 -04:00
Florian Sundermann
ccfe08bc60
allow command parameters to be quoted
...
this way FileCompletions could contain space runes without
breaking the parameter.
2016-09-02 13:44:22 +02:00
Florian Sundermann
2e3ee22aca
File autocomplete should now work on windows
2016-09-02 08:49:54 +02:00
Zachary Yedidia
226cf399ba
Merge pull request #271 from teryanik/master
...
Improvement highlight php syntax
2016-09-01 20:23:53 -04:00
cotne nazarashvili
d2254df062
improve json.micro
2016-09-02 03:59:36 +04:00
teryanik
3e83d29fb4
improvement highlight php syntax
2016-09-01 22:24:31 +03:00
Zachary Yedidia
fc2d9bb461
Merge pull request #233 from schollz/master
...
Flag to start at specified line/column number (#224 )
2016-08-31 16:39:30 -04:00
Zachary Yedidia
5458605618
Add "bubblegum" light colorscheme
...
Closes #255
2016-08-31 14:21:46 -04:00
Zachary Yedidia
031ed64305
Add colorscheme support for gentoo-ebuild
...
See #229
2016-08-31 12:12:23 -04:00
Zachary Yedidia
1be332a0f9
Merge
2016-08-31 12:00:28 -04:00
Zachary Yedidia
b9d4dbd5e0
Add colorscheme support for yaml
...
See #229
2016-08-31 11:59:43 -04:00
Zachary Yedidia
2e264b342a
Fix prompts not displaying because of infobar
2016-08-31 11:52:59 -04:00
Zachary Yedidia
4972db4bf6
Merge
2016-08-31 11:16:58 -04:00
Zachary Yedidia
b70db77c29
Add infobar option to disable the message line
...
Fixes #257
2016-08-31 11:16:22 -04:00
Zachary Yedidia
f8612d1572
Merge pull request #259 from handicraftsman/master
...
ASM & Micro fix
2016-08-31 10:53:14 -04:00
Nickolay
f9d0c563e4
Fixed Micro & ASM syntax files
2016-08-31 17:50:09 +03:00
Zachary Yedidia
3105205ab8
Use text from the paste event, not the clipboard
...
Closes #93
2016-08-31 10:47:31 -04:00
Zack Scholl
62ac9f79f2
Switched to +LINE,COL
...
Previously the flag was parsed for `-cursor LINE,COL`
However, emacs and nano both us `+LINE,COL` and this also makes
it easier to ignore the `+` as a filename.
2016-08-31 10:10:54 -04:00
Zachary Yedidia
a6d695f471
Merge
2016-08-31 08:51:44 -04:00
Zachary Yedidia
59d2fa81dd
Unselect for cursor movement actions
...
Fixes #250
2016-08-31 08:51:24 -04:00
Nickolay
c59b1ea387
Added .micro syntax theme
2016-08-31 15:19:45 +03:00
Zachary Yedidia
c661c65c8c
Update help to give quick instructions on quitting and saving
2016-08-30 21:29:41 -04:00
Zachary Yedidia
13da5ced15
Fix problem with linter.onSave calling view.Save
...
Fixes #246
2016-08-30 19:38:45 -04:00
Zachary Yedidia
b970b393f2
Add caddyfile to runtime
2016-08-30 19:32:26 -04:00
Zachary Yedidia
b6f5db3692
Add QuitAll action to close all splits and tabs at once
...
See #239
2016-08-30 17:38:46 -04:00
Zachary Yedidia
8bdaacaa5e
Switch splits on mouse *click* not drag
...
Fixes #240
2016-08-30 17:29:49 -04:00
Zachary Yedidia
c9ead25b1e
Merge
2016-08-30 17:26:05 -04:00
Zachary Yedidia
ddff950fcd
Check for filetype after saving an untitled buffer
...
Fixes #242
2016-08-30 17:25:30 -04:00
Nickolay
6e63472930
Whooops!
2016-08-31 00:08:37 +03:00
Nickolay
94397a90bd
Fully finished ASM syntax highlightig
2016-08-31 00:03:22 +03:00
Nickolay
9854fc712f
Added x87 instructions
2016-08-30 22:13:46 +03:00
Nickolay
99635d9491
Added x86 cpu support for assembly.
2016-08-30 21:51:30 +03:00
Zachary Yedidia
93361fe72d
Fix issue with settings.json
2016-08-30 11:32:23 -04:00
Zack Scholl
4499228cdb
Added flag to introduce cursor starting positions
2016-08-30 11:28:28 -04:00
Zachary Yedidia
ec9eab8a3e
Auto update settings.json if it contains 'null'
2016-08-30 11:19:51 -04:00
Zachary Yedidia
791a397d55
Fix problem with first-time creation of the settings file
...
Fixes #219
2016-08-30 09:45:05 -04:00
Zachary Yedidia
5df28c76e8
Add tutorial.md to help files
...
Fixes #218
2016-08-29 21:26:53 -04:00
Zachary Yedidia
19c7860f14
Update readme
2016-08-29 10:21:34 -04:00
Zachary Yedidia
fccec47ae5
Have CanClose use single letters for responses
...
Closes #184
2016-08-29 10:10:16 -04:00