Commit Graph
100 Commits
Author SHA1 Message Date
Ted Pavlic 946ab07254 Updated main Makefile to support 'make target1 target2' 2009-02-04 22:58:35 -05:00
Ted Pavlic 8398287449 Removed :pageinfo TODO. Problem was in a plugin. 2009-02-02 09:29:11 -05:00
Ted Pavlic c1c6c659bc TODO bugs: ":pageinfo" on ":help"; "g<" and "g<C-g>"
(*) Fix ":pageinfo" on ":help",
(*) Prevent Vimp from taking "<C-...>" mappings as literal characters
2009-01-28 22:06:26 -05:00
Ted Pavlic d99720ce10 In delmarks, change let variable name to prevent namespace-related error (bug #126).
See http://vimperator.org/trac/ticket/126

Using...

    function (args)
    {
        let args = args.string;
    ...

was causing Firefox to complain that args was undefined. Changing the
"let" to "var" or changing the names of the variables (e.g., changing
"function (args)" to "function (arg)") fixes the problem. IMO, this
appears to be a bug in Firefox.

The short fix would be to change the formal argument from "args" to
"arg." However, that would make delmarks' implementation different from
all the rest. So changed "let args" to "let argstring" and adjusted
throughout the function.
2009-01-23 16:31:55 -05:00
Ted Pavlic 9cb000545e Put |VIMP_INIT| back where it should be in starting.txt 2009-01-23 15:28:53 -05:00
Ted Pavlic ac603ad687 Small fix to last commit. Prevents gobbling all <C-*> on Mac. 2009-01-23 10:47:26 -05:00
Ted Pavlic 4884f5defc Fixes <C-[>, <C-\\>, <C-]>, <C-^>, and <C-_> on Mac OS/X.
On Mac OS/X, control characters 27 through 31 pass charCode=CONTROL_CHAR
rather than charCode=KEY. For example, when a user wants <C-[>
Vimperator sees <C-Esc>. Most people view this as a bug in FirefOS/X.

The following patch tests for has("MacUnix"), then checks to see if the
control character is within this buggy range. If so, it shifts the
charCode up by 64 (there is a special case for Escape where the CTRL key
is relaxed and key is set to "Esc").

For more information, see:
    [*] Vimp FAQ: http://vimperator.org/trac/wiki/Vimperator/FAQ#WhydoesntC-workforEscMacOSX
    [*] Referenced mailing list msg: http://www.mozdev.org/pipermail/vimperator/2008-May/001548.html
    [*] Mozilla bug 416227: event.charCode in keypress handler has unexpected values on Mac for Ctrl with chars in "[ ] _ \"
        https://bugzilla.mozilla.org/show_bug.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&id=416227
    [*] Mozilla bug 432951: Ctrl+'foo' doesn't seem same charCode as Meta+'foo' on Cocoa
        https://bugzilla.mozilla.org/show_bug.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&id=432951
2009-01-23 10:05:14 -05:00
Ted Pavlic d4c62b4851 Corrections to last commit.
* The stdin - wasn't needed. However, an ||true is now used to prevent
  Makefile from erroring out (I'm sure there's a better way).
* muttatorrc was spelled muttatororrc; fixed now.
2009-01-22 10:43:22 -05:00
Ted Pavlic 612362149a Fully-staged previous commit (f4e4ed50986d091461536536a6a085dfcbc91823).
* The vimperator.vba was not included although muttator.vba was.
* Adjusted Makefiles so that vim is called with "-" to open stdin (that
  was required on my Vim7.2 system; does it break others?)
2009-01-22 10:30:35 -05:00
Ted Pavlic f752a00233 Removed final extra indentation from Makefile status messages.
I thought the indentation looked nice and helped when viewing the output
of a "make xpi" from liberator.

Oh, well.
2009-01-21 15:55:49 -05:00
Ted Pavlic 24e4a3ac19 Changed .gitignore to catch .stgit-*.txt instead of just .stgit-edit.txt 2009-01-21 14:48:37 -05:00
Ted Pavlic f36748338b Added some instructions to vimperator.vim.
Files like vimperator.vim, javascript.vim, and vimperatorrc.example
might fit better in a "contrib" directory. It's not clear whether there
should be vimperator/contrib and muttator/contrib directories or a
single liberator/contrib directory.

The Makefile.common doesn't include these files in the bundle, and so it
doesn't seem like a bad idea to package them in a single
liberator/contrib directory with a CONTENTS or README file giving a ToC
for the directory.
2009-01-21 11:19:16 -05:00
Ted Pavlic 23ff9efc61 Make xpi the default liberator/Makefile target (rather than clean). 2009-01-21 11:07:50 -05:00
Ted Pavlic 48be1c8df7 Changed awk to $(AWK) in Makefile.doc. 2009-01-21 11:02:52 -05:00
Ted Pavlic 74c04cc49b Polished Makefile.doc anD Makefile.common.
(includes a more elegant fix for 1e4369cb40de23bd912bb7b5175c6cfae4e665c2)
2009-01-21 10:59:47 -05:00
Ted Pavlic f381a86bf7 Temporary fix for "Sanitize Makefile.doc" (1e4369cb40de23bd912bb7b5175c6cfae4e665c2)
More elegant fix to come, but something was needed so that "make xpi"
could build.
2009-01-21 10:41:42 -05:00
Ted Pavlic 9ad451b7f7 Three small Makefile.doc fixes.
* Require language part of locale to be two lowercase letters.
* Update Makefile.doc comment -- add "include" comment.
* Get rid of muttator/locale/en-US/Makefile symlink in favor of include.
2009-01-21 10:17:37 -05:00
Ted Pavlic 8b95e72115 Minor copyedits. 2009-01-20 11:54:46 -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 1927574ef5 Linked insert.html to :help's intro 2009-01-20 11:15:17 -05:00
Ted Pavlic 4e203e0840 Removed implicit numbering in map.txt; made numbering explicit.
This commit is in the spirit of
a3fc60c011b8ed42c2efec2147b1268abc10d578.

Vim's help format really numbers everything manually? Sections too?
That's unbelievable.
2009-01-20 10:49:42 -05:00
Ted Pavlic 9993f0594e Make abbreviations expand on quotes as well as space.
Also added rough documentation for insert mode.

TODO: Abbreviations should also expand on <CR> and <Tab>, but right now
adding <CR> to the mappings.add() has no effect, and adding <Tab> to the
mappings.add() breaks tab completion.

TODO: Rather than listing non-keyword characters in two places (ui.js
and mappings.js), they should be specified in one location (that could
someday be trumped by an 'iskeyword' option).
2009-01-20 10:45:48 -05:00
Ted Pavlic db872c5e65 Added "filetype=asciidoc" to help file modlines.
At the moment, only "syntax=asciidoc" was specified. The
asciidoc_filetype.vim that is distributed with Asciidoc gives the
installer two options -- to either associate every *.txt file with
asciidoc or to try to decipher whether or not the file is an asciidoc
using the first 50 lines.

So it's not given that a developer will open the *.txt files with
ft=asciidoc, and so it's helpful to have it explicitly in the modeline.
2009-01-17 13:02:41 -05:00
Ted Pavlic 45f6153de4 More command-line edits (now elsewhere in the source). 2009-01-17 12:55:56 -05:00
Ted Pavlic f618833c18 More "command-line edits" in prompts.
Again, by Chicago Manual of Style (CMOS) and several other style guides, we
hyphenate compound /modifiers/ when they come /before/ the word being
modified.

So the "command line" is not hyphenated, but the "command-line mode" is. 

This is consistent with Vim help style conventions as well.
2009-01-17 12:46:10 -05:00
Ted Pavlic 59343a3712 Revert "Fix typos in :highlight help."
This reverts commit 1455b9d27224b1289e7762fef3c4d158c7074877.

"Command line" should only be hyphenated when it is a /leading/ compound
/modifier/. For example, "command-line interface." See CMOS (or
Strunk/White) for more information.
2009-01-17 12:33:28 -05:00
Ted Pavlic 86c5875768 Again removed explicit numbering in asciidoc help files.
Automatic numbering exists for a reason. It's more elegant and easy to
manage. Additionally, because numbering rules can be specified centrally,
it adds consistency to the final look of the documents. An editor shouldn't
have to think about the current numbering level or number. That should be
handled by asciidoc as it builds the final doc.

[ However, added explicit first number to make list source code look a
  little better. ]

Also moved $VIMPERATOR_INIT keyword to its correct location in
starting.txt.

This change partially reverts changeset a1f264639f27d7d5b87e5fbccf54d6890a03ca7d.
2009-01-17 12:29:48 -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
Ted Pavlic a0fcde5b4a Add THIS_LANG sanity check to Makefile.doc. 2009-01-15 22:49:43 -05:00
Ted Pavlic a4b64c71cd Some additions to .gitignore. 2009-01-14 14:56:03 -05:00
Ted Pavlic 08f26c4671 .gitignore and Makefile cleanup to make build environment friendly (and non-biased) to other editors. 2009-01-12 10:47:41 -05:00
Ted Pavlic 853b03ba4d Moved tildetidy into main Makefile. 2009-01-12 10:10:28 -05:00
Ted Pavlic 315d457eb5 Manually reverting one line of commit 7a0423e63afad4c6b0be272fca8064dafc0d6b00.
"this.contexts = { "/": this }" in CompletionContext(...)
    was causing ":set defsearch=google<cr>" (and similar) to error
    with infinite recursion. Restoring to
    "this.contexts = { name: this }" fixes the problem, but does it
    break other things?

    Please review.
2009-01-12 10:03:13 -05: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
Ted Pavlic 48d8b7cacd Added comment/query about why mappings.add("F") is doing what it's doing. 2009-01-08 18:04:55 -05:00
Ted Pavlic 52565d5a48 More Makefile.doc refactoring. Also allow 'make shortname' to build either t2t or doc or both. 2009-01-08 17:54:09 -05:00
Ted Pavlic 4b6186caed Add a t2t target to Makefile.doc for building t2t only. 2009-01-08 17:37:13 -05:00
Ted Pavlic 438a648b14 Makefile.doc cleanup. Also made Makefile build t2t's too with doc target. 2009-01-08 17:25:40 -05:00
Ted Pavlic bfe47dff89 Fixed browser.followLink so that NEW_TAB semantics are invariant of prefs. 2009-01-08 12:01:42 -05:00
Ted Pavlic d90e670d70 Revert 93b0cf2a063b045268a55fbeac9473ce12234300's changes to hints.js
Until liberator.NEW_BACKGROUND_TAB operates differently based on the
    setting of browser.tabs.loadInBackground, this code must remain. At
    the moment, NEW_BACKGROUND_TAB only opens a true background tab if
    loadInBackground=true. When loadInBackground=false, the meaning of
    NEW_TAB and NEW_BACKGROUND_TAB flip. Hence, until they're invariant,
    something like ;F (which must always load tabs in the background)
    has to pay attention to loadInBackground.
2009-01-08 08:51:34 -05:00
Ted Pavlic 0cc75219d0 Added completion for :delqmarks. Again, from IRC, bugfix, not feature. 2009-01-07 16:11:28 -05:00
Ted Pavlic 7bb208020c Added expected completion for :delmarks (as discussed on IRC, because expected, it's a bugfix, not a feature) 2009-01-07 16:11:27 -05:00
Ted Pavlic eb9863789c Revert "Added NEWS item about using make from within doc dirs."
This reverts commit 3767748f8d5540bcc5bd43e2aa4770379ed04c77.
(no need for NEWS item about dev build stuff; doc it elsewhere)
2009-01-07 13:54:32 -05:00
Ted Pavlic 653ff0fb72 More doc Makefile convenience edits. 2009-01-07 12:24:51 -05:00
Ted Pavlic 3beb76a4b6 Added NEWS item about using make from within doc dirs. 2009-01-07 11:03:00 -05:00
Ted Pavlic 52667c8a63 Remove escaping in marks.txt; replace with inline passthrough (for old asciidoc versions that don't automatically URLize without braces. 2009-01-07 10:57:02 -05:00
Ted Pavlic da0a6da5be Remove redundant make from doc Makefiles 2009-01-07 10:56:01 -05:00
Ted Pavlic c54c179d98 Added small Makefiles to doc dirs to make building docs more convenient. 2009-01-07 10:34:33 -05:00
Ted Pavlic 5050b6fee3 HACKING comment about using 'new' 2009-01-07 09:07:00 -05:00
Ted Pavlic b900132133 First stab at HACKING filetype (asciidoc?) 2009-01-07 09:00:33 -05:00
Ted Pavlic 4459827556 Moved SCM HACKING disc to vimp/TODO and added to it. 2009-01-07 08:57:55 -05:00
Ted Pavlic db97184fa4 Added comment about modeline to HACKING 2009-01-06 19:12:09 -05:00
Ted Pavlic ed1b052a25 HACKING modeline 2009-01-06 19:09:45 -05:00
Ted Pavlic 7485dbba4d Added TODO: document remote git branches in HACKING 2009-01-06 19:06:14 -05:00
Ted Pavlic 318dd6a5a6 Change contition to condition in HACKING 2009-01-06 16:56:50 -05:00
Ted Pavlic a07394e16c Added to TODO: reformat HACKING so that git diff can parse it prettilly 2009-01-06 12:12:49 -05:00
Ted Pavlic 025c85e576 Added MDC link to HACKING explaining JS1.7's let 2009-01-06 12:11:02 -05:00
Ted Pavlic ad4b9b89f9 Clarification to :help for :open, :tabopen, and :winopen about what happens to first and next URLs. 2009-01-04 22:15:29 -05:00
Ted Pavlic 1112440269 Corrected correction 'Copyedit to :help winopen for clarity.' 2009-01-04 22:07:56 -05:00
Ted Pavlic 166d60abd0 Added lines to HACKING and vimp/TODO requesting testing/optimization info. 2009-01-04 22:02:26 -05:00
Ted Pavlic b644259f83 HACKING spelling stuff 2009-01-04 21:55:49 -05:00
Ted Pavlic 3befa0120b Fixed ":winopen a, b, c" so that a, b, and c all open in the new window.
Before, only a opened in the new window. b and c opened in background
tabs.

Please review this patch. Feel free to refactor or revert. I'm not
entirely comfortable with the solution, but it was small.

Bug reported in http://vimperator.org/trac/ticket/119
2009-01-04 21:49:08 -05:00
Ted Pavlic 20617543f2 Copyedit to :help winopen for clarity. 2009-01-04 18:13:42 -05:00
Ted Pavlic b503518702 Changed :set {option}* in help to :set {option}? 2009-01-04 16:19:10 -05:00
Ted Pavlic 7f4431361f Add comments to TODO similar to comments that were posted (but have yet to appear) on newsgroup and comments on Trac. 2009-01-03 15:30:23 -05:00
Ted Pavlic 5d1f9db967 Modified .gitignore to exclude Vim swp files and Mac DS_Store files 2009-01-02 15:33:00 -05:00
Ted Pavlic 7ec7bb15dd Implement http://vimperator.org/trac/ticket/92 (restore ;F) (revert if want)
The implementation provides the same functionality as ;F while still
maintaining the Vimp2.0 style hints. There is definitely room for
refactoring here.
2009-01-02 15:24:05 -05:00
Ted Pavlic f70344be50 Better grouping of extended hints in help. Also made completion list consistent with help list. 2009-01-02 14:44:23 -05:00
Ted Pavlic 211613d2c2 Some help list updates. Among other things, got rid of explicit numbering. 2009-01-02 14:32:15 -05:00
Ted Pavlic d5a28b5b37 Made consitent {arg} typesetting in help. 2009-01-02 14:16:11 -05:00
Ted Pavlic 451b094c21 Document ;V in :help and in completion. 2009-01-02 12:30:18 -05:00
Ted Pavlic 2e0f25449b Clarification about browser.tabs.lIB pref in hints help. 2009-01-02 12:20:27 -05:00
Ted Pavlic 0a67d035f8 Help copyedit to make Note: match convention. 2009-01-02 12:18:01 -05:00
Ted Pavlic 254bb5c8ef Added :set! alias to help options.txt 2009-01-02 12:11:21 -05:00
Ted Pavlic c56ba42693 Added ;* tags to list items under :h ; 2009-01-02 12:06:36 -05:00
Ted Pavlic 1facfe407f Several edits to help docs to clarify when plugins are loaded and what can cause them to not be loaded. 2009-01-02 11:37:07 -05:00
Ted Pavlic a1dcfa4e02 Added :lpl and :loadplugins to vimperator.vim 2008-12-30 11:22:11 -05:00
Ted Pavlic 5d8d61cc01 When setting rtp on startup, set VIMPERATOR_RUNTIME to match if it doesn't already exist. 2008-12-30 10:10:37 -05:00
Ted Pavlic aef0a1fe28 Spelling 'refactoring'. 2008-12-29 16:46:26 -05:00
Ted Pavlic ed62a80d20 Use consistent _$VAR_ in help. Before it was mix of _$VAR_ and \'$VAR' 2008-12-29 16:43:46 -05:00
Ted Pavlic 7c64cd0a6c Put quotes around example bash command, just like Vim's help. 2008-12-29 16:32:57 -05:00
Ted Pavlic db7d16bf0e Swapped help defaults for sh and shcf. Now they're correct. 2008-12-29 16:30:20 -05:00
Ted Pavlic 6cbf75ca53 Put quotes around CDPATH in cdpath default help string, as is convention. 2008-12-29 16:25:13 -05:00
Ted Pavlic 61e6133373 Updated cdpath help defaults to mention CDPATH env var. 2008-12-29 16:22:35 -05:00
Ted Pavlic 015d299b3b Changed hyphens to en dashes where appropriate. Note that spaced en dashes can be changed to single em dashes, but should be consistent. See CMOS. 2008-12-29 14:45:48 -05:00
Ted Pavlic 81370f7071 Fixed starting.txt so that numbered list is not in-line. 2008-12-29 14:32:26 -05:00
Ted Pavlic e757af0456 Updated :editor help to use <C-i> instead of <Ctrl-i> to be consistent with the rest of help. 2008-12-28 03:16:04 -05:00
Ted Pavlic 993ba60ee7 Allow empty defsearch. 2008-12-19 10:49:56 -05:00
Ted Pavlic 50f73844c8 Reverting empty defsearch changes in last two commits. Leaving in JS catches. 2008-12-18 13:20:47 -05:00
Ted Pavlic d6e5bdbe77 Updated :help 'defsearch' to reflect empty behavior. 2008-12-18 12:45:46 -05:00
Ted Pavlic 195fc10e05 Allows for empty defsearches and prevents red JS errors on bad URLs. 2008-12-18 12:34:12 -05:00
Ted Pavlic fb2751faf7 Capture exception thrown by normalize on MacOSX. Feel free to revert. I did my best. 2008-12-16 16:00:07 -05:00