Vi Editing Mode 版本紀錄 - 9 個版本
Vi Editing Mode 作者: Mechiel Lukkien
Vi Editing Mode 版本紀錄 - 9 個版本
小心舊版本!這些版本只是提供來測試與參考用。您應該隨時用最新版的附加元件。
最新版本
版本 0.0.11
發行於 2024年11月21日 - 37.1 KB適用於 firefox 109.0a1 與更新版本v0.0.11
- Add an "id" to the manifest.json for Firefox.
v0.0.10
- Switch to manifest v3, this add-on/extension works with Chromium too.
- Use internal fake clipboard buffer if it isn't available, to make 'y' and 'p'
(yank/paste) somewhat work in insecure contexts.原始碼依照 MIT License 條款釋出
下載 Firefox 並安裝擴充套件必須使用 Firefox 才能使用此擴充套件較舊版本
版本 0.0.10
發行於 2024年11月21日 - 37.1 KB適用於 firefox 109.0a1 與更新版本v0.0.11
- Add an "id" to the manifest.json for Firefox.
v0.0.10
- Switch to manifest v3, this add-on/extension works with Chromium too.
- Use internal fake clipboard buffer if it isn't available, to make 'y' and 'p'
(yank/paste) somewhat work in insecure contexts.原始碼依照 MIT License 條款釋出
版本 0.0.9
發行於 2024年11月19日 - 28.79 KB適用於 firefox 58.0 與更新版本v0.0.9
- Ensure the extra line for ':' and '/' and '?' commands/keys is always on top,
through the highest possible z-index value, so it isn't hidden underneath
other UI elements.
- For command 'o', when at last line that doesn't have ending newline, ensure
current line gets a newline and add another and set cursor at beginning of
next line.
- Fix 'G' motion to include last byte in file (e.g. newline, but any other
character if there was no ending newline).原始碼依照 MIT License 條款釋出
版本 0.0.7
發行於 2024年11月13日 - 28.67 KB適用於 firefox 58.0 與更新版本- Fix positioning of extra input element/line for '/', '?', ':'. Page scroll
offset wasn't being taken into account.
- Improve handling of pasting with 'p' and 'P', depending on whether the pasted
buffer ends with a newline.
- When wrapping text, if an original line started with "# " or "> " or "// ",
repeat those on the wrapped lines. For easier quoting/commenting.原始碼依照 MIT License 條款釋出
版本 0.0.6
發行於 2024年11月4日 - 28.38 KB適用於 firefox 58.0 與更新版本- Implement ex command mode. Basic for now, only for skipping to line numbers
(":123") and doing regexp replace (":%s/from/to/g"). The JS RegExp
functionality is used. Implement search commands "/" and "?". Both add a new
input element (line) to the document, with basic history with arrow up/down,
and vi-editing mode enabled with ctrl-{ (escape cancels the ex/search). Search
commands "*", "#", "n", and "N" can now be prefixed with a command count (e.g.
2* is the motion for word under cursor, twice). And search commands work in
visual mode too now. (issue #8)
- Fix 'v', 'V' (changing kind of visual mode), and 'ctrl-e' (scroll) while in
visual mode. And when going from visual to visual-line mode, properly expand
selection to cover previous selection, widened to whole lines, instead of only
the line of the end of the selection.原始碼依照 MIT License 條款釋出
版本 0.0.5
發行於 2024年11月2日 - 25.55 KB適用於 firefox 58.0 與更新版本- Fix "cw" to not remove the trailing whitespace that the "w" motion would
normally select. (issue #3 by joshbode)
- Fix "w" motion on underscores: Underscore is not part of punctuation, but of
word. (issue #4 by joshbode)
- Improve "b" motion (move word back).原始碼依照 MIT License 條款釋出
版本 0.0.4
發行於 2024年10月18日 - 25.49 KB適用於 firefox 58.0 與更新版本- Bugfix: fix motions 'f' and 't' by advancing to just after
or just before the searched character, instead of before
that character, or even more before. (issue #1 by joshbode)原始碼依照 MIT License 條款釋出
版本 0.0.3
發行於 2024年8月17日 - 25.59 KB適用於 firefox 58.0 與更新版本- Improve highlighting the active mode (outline and colors).
- After undo/redo, restore cursor at beginning of modified text, not end.
- Selecting text while in command mode now switches to visual mode instead of insert mode.
- Fix handling of control modifief key. Before, we would treat many ctrl+<key> as just <key>, which could lead to surprises.
- Implement motion keys to search for a single letter within a line: f, F, t, T, ;, ",".
- Implement motion keys for previous/next sentence: (, ).
- Give more helpful error message when clipboard is not available, typically in insecure context (e.g. internal plain-http (not https) apps).
- Improve cursor positioning and newline behaviour for paste/yank.
- Fix 'o' in visual mode (swapping direction of selection).
- Don't let 'x' delete newlines.
- Implement "a" and "i" meta motions ("around" and "inner"), combined with other movements, such as "iw" for "inner word", also: "W" (word and interpunction), "s" (sentence), "p" (paragraph), "'" (single-quoted string), '"' (double-quoted string), "b" (parenthesis block), "B" (accolade block), "<" or ">" (<...> block).
- Implement visual command "c" (change, as alias for "s").
- Visual line mode now changes selection to include the newline, "$" includes the ending newline when in visual/visualline mode, and no longer excludes the last character on a line.
- Trim whitespace at end/start when joining lines, and add command 'gJ' to join lines withing adding whitespace; Also fix cursor positioning afterwards.
- After visual command, properly clear the visual command buffer, and change cursor to current position (not selection) when going into command mode after visual command.
- Implement motions "-" and "+", for up/down line and going to first non-whitespace character.
- Implement "^" to go to first non-blank on line.
- Implement "#" for searching current word backwards (oppositive direction of "*").
- Implement ctrl-y for scrolling up.
- Implement gq for wrapping text.原始碼依照 MIT License 條款釋出