Commit Graph

978 Commits

Author SHA1 Message Date
Jerome Lelong
4c42501e97 Add new surround feature
This is bind to ctrl+l, ctrl+w and will eventually replace the current
use of backslash.

This is related to #844.
2018-10-12 15:23:53 +02:00
James Yu
d467ccc6cc
Merge pull request #865 from tecosaur/patch-1
Fix minor errors in snippets-doc.md
2018-10-11 23:27:25 +08:00
tecosaur
c28d86df49
Fix minor errors in snippets-doc.md 2018-10-11 16:55:47 +08:00
Jerome Lelong
c7f31beae5 Merge pull request #863 from 'Swoy/master' 2018-10-11 09:24:28 +02:00
Jerome Lelong
474411fe9f Update completion with the new package name format 2018-10-11 09:13:56 +02:00
Ole Anders
60334e1662 Update data/packagenames.json 2018-10-11 07:07:37 +02:00
Jerome Lelong
5a99fc85f2 Fix #859, Honor ignored files in file completion
The following files are excluded from file completion
- Files matching the patterns in files.exclude
- Files matching the patterns in .gitignore, when search.useIgnoreFiles
is true.
2018-10-10 15:06:16 +02:00
Jerome Lelong
d5439cbccf Add subfile and includegraphics to snippet commands 2018-10-09 15:26:55 +02:00
Jerome Lelong
10f5159823 Add include and input to snippet commands
This closes #858.
2018-10-09 15:20:04 +02:00
Jerome Lelong
2ff27a5231 Add --max-print-line to MikTeX pdflatex
MikTeX pdflatex does not honor the environment variable max_print_line.
This closes to #852.
2018-10-09 08:29:47 +02:00
James-Yu
4d7199b99f Resolve #563 #853 Add file path autocompletion 2018-10-08 14:56:33 +08:00
Jerome Lelong
f6c8e70db4 Document the surround feature
Related to #844.
2018-10-07 14:02:57 +02:00
Jerome Lelong
fada0cd4e7 Merge branch 'item' to reintroduce the insert-item-on-enter feature
A new configuration variable is added to enable or disable this feature
    latex-workshop.bind.enter.key
Default is to enable it.

This closes #847.
2018-10-07 13:51:30 +02:00
Jerome Lelong
b05c53768e Merge pull request #848 from viktorstrate/latex-utilities-merge
It implements tag toggle feature.
This closes #841.
2018-10-07 11:34:28 +02:00
Jerome Lelong
7fd0298d3e Refactor toggleSelectedKeyword 2018-10-07 11:33:12 +02:00
viktorstrate
9ede725eb1
Fix removing of tags with nested tags inside 2018-10-06 17:25:30 +02:00
viktorstrate
979d57bb93
Fix shortcut spelling change, after previous merge 2018-10-06 16:58:59 +02:00
viktorstrate
fdd0b3b71c
Merge remote-tracking branch 'root/master' into latex-utilities-merge 2018-10-06 16:57:19 +02:00
Jerome Lelong
c891f30978 Add variable to deactivate insert-item-on-enter
The variable latex-workshop.bind.enter.key  is introduced to enable the
 insert-item-on-enter feature.
2018-10-05 22:15:33 +02:00
James-Yu
c9ea83cfb9 Fix #849 Open PDF in the current column 2018-10-05 15:35:40 +08:00
James-Yu
1f4abfe747 Update changelog and version info 2018-10-05 14:46:30 +08:00
James-Yu
9ccc45d611 Resolve #849 Adopt Webview API of vscode to fix viewer-related issues 2018-10-05 14:45:14 +08:00
James-Yu
dee1b33176 Update version info 2018-10-05 14:12:22 +08:00
James-Yu
b8964637f6 Typo shorcut -> shortcut 2018-10-05 14:01:49 +08:00
James-Yu
bf53ebfe5d Fix #816 Ignore outputDir setting when directly viewing PDFs 2018-10-05 13:55:06 +08:00
viktorstrate
4b1d1a525d
Replace snippets with toggleSelectedKeyword
As discussed in James-Yu/LaTeX-Workshop#841
2018-10-04 16:39:39 +02:00
viktorstrate
9114cfc2f7
Update yarn.lock as it would not compile
The extension seems to run fine after the update.

Error log, from before updating yarn.lock

yarn install v1.10.1
[1/5] 🔍  Validating package.json...
warning latex-workshop@5.10.2: The engine "vscode" appears to be invalid.
[2/5] 🔍  Resolving packages...
[3/5] 🚚  Fetching packages...
error upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "10.11.0"
error Found incompatible module
2018-10-04 16:13:08 +02:00
Jerome Lelong
367e30071c Fix newline issues with item-on-enter
This fixes #740 and 742
2018-10-04 16:11:30 +02:00
Jerome Lelong
4d2190efc3 Revert "Fix #742 Remove enter-to-insert-\item feature for now"
We try to reintroduce the enter-to-insert-\item feature.
2018-10-03 21:25:30 +02:00
Jerome Lelong
8a40cb30a5 Implement keybindings for snippets
This is a three steps process
    1. Define a new snippet in snippets/latex.json
    2. In src/main.ts, register a new command to insert the
    corresponding snippet
    3. In package.json, associate a keybinding to the command.

This closes #809.
2018-10-03 16:07:32 +02:00
Jerome Lelong
5359c55dba
Merge pull request #839 from tamuratak/fix_typo
fix typo.
2018-10-02 12:06:34 +02:00
Takashi Tamura
74a83e57a5 fix typo. 2018-10-02 17:34:12 +09:00
Jerome Lelong
795da2f4a1
Merge pull request #832 from tamuratak/fix_escape
skip any escaped character in finding balanced parens.
2018-09-30 21:58:39 +02:00
Jerome Lelong
5bcede621c
Merge pull request #833 from tecosaur/patch-1
Add documentation for the new keybindings.
This closes #809.
2018-09-30 21:57:21 +02:00
Jerome Lelong
1fe60a7eb4
Merge pull request #831 from tecosaur/tecosaur-modified
Add keybindings following the discussion in #809.
2018-09-30 21:55:44 +02:00
tecosaur
d0e8e2f0bb
Update Shortcuts-doc.md
Sure Emacs notation keybindings are ok, but I think this is better.
`ctrl+key` ⟶ <kbd>ctrl</kbd>+<kbd>key</kbd>
2018-09-30 21:02:08 +08:00
tecosaur
3e4e808ee2
Removed shortcuts that have been removed
Shortcuts were removed due to conflict with vs code
2018-09-30 20:35:32 +08:00
tecosaur
1f9e96fd9f
Remove conflicting keybindings
Specifically the ctrl+i, then also ctrl+b/u to be consistent.
2018-09-30 20:32:38 +08:00
tecosaur
fbe867da50
Update README.md
Add a link to shortcuts-doc.md, and add a clear link to snippets list
2018-09-30 14:16:52 +08:00
tecosaur
fbfdfa1280
Rename Shortcuts.md to Shortcuts-doc.md
In hindsight this would be a better name
2018-09-30 14:15:12 +08:00
tecosaur
47d142bfb0
Create Shortcuts.md
Since this seems a bit long for readme.md but still worth having, here it is as a separate file
2018-09-30 14:11:31 +08:00
tecosaur
7dc412ff9d
Add text super/sub script snippets, and fix underline & fontsize description 2018-09-30 13:46:03 +08:00
tecosaur
02caef0196
Add !editorReadonly and mac shortcuts to text format-y key bindings
As was suggested by @Astrantia I added !editorReadonly, and noticed that "mac": <keybinding> was a thing so added that too.
2018-09-30 00:16:01 +08:00
Takashi Tamura
042f2a6212 skip an escaped character in \section 2018-09-29 20:35:18 +09:00
tecosaur
183e731013
Add keybindings for text formatting snippets etc.
It would be good if anyone knew how to externalise the long list of keybindings...
2018-09-29 16:08:51 +08:00
tecosaur
f703fe5efa
Add textsuperscript and textsubscript snippets
Why? Mainly so I can reference them with keyboard shortcuts, also they're long to type. Not too sure about the current prefix though - any suggestions?
2018-09-29 16:07:11 +08:00
tecosaur
3e93f79750
Fix typo in undeline snippet 2018-09-29 16:06:28 +08:00
Jerome Lelong
2f12ac8913
Merge pull request #825 from tamuratak/label_in_math_env
highlighting \label in a math environment.
2018-09-27 08:28:51 +02:00
Jerome Lelong
8de85fd740
Merge pull request #826 from tecosaur/tecosaur-modified
Fix mathbf shortcut
2018-09-27 08:18:01 +02:00
tecosaur
bef868e9cc
Fix mathbf shortcut
Mathbf used to have `mathbb` as the snippet contents.
2018-09-27 10:47:00 +08:00