Commit graph

38 commits

Author SHA1 Message Date
Michael Holler
5c55c74e6a Added :wall
While `:wa` previously existed, the full comment `:wall` did not.
2015-11-18 11:37:26 -06: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
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
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
d1295587ee Update commands 2015-03-22 02:56:48 +01:00
jazzpi
8b658db090 Update commands 2015-03-22 01:11:34 +01:00
jazzpi
5fd7a8b6dd Fix line length 2015-03-22 00:53:26 +01:00
Jasper v. B.
3f355d3133 Add :x 2015-03-01 11:31:38 +01:00
4adc1c168a Added :wq 2015-02-23 16:22:23 +01:00
4f2e9d6fd7 extensibility via services 2015-02-23 14:59:33 +01:00
d2bf0c5502 cleanup 2015-02-23 12:09:55 +01:00
dd42115c42 edit commands (fixes #12) 2015-02-23 12:08:59 +01:00
76014791ef tab commands (fixes #13) 2015-02-23 12:08:59 +01:00
55bb9f6319 Merge branch 'quit_tabs_and_args'.
Conflicts:
	lib/command.coffee
	lib/ex.coffee
2015-02-23 10:51:45 +01:00
66e5f697f6 comply with vim behavior 2015-02-23 10:44:51 +01:00
7d4aee9ed2 Merge pull request #16 from AsaAyers/write-all
add :wa
2015-02-23 09:28:14 +01:00
Asa Ayers
1248bd5769 add :wa 2015-02-22 21:39:47 -05:00
Ian Germann
7f667d90e0 add split, vsplit, sp, and vsp commands 2015-02-22 14:56:51 -05:00
Dave de Fijter
2cafba248c added new commands for quitting, opening tabs and added argument functionality for commands 2015-02-22 16:09:40 +01:00
Bibodha Neupane
2f6e7ae664 Fixed error being thrown if path was not provided while saving a new file fixes #9 2015-02-20 10:57:00 -07:00
1a8657b3d4 working title 2015-02-19 18:11:25 +01:00