Commit graph

111 commits

Author SHA1 Message Date
solecki
770325e5df Fix off-by-one range error for visually selected range 2018-04-12 20:31:00 +02:00
solecki
ebd1b3367d Throw CommandError for commands with range out of bounds 2018-04-12 20:30:28 +02:00
mkiken
964813a0b0 implement gdefault option 2017-08-13 16:38:06 +09:00
mkiken
2fa4584eb4 add gdefault option 2017-08-13 16:08:28 +09:00
Edvin Hultberg
195396b47e Merge pull request #190 from RobertPaul01/sort
Adds :sort feature
2017-08-08 21:11:25 +02:00
Robert Paul
791c62a3ba Adds clarification comments 2017-08-08 14:02:29 -05:00
Robby
4312777508 Modifies sort function and adds a unit test 2017-08-06 23:22:13 -05:00
Robby
15296ff369 Removes accidental newline 2017-08-06 21:24:22 -05:00
Robby
117d7439ad Adds save ex-mode command 2017-08-06 21:23:41 -05:00
Edvin Hultberg
91f748f85f
fix indenting 2017-07-29 17:40:59 +02:00
Edvin Hultberg
5301f4a5d4 Merge pull request #185 from lloeki/eh-1.19
Support Promise response in trySave
2017-07-29 17:39:11 +02:00
Edvin Hultberg
26ac7c50b1 Support Ctrl-C to cancel ex-mode 2017-07-27 16:13:48 +02:00
Edvin Hultberg
b5cb054b39 Support Promise response in trySave
In Atom 1.19, TextBuffer.save returns a Promise. This commit adds
support to catch this and resolve our internal callbacks when promise
resolves.
2017-07-27 15:58:50 +02:00
Sophie Haskins
abb5cd207f use Atom 1.19 buffer API for finding the length of a buffer 2017-06-29 10:32:17 -04:00
jazzpi
02ab74465c Support vim-mode-plus marks 2017-05-25 01:08:21 +02:00
mkiken
378cf6cff4 comment refactoring. 2017-03-20 14:07:44 +09:00
mkiken
0abb61fcb8 add consumeVimModePlus. 2017-03-20 14:02:05 +09:00
mkiken
50f1beb1e9 switch searchHistory 2017-03-20 13:49:33 +09:00
jazzpi
ccf6aa22f8 Fix :x closing Atom instead of the current pane
`x` was being matched with `xall` instead of `xit`, so add an alias.
2017-03-15 14:03:25 +01:00
Joey Marianer
cd80a163cb Support :tabonly. Code shamelessly copied from the close-other-tabs extension. 2017-01-08 14:30:44 -08:00
jazzpi
d5acbd3f53 Limit addresses to the last line 2016-11-04 12:58:03 +01:00
Michael Nicholls
0441b24c21 Fix autocompleting a non existent directory 2016-08-23 07:22:01 +01:00
jazzpi
0f91ab5ae0 Fix search not working without a closing delimiter 2016-08-16 13:09:05 +02:00
jazzpi
3c952ccbfe Fix mark addresses and add specs for addresses
Enables properly parsing marks as addresses. Also adds some specs for
addresses by checking how ex-mode behaves when used as a motion.

Fixes #70.
2016-08-16 00:36:05 +02:00
jazzpi
c6efc0d46c Add 'smartcase' option 2016-08-16 00:26:37 +02:00
jazzpi
1b8f6238c2 Add basic support for visual marks < and >
Only works with range '<,'>. If there are multiple selections, run the
command for each one.

Closes #31.
2016-08-15 21:13:32 +02:00
Jasper v. B
aca7d3b990 Merge pull request #159 from jazzpi/split-options-set
Add splitbelow and splitright options to `:set`
2016-08-14 21:52:32 +02:00
Jasper v. B
683a592979 Merge pull request #158 from jazzpi/update-new-file-save
Update editor when saving a new file with `:w` or `:saveas`
2016-08-14 21:52:22 +02:00
Jasper v. B
25ce6b59fd Merge pull request #155 from stuartquin/tab-autocomplete
Issue #29 Command and file autocomplete
2016-08-14 21:51:43 +02:00
Stuart Quin
d609005810 Get Ex commands from instance and prototype 2016-08-11 12:55:24 +01:00
Stuart Quin
70a1987cf7 Sort commands before autocomplete 2016-08-10 08:28:33 +01:00
jazzpi
7bec719a6f Add splitbelow and splitright options to :set 2016-08-10 02:01:01 +02:00
jazzpi
2b9b2f26e5 Update editor when saving a new file with :w or :saveas
Fixes #156
2016-08-10 01:29:21 +02:00
Stuart Quin
6f03cd8bc7 Add support for ~ expansion 2016-08-03 21:34:49 +01:00
Stuart Quin
7e1e03284a Issue #29 Command and file autocomplete 2016-08-03 18:41:13 +01:00
Asa Ayers
959ad08591 Stop using non-standard Promise.defer()
Fixes #147
2016-08-02 15:17:41 -07:00
Brendon Roberto
4424eec4cc Fix issue with tabnew forwarding args to tabedit 2016-06-16 15:21:20 -04:00
Xiaolong Wang
b763104cb2 adding support for splitright and splitbelow 2016-04-24 15:39:18 -05:00
Ryan Mitchell
2a5fe2c382 Feature/yanking (#138)
* Support yanking

* Remove unneeded code from yank spec
2016-04-24 13:56:22 -05:00
Ryan Mitchell
f8396fb4e4 Copy to text to clipboard on delete 2016-04-23 21:33:04 -04:00
jazzpi
e17a6e5533 Add specs for :wall, :quitall and :wqall 2016-01-03 13:15:14 +01:00
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