aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* use the actual function name of the position conversion functionHEADmainFlorian Fischer2026-05-301-1/+1
|
* simplify setting the cursor position by using vis' file:pos_by_linecolFlorian Fischer2026-05-161-6/+4
|
* parse even file names with column or additional colon charactersMatěj Cepl2026-05-161-2/+8
|
* simplify code by use vis' capability to change files during WIN_OPENFlorian Fischer2026-05-153-23/+9
|
* allow proper transparent WIN_OPEN event handlingFlorian Fischer2024-09-261-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | Simply changing the file in a single WIN_OPEN event has one of two possible problems. 1. Problem: We keep the current window Then all previously ran WIN_OPEN event handlers have observed a wrong file path, leading to broken syntax highlighting for example. 2. Problem: Use a new window This solves the 1. Problem by emitting a new WIN_OPEN event with the correct file path. However, this leads to plugins like vis-cursors to jump to a possibly different line rendering vis-open-extend useless. The solution to both problems is to split our event handling in two parts: On the original event detect the file and the specified line. Change to the file in a new window, remember the line and stop the event handling for the first event. On the second WIN_OPEN event for the correct file path simply jump to the remembered line. This allows both plugins vis-open-extend and vis-cursors to work, if vis-open-extend is loaded after vis-cursors, so our event handler runs after the one from vis-cursors.
* fix: skip if the file with the colon in the name actually existsMatěj Cepl2024-09-251-1/+6
| | | | | This is an attempt to avoid need to add special arguments to vis like -a or so.
* fix: there is undocumented interface for creating new win.fileMatěj Cepl2024-09-211-2/+2
| | | | Perhaps, https://lists.sr.ht/~martanne/devel/%3CD42Y9RUWT1JD.39LJTUER8TDSK@cepl.eu%3E#%3CD4A3NDR7Q6Z3.AM59886VR01B@muhq.space%3E
* fix: add missing returnMatěj Cepl2024-09-181-0/+1
|
* fix: add missing file_exists functionMatěj Cepl2024-09-181-0/+11
| | | | And try to set corrected win.file.path
* feat: initial commitMatěj Cepl2024-09-183-0/+46