-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
The ChatToggle command will create a new chat on Windows. #176
Comments
@ziboh Thanks for the PR fix, I've just wrapped the if vim.fn.has("win32") then
file_name = file_name:gsub("\\", "/")
chat_dir = chat_dir:gsub("\\", "/")
end If you can confirm the latest version 3.5.1 is working fine, we can close this. |
@Robitx Thank you for your Code Review. Some new issues have arisen now. If |
I think it would be best to directly modify the _H.starts_with = function(str, start)
if vim.fn.has("win32") then
str = str:gsub("\\", "/")
start = start:gsub("\\", "/")
end
return str:sub(1, #start) == start
end |
@ziboh could you please check latest version 3.7.0 which remembers last chat in state file instead of using symlinks? |
Hi, This plugin is very greet.
When I use the
ChatToggle
command, a new chat will be created.I took a look at the source code and found that the file
last.md
was created using theln
command.However, The file last.md has not been created. Creating a Symbolic link on Windows requires administrator privileges.
So how should I proceed with the modifications? 🙏
The text was updated successfully, but these errors were encountered: