Yannick A
921f88b95d
Cursor move at the first char when Up on the first line (and at the last char when Down on last the line) ( #773 )
...
* Cursor move at the beginning of the line when Up on the first line (and at the last character when Down on last the line)
* Fix an issue when Up to a shorter line than current line
2017-08-09 11:58:37 -04:00
Yannick A
7fe8d73473
Fix somes selections issues ( #771 )
...
* SelectLeft on the last character is now possible
* SelectLeft on the last character is now possible
* CursorRight on selection places the cursor after the last selected character
* SelectRight on the last character do not select the last character and do nothing
2017-08-09 11:52:38 -04:00
Zachary Yedidia
69c6d8a099
Fix some lint problems
2017-08-08 11:30:09 -04:00
Zachary Yedidia
471486b531
Add newline after build tags
2017-08-07 09:47:28 -04:00
Zachary Yedidia
202cfb574c
Only write settings if no error when reading
...
This commit also switches from yosuke-furukawa/json5 to flynn/json5
because yosuke-furukawa/json5 does not provide a license.
Ref zyedidia/json5#1
Closes #775
2017-08-06 12:02:17 -04:00
Zachary Yedidia
5c785ab1ac
Fix MoveLines when user has a selection
...
Ref #767
2017-08-03 12:42:40 -04:00
Yannick Armand
9dd1df36d5
Move current line down/up: cursor stay with moved line
2017-08-03 12:02:07 +02:00
Yannick Armand
ed9bc66060
OutdentSelection works on all cases (whatever tabsize or tabstospace values)
2017-08-01 22:42:42 +02:00
Yannick Armand
cc5855d07b
Display number of lines in the JumpLine prompt
2017-08-01 16:41:57 +02:00
Zachary Yedidia
487b36f48f
Update tcell
...
Ref #761
2017-08-01 10:12:10 -04:00
Zachary Yedidia
c0b00c9a4c
Update tcell
2017-07-31 22:47:08 -04:00
Zachary Yedidia
86c2ac95bb
Merge cursors after spawning with mouse
...
Fixes #760
2017-07-31 22:30:57 -04:00
Zachary Yedidia
edb79f2972
Merge
2017-07-31 22:24:46 -04:00
Zachary Yedidia
305cefe461
Update tcell
2017-07-31 22:24:42 -04:00
Zachary Yedidia
315391b0aa
Expand support for Suspend to OSX, BSD, Solaris
2017-07-31 20:05:34 -04:00
Zachary Yedidia
fd45acc910
Remove unused variables
2017-07-31 18:46:52 -04:00
Zachary Yedidia
5c462f5600
Always use custom syntax files over default
...
The custom syntax files were first in the array but micro should stop
loading files into the filetype if it already found a match.
Fixes #750
2017-07-23 20:22:47 -04:00
Tatsuro YOKOTA
4f8f6f1ca3
multi-byte characters are overlapped in prompt message ( #745 )
...
* modified messenger.Display
* modified messenger.Display
2017-07-20 22:18:15 -04:00
Markus F.X.J. Oberhumer
97aae225da
Rebuild runtime.go.
2017-07-17 07:21:38 +02:00
Zachary Yedidia
3b2d7abe3d
Store visual x when cursor loc moves in certain cases
...
Fixes #739
2017-07-15 17:52:56 -04:00
Zachary Yedidia
63b4848bb0
Make sure screen is not nil before pollevent
...
Ref #728
Ref #727
2017-07-10 18:04:11 -04:00
Zachary Yedidia
030a05c103
Always restart the screen when saving with sudo
...
Fixes #723
2017-07-08 15:13:42 -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
42f2af7956
Print help text to stdout instead of stderr
...
Fixes #719
2017-07-01 16:49:08 -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
Zachary Yedidia
8f4820ba28
Move cursor selections on Insert or Remove
...
Ref #715
2017-06-25 19:14:01 -04:00
Zachary Yedidia
19926d95fe
Throw error if there is no detect regex
...
Closes #712
2017-06-22 10:42:06 -04:00
Zachary Yedidia
f27ee60149
Fix compilation errors
2017-06-21 14:37:30 -04:00
Zachary Yedidia
3908813afe
Recover errors in highlight
...
Ref #712
2017-06-21 14:26:35 -04:00
Zachary Yedidia
e6f24b0924
Add new tcell commits
2017-06-20 17:47:39 -04:00
Zachary Yedidia
b2c1c8f8db
Merge pull request #710 from HeavyHorst/master
...
fixed a panic when a line is cut out(strg+k) and the next line is empty.
2017-06-20 16:52:48 -04:00
Zachary Yedidia
5a2f9a374b
Merge pull request #709 from mfxmfx/xterm-ctrl-pgup
...
Add support for xterm CtrlPgUp and CtrlPgDn keys.
2017-06-20 10:53:31 -04:00
Zachary Yedidia
59ab5107bf
Add new commits to tcell (ctrlpageup/down)
2017-06-20 10:53:07 -04:00
Rene Kaufmann
06c65d8404
fixed a panic when a line is cut out(strg+k) and the next line
...
is empty.
2017-06-20 11:53:59 +02:00
Markus F.X.J. Oberhumer
d38055f825
Add support for xterm CtrlPgUp and CtrlPgDn keys.
2017-06-19 19:37:55 +02:00
Zachary Yedidia
4aeb4c78ac
Merge
2017-06-18 15:39:50 -04:00
Zachary Yedidia
3741a71cc5
Check bounds on LastVisualX
...
Fixes #708
2017-06-18 15:38:33 -04:00
Zachary Yedidia
fc9ddaf941
Merge pull request #679 from alialaee/master
...
Find and replace one at a time
2017-06-18 12:13:43 -04:00
Zachary Yedidia
5ec08d0a29
Use correct separator on windows
...
Ref #673
2017-06-18 09:56:36 -04:00
Zachary Yedidia
da1ec3132f
Update tcell
2017-06-17 23:02:22 -04:00
Zachary Yedidia
167f1e5770
Use the idle-wakeup-fix-forked branch of tcell
2017-06-17 22:54:05 -04:00
Zachary Yedidia
7e4ff05c57
Use submodules for dependency management
2017-06-17 17:52:28 -04:00
Zachary Yedidia
7ccec0e3f7
Merge pull request #704 from zyedidia/multiple-cursors
...
Multiple cursors
2017-06-17 17:39:31 -04:00
Zachary Yedidia
397361f23d
Add multiple cursor docs + improve docs in general
2017-06-17 17:36:27 -04:00
Zachary Yedidia
681da2e90c
Deselect with mouse
...
This commit also makes non editing actions (save, quit...) only execute
once even if there are multiple cursors.
2017-06-17 11:05:23 -04:00
Zachary Yedidia
118e6b1804
Merge cursors properly
...
Cursors will merge together if they are on top of each other.
2017-06-17 10:43:14 -04:00
Zachary Yedidia
f933b90c66
Get undo working properly with multiple cursors
2017-06-16 22:19:33 -04:00
Zachary Yedidia
21840d3ffe
Make cursor movement automatic on insert + remove
...
This changes the behavior of cursor movement so that all cursors are
adjusted when a change is made to the buffer. Cursors don't have to be
manually moved after calling Insert or Remove, those functions will move
the cursor properly on their own.
This should fix issues 1-3 mentioned in the multiple cursors discussion.
Ref #5
2017-06-15 18:52:51 -04:00