jazzpi
059719bee4
Fix :quitall
2015-12-28 14:04:19 +01:00
jazzpi
d6afe394ef
Merge branch 'master' of https://github.com/caiocutrim/ex-mode into caiocutrim-master
2015-12-28 13:14:50 +01:00
jazzpi
31875cff79
Add specs for aliases
2015-12-28 13:01:56 +01:00
jazzpi
701f27130f
Make Ex.registerAlias accessible from the outside
2015-12-28 12:46:26 +01:00
jazzpi
155ffcaa5a
Merge branch 'master' of https://github.com/GertjanReynaert/ex-mode into GertjanReynaert-master
2015-12-28 12:39:47 +01:00
Jasper v. B
d2d66f5260
Merge pull request #109 from shamrin/issue108
...
backspace over empty `:` now cancels ex-mode
2015-12-22 12:46:30 +01:00
jazzpi
19f1a74812
Merge pull request #118 from jazzpi/rework-commands
...
Rework command calling, improve :substitute
2015-12-08 13:13:11 +01:00
Thomas David Baker
3c78f9c985
:saveas command and spec test.
2015-12-07 11:20:57 -08:00
Caio Cutrim
10fbdfe969
fixed saveAllThenQuit function
2015-11-26 17:16:24 -03:00
Caio Cutrim
4ec1c56077
I added :wa, :qa, :waq shortcuts commands
2015-11-26 12:20:32 -03:00
jazzpi
ddbdb861fb
Improve :substitute
...
Rework the parsing algorithm so that it works (mostly)
without using RegEx's. This allows for replacing with an
empty string and escape sequences (\t, \n, \r).
Fixes #71 , #93 , #117
2015-11-21 15:51:42 +01:00
jazzpi
af0ba7c01c
Improve format for calling commands
...
Commands (from the Ex class) are now called with an object
containing the range, arguments, vim state, ex state and
editor instead of a long list of arguments.
2015-11-21 14:48:13 +01:00
Gertjan Reynaert
14d234d182
Add option to register aliasses
2015-11-17 16:39:21 +01:00
Alexey Shamrin
e0ee339bf6
backspace over empty : now cancels ex-mode
...
fixes #108
2015-10-31 05:33:06 +03:00
Jacob Wahlgren
e2841dc26c
Don't allow :s delimiters not allowed by vim
...
"Instead of the '/' which surrounds the pattern and replacement string,
you can use any other single-byte character, but not an alphanumeric
character, '\', '"'' or '|'."
- http://vimdoc.sourceforge.net/htmldoc/change.html#:substitute
2015-09-22 00:35:36 +02:00
jazzpi
42a44ee9e1
Add specs; minor changes to some commands
...
`:tabedit` now works as an alias to `:edit` with a path and
as an alias to `:tabnew` without.
`:tabnew` is a new command that opens a new tab with a new file if used
without a path and works as an alias to `:tabedit` with one.
`:tabclose` now works as a proper alias to `:quit` (i.e. passes the arguments)
`:edit` now works more like before - it opens a given path in a new tab.
It also doesn't do anything if the file was modified since the last commit,
unless forced by using `:edit!`
`:write` works properly again and doesn't overwrite files, unless forced by
using `:write!`
`:xit` is now called `:xit` and not just `:x`
`:substitute` now properly replaces multiple groups (`:s/(a)b(c)/X\1\2X\0`)
2015-07-29 19:13:13 +02:00
1a117bddf9
Clean up save logic ( fixes #75 )
2015-07-29 16:36:55 +02:00
84c548a444
don't :e an unsaved file
2015-07-29 16:31:42 +02:00
8fd1fe14c8
Added ~ support
...
Thanks to @romgrk in PR #48
2015-07-28 12:02:03 +02:00
a187e68497
Merge pull request #74 from mleeds95/fix-write
...
Simplify how :write works and make it work when no projects are open.
2015-07-28 11:30:51 +02:00
e679604c21
Merge pull request #69 from nzyuzin/set_options
...
Add support for :set [option]
2015-07-28 11:30:35 +02:00
7450d05e64
Merge pull request #55 from jazzpi/fix-54
...
Replace `\#{delimiter}` with `#{delimiter}` in :s
2015-07-28 11:30:03 +02:00
Matthew Leeds
656ed90f7e
Simplify how :write works and make it work when no projects are open.
2015-07-27 16:52:47 -05:00
Nikita Zyuzin
0f38fd195a
Add support for :set [option]
2015-07-13 23:06:03 +04:00
jazzpi
7c202faefa
Use TextEditor.transact
...
This fixes #57 and atom/atom#703
2015-06-18 18:52:24 +02:00
jazzpi
4cccef79a5
Replace \#{delimiter} with #{delimiter} in :s
2015-06-10 18:19:59 +02:00
jazzpi
5ee749cb0b
Fix :write behaviour
2015-05-27 17:29:37 +02:00
c43b2658ef
stop spurious cancels
2015-05-24 15:56:53 +02:00
3c17b6e670
history even bad commands (easing fixups)
2015-05-24 15:56:11 +02:00
cb2d79a1e3
get some fresh air
2015-05-24 15:55:24 +02:00
3f75ca3a30
comply with new Atom API
2015-05-24 11:49:29 +02:00
1c064ec13a
debug logging removed
2015-05-24 11:47:46 +02:00
jazzpi
5d06604d41
Fix :x throwing an error
2015-04-18 12:37:45 +02:00
jazzpi
8087ca3aeb
Implement d
2015-04-06 13:18:31 +02:00
jazzpi
657a92e84e
handle range starting at 0 ( fixes #30 )
2015-03-30 14:12:21 +02:00
5b62897712
Merge branch 'fix_length_error'
2015-03-30 10:22:05 +02:00
jazzpi
f2508d7be2
Fix #23
2015-03-30 10:21:25 +02:00
jazzpi
241abdb9d0
Fix :s behaviour
2015-03-26 15:35:14 +01:00
jazzpi
822d5fcf97
Stop debug logging
2015-03-22 23:30:01 +01:00
jazzpi
f662a96afd
Implement :s
2015-03-22 23:14:56 +01:00
jazzpi
161c55c94f
Style
2015-03-22 15:19:41 +01:00
jazzpi
477b2a6b6b
Fix double comprehension
2015-03-22 14:34:37 +01:00
jazzpi
433b1dd6ac
Yes we can
2015-03-22 14:17:43 +01:00
jazzpi
d1295587ee
Update commands
2015-03-22 02:56:48 +01:00
jazzpi
8b658db090
Update commands
2015-03-22 01:11:34 +01:00
jazzpi
054473a3d1
Fix
2015-03-22 01:11:01 +01:00
jazzpi
e5e944656c
is instead of ==
2015-03-22 00:58:53 +01:00
jazzpi
5fd7a8b6dd
Fix line length
2015-03-22 00:53:26 +01:00
jazzpi
548f9b75c4
Add actual command calling
2015-03-21 23:36:08 +01:00
jazzpi
a7504aa590
Address parsing
2015-03-21 19:03:58 +01:00