1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 05:58:03 +01:00
Commit Graph

91 Commits

Author SHA1 Message Date
Doug Kearns
26dabbfd0d Change multiline error message guard clauses to single line formatting.
Also apply similar formattng fixes to conditional blocks as per
standard.
2009-05-22 10:53:17 +10:00
Doug Kearns
f834cfcd6b Add some API documentation for Options and others. 2009-05-22 10:53:06 +10:00
Doug Kearns
2c486edee7 Fix conditional in editor.executeCommandWithMotion. 2009-05-15 00:29:50 +10:00
Kris Maglione
dbf60914ab Add 'fileencoding' 2009-05-01 15:19:35 -04:00
Kris Maglione
2f753b6d27 Fix #247 2009-04-22 13:15:56 -04:00
Martin Stubenschrott
5ab1771e3c changed my email address 2009-03-28 23:38:33 +01:00
Daniel Bainton
ae150a373e Fix bug #93 the hacky way, thanks to Conrad Irwin for the patch. 2009-03-15 03:27:07 +02:00
Doug Kearns
a37f61028d Fix editor#pasteClipboard on Windows. 2009-03-13 18:06:20 +11:00
Daniel Bainton
466e521230 Revert "Replace use of editor.pasteClipboard with executeCommand("cmd_paste")."
This reverts commit 7e8db4743b24368ba1784420e6cdf6b4838958df.

The commit breaks selection pasting in linux, so reverting.
2009-03-08 20:35:16 +02:00
Doug Kearns
52956a9aa1 Replace use of editor.pasteClipboard with executeCommand("cmd_paste").
This fixes #93 (<s-insert> in the bottom of a long textarea bounces up)
as well.
2009-03-09 01:18:57 +11:00
anekos
e459c7c867 Escaping the error.
A error occurs if the element has been removed when "elem.selectionStart" is executed.

e.g.
  Press "gi<ESC>" on
  <input type="text" onfocus="this.parentNode.removeChild(this)" />
2009-02-23 04:55:51 +09:00
Kris Maglione
eb88d7ea0b Sorry, stashed changes including:
Change util.range to accept an increment as the third argument.
    Sanitize Makefile.doc
2009-01-21 03:41:43 -05:00
Ted Pavlic
1f93e422e7 Fixed (:abbr """a b) so it stopped throwing E114 (like Vim). 2009-01-20 11:28:32 -05:00
Ted Pavlic
21c4f0f89e Setup abbreviation behavior to be like an isk-less Vim.
For now, the internal equivalent of "iskeyword" is [^\s'"].

In the future, the internal "iskeyword" equivalent can be expanded. It may
be overboard to add an "iskeyword" option, as it applies to lots more
things than :abbr. Additionally, it's not clear why it's bad to call
keyword characters everything except whitespace and quotes.

TODO: Should abbreviations be triggered by any non-keyword character?

TODO: Should abbreviations be triggered by <CR>?

TODO: Should abbreviations be able to include <Left>, etc.?
2009-01-17 00:39:01 -05:00
Ted Pavlic
ba948246cc Fix ":abbr this'is'a'test" to return an error, like Vim.
Also note in map.txt that :abbr LHS cannot contain quotes or spaces.
2009-01-16 15:33:43 -05:00
Ted Pavlic
22d3bc470b Change :abbr to parse its args.string itself. 2009-01-16 15:22:44 -05:00
Ted Pavlic
a2c0233fc0 After some investigation, it appears like Vim only outlaws quotes in :abbr.
TODO: Make

    :abbr abcd\ efgh

work like Vim (i.e., map abcd\ to efgh). That's a bigger change to how
the command line is parsed.
2009-01-16 14:59:36 -05:00
Ted Pavlic
aca074f82b Fix :abbr with no argument (in future, will be less push happy). 2009-01-16 14:25:56 -05:00
Ted Pavlic
704303c108 Moved :abbr LHS non-word match to outside RHS check. Want to check LHS always (like Vim). 2009-01-16 14:19:17 -05:00
Ted Pavlic
b758e2f729 Make sure LHS of :abbr is is all word characters. E474 otherwise (mimic Vim). 2009-01-16 14:02:04 -05:00
Ted Pavlic
1019daa5ca Change (\S+) to (\w+) in abbreviation matching so that "VIMP<space> expands (to match Vim behavior). 2009-01-16 13:34:05 -05:00
Kris Maglione
bd881e062b Small fixes for recent commits. 2009-01-15 15:44:21 -05:00
Doug Kearns
5fe2741dfc Refactor editor.removeAllAbbreviations.
Add some rough source documentation for abbreviation related methods in
Editor.
2009-01-15 22:21:16 +11:00
Ted Pavlic
d29013a2fd Three small changes (copyright, template.js copyright, and tildetidy target)
a.) Cleaned up copyright language to match conventions.
(I used the memoir document class documentation as a reference, but
 these conventions are common throughout publishing)

   * The (c) symbol has no legal meaning. Only the word "Copyright" and
     an encircled lowercase c are appropriate. So the word "Copyright"
     was placed before each (c).

   * Each (C) was changed to (c).

   * Kris uses the correct symbols in copyright notices, but those
     symbols can be problematic in terminal-mode editors. Added the word
     "Copyright" as well.

   * Replaced colons/spaces after years with the word "by."

b.) Added a copyright notice to common/content/template.js. It was
    missing one entirely. Please correct if it doesn't need one or if the
    copyright isn't held by Martin.

c.) Also added a "tildetidy" target to Makefile common that includes a
    version of the find line from the existing "clean" target (however,
    this version uses "rm -fv" instead of "rm -f").
2009-01-12 09:14:54 -05:00
Ted Pavlic
147cdab5d2 Update copyrights for 2009. 2009-01-11 00:47:56 -05:00
Martin Stubenschrott
f09ad33e28 Fixed v exiting visual mode, thanks Xie&Tian 2009-01-06 14:00:27 +01:00
Doug Kearns
e91fbcd754 Add some source documentation for AutoCommands.
Also normalise the use of /* */ and // comments.
2009-01-02 00:56:58 +11:00
teramako
0653d64448 expand a path of editor option when open external editor 2009-01-01 22:01:39 +09:00
Doug Kearns
eeca611435 Add some more rough source documentation. 2009-01-01 22:01:56 +11:00
Doug Kearns
0f0d26d504 Normalise element related temporary variable names (elt -> elem). 2008-12-31 13:08:41 +11:00
Kris Maglione
74700d3aff Document some more crap. 2008-12-19 13:27:01 -05:00
Doug Kearns
d60c81ef23 add missing semicolons 2008-12-19 23:00:14 +11:00
Kris Maglione
e86ae1d6da Use io.withTempFiles in editFieldExternally 2008-12-17 21:22:52 -05:00
Kris Maglione
18d4f74b6e Cc/Ci/Cr/Cu 2008-12-16 19:12:04 -05:00
Doug Kearns
64f00164cc prefer let over var in Editor 2008-12-13 01:25:38 +11:00
Doug Kearns
e9c53d3776 add abbreviation completion 2008-12-13 01:25:35 +11:00
Doug Kearns
d182429dd3 allow for partial match filtering in :abbreviation list commands 2008-12-12 14:03:34 +11:00
Doug Kearns
8ad705334b echo a msg, not an err, from :abbrev when there are no abbreviations 2008-12-12 14:03:29 +11:00
Doug Kearns
aec2c278c2 use argCount: "1" with :*unabbrev commands 2008-12-10 17:02:54 +11:00
Martin Stubenschrott
6bb74806d7 simplified selection controller usage 2008-12-08 13:54:21 +01:00
Daniel Bainton
729854c749 Rename liberator/ to common/ 2008-12-04 07:56:35 +02:00