Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Quickfix navigation fails #294

Open
Open
@dcran108

Description

@dcran108

问题描述

当使用asyncrun#run 并指定cwd 执行make 时,quickfix 列表中的文件跳转功能失效。

问题分析

​​当前行为​​

  1. AsyncRun 会先通过chdir 切换到指定目录执行命令
  2. 执行完命令后,恢复原始的工作目录

导致 quickfix 中的文件路径因为依旧保持相对路径形式,从而无法跳转

原生 Vim 的对比行为​​

当开启autochdir 选项后,执行:make 命令,vim 会自动将 quickfix 中的文件路径替换为绝对路径
从而可以在任何工作目录下都可以正确的跳转

建议方案

能否让 AsyncRun 实现类似原生 Vim 的路径处理机制?

当指定cwd 参数的时候,解析到quickfix 的文件也可以替换为绝对路径

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp