Skip to content

Instantly share code, notes, and snippets.

[02-26 13:42:46] 👤 You: config.lua 里面使用 system_prompt 不好,可以加一个选项配置指定路径文件,自动载入 AGENTS.md
[02-26 13:42:53] 🤖 Bot: thinking ...
> 用户提到 config.lua 里的 system_prompt 不好用,希望增加一个选项,可以指定路径文件,自动加载 AGENTS.md。看起来用户想要改进 chat.nvim 插件的配置方式。
>
> 首先,我需要理解当前的情况。用户可能是在 chat.nvim 的 config.lua 文件中设置了 system_prompt,但觉得这种方式不好,希望可以通过指定文件路径来自动加载 AGENTS.md 文件。
>
> 我可以建议用户在 config.lua 中添加一个配置项,比如 `prompt_file` 或 `system_prompt_file`,指向 AGENTS.md 文件。然后,插件可以读取该文件内容作为 system_prompt。
>
[02-12 09:06:25] 👤 You: `:Chat delete` 最好的设计是什么样子的。
1. session 如何处理
2. progress 如何处理
3. 窗口如何处理
4. 使用 picker session 删除时,是否要触发窗口更新
5. 删除后是否要聚焦到输入窗口
[02-12 09:06:31] 🤖 Bot: thinking ...
@wsdjeg
wsdjeg / git-tag-delete-local-and-remote.sh
Created May 4, 2022 05:08 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName

Here I will list all incompatibilities between old and new VimL implementations. Some may be fixed, so it is also a place for discussion. Please discuss incompatibilities with separate issues in separate issues.

Expressions parser incompatibilities

  • Dot subscripts are not always read correctly (#240).
  • E15 errors are not not just “E15: Invalid expression”: there are (invalid expressions)
  • “E15: expected variable name” (\x80\xFD\x52)
@wsdjeg
wsdjeg / os_name.lua
Created August 13, 2021 12:09 — forked from soulik/os_name.lua
OS type and CPU architecture detection in Lua language
local function getOS()
local raw_os_name, raw_arch_name = '', ''
-- LuaJIT shortcut
if jit and jit.os and jit.arch then
raw_os_name = jit.os
raw_arch_name = jit.arch
else
-- is popen supported?
local popen_status, popen_result = pcall(io.popen, "")
local Spring = {} do
Spring.__index = Spring
local pi = math.pi
local exp = math.exp
local sin = math.sin
local cos = math.cos
local sqrt = math.sqrt
function Spring.new(dampingRatio, frequency, position)
@wsdjeg
wsdjeg / repl.php
Created May 10, 2019 01:43 — forked from ziadoz/repl.php
Simple PHP REPL
#!/usr/bin/env php
<?php
if (php_sapi_name() !== 'cli') {
exit(1);
}
function input() {
return fgets(STDIN);
}
@wsdjeg
wsdjeg / gist:5febf4e3ba82b061e12b66dca308dee2
Created February 25, 2019 15:39 — forked from hacksalot/gist:746c3290a7c2e077ed91
Install Ruby/DevKit + Jekyll on Windows

Install Ruby 2.1.5

  1. Install [Ruby 2.1.5 for Windows (x64)][1] from [RubyInstaller.org][2].

    • Set Install Tcl/Tk support.
    • Set Add Ruby executables to your path
    • Set Associate .rb and .rbw files with this Ruby installation.
    • Do NOT include whitespaces in the destination folder.
  2. Run ruby -v to verify command line access and version.

@wsdjeg
wsdjeg / markdown.vim
Created February 24, 2019 13:09
Markdown syntax with colored YAML front matter
" Save this file as: .vim/after/syntax/markdown.vim
exe 'runtime! syntax/yaml.vim'
unlet! b:current_syntax
syn include @YamlTop syntax/yaml.vim
unlet! b:current_syntax
syn region yamlHead start="\%^---$" end="^---\s*$" keepend contains=@YamlTop,@Spell