-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue1343 system_open_link E371 command not found Windows PowerShell and cmd #1396
base: dev
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -313,7 +313,7 @@ function! vimwiki#base#system_open_link(url) abort | |
else | ||
let url = shellescape(a:url, 1) | ||
endif | ||
execute 'silent ! start "Title" /B ' . url | ||
execute 'silent !start ' .. url | ||
|
||
else | ||
|
||
|
@@ -325,7 +325,7 @@ function! vimwiki#base#system_open_link(url) abort | |
else | ||
let url = shellescape(a:url, 1) | ||
endif | ||
execute 'silent ! start ' . url | ||
execute 'silent !start ' .. eval(url) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the use of eval here is a bug. why to you evaluate a string like "http://www.example.com" ? Please remote it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shellescape(a:url, 1) always outputs a single quote string, which powershell and pwsh reject. To remove eval(), I replaced shellescape with escape(a:url, '%|*#'). |
||
|
||
endif | ||
endfunction | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4019,6 +4019,7 @@ Contributors and their Github usernames in roughly chronological order: | |
- @jiamingc | ||
- Alex Claman (@claman) | ||
- @qadzek | ||
- John D. Fisher (@jfishe) | ||
|
||
|
||
============================================================================== | ||
|
@@ -4038,6 +4039,12 @@ master is retained as a legacy mirror of the dev branch. | |
This is somewhat experimental, and will probably be refined over time. | ||
|
||
|
||
2024.03.08~ | ||
|
||
Fixed:~ | ||
* Issue #1343: Fix/Improvement: Following HTML link on Windows PowerShell | ||
or cmd.exe was broken by change to |:!start| behavior. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good job for adding the release note. |
||
2024.01.24~ | ||
|
||
New:~ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that the
..
operator is synonym of the.
It would be nice to keep the same style for all Vimwiki code hence using the single dot
.
.Please replace
..
by.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:h expr5
For String concatenation ".." is preferred, since "." is ambiguous, it is also
used for |Dict| member access and floating point numbers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite Vim recommendation, I prefer keeping same style. At some point in the future, we may replace all
.
by..