aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-03-19vis: remove unused Arg union memberNick Hanley1-1/+0
This was missed when pairwise selection combinators were removed in 404bb95..d1d5853.
2023-03-19don't set _FORTIFY_SOURCE in configureRandy Palamar2-1/+2
distributions that want this flag set do so on a system wide level. for example Gentoo, Fedora, Debian, and OpenSUSE. since vis sets it when invoking cc via make it overwrites the system setting (and pollutes the output with redefinition warnings). For reference here is the related bug in Gentoo: https://bugs.gentoo.org/892960
2023-03-19fix bug where visual-line selections after view were considered visibleJeremy Bobbin2-1/+2
prior to this patch, if you had a visual-line selection after the view, and try to move it(& all other selections) up into the buffer, the selection would appear prematurely. https://github.com/martanne/vis/issues/1074
2023-03-19implement Selection:remove()Jeremy Bobbin2-0/+14
2023-03-19lua: Make luacheck happyMatěj Cepl2-2/+2
2023-02-13update changelogFelix Van der Jeugt1-0/+4
2023-02-13vis-open: further improvement & clean-uppmnw2-33/+28
2023-02-12Do tilde expansion only for the tilde character at the beginning of the pattern.Matěj Cepl1-1/+5
2023-02-12Correct initial value of 'syntax' option, which is not 'off'Matěj Cepl1-1/+1
2023-02-12text-io: close "cwd" in all casesSilvan Jegen1-2/+3
2022-12-10Add CHANGELOG.md based on the GitHub releases.Matěj Cepl1-0/+307
2022-12-10Add dealing with error value from fchdir in text-io.cMatěj Cepl1-1/+2
2022-11-29vis-menu: use `void' to indicate an empty parameter listTom Schwindl1-2/+2
2022-11-29make vis-open and vis-complete more POSIX compliantTom Schwindl2-6/+4
This commit combines 3 commits: - vis-open: `local' is not part of POSIX (Author: Tom Schwindl <schwindl@posteo.de>) - More POSIXisation. (Author: Matěj Cepl <mcepl@cepl.eu>) - Clean up of vis-complete as well. (Author: Matěj Cepl <mcepl@cepl.eu>)
2022-11-29lua/lexers: add gleam lexertynanbe1-0/+3
2022-11-29fix miscellaneous spelling mistakesNick Hanley17-41/+41
2022-11-29Resync the lexers with Scintilluaqiu-x155-12225/+9559
- Resync the lexers with Scintillua - Update the lexer readme - Update `zenburn` theme to fix some highlighting issues - lexers: redirect print function to vis:info() - Fix support for custom style names - As per error message "lexer.delimited_range() is deprecated, use lexer.range()". - Remove remaining `lexer.delimited_range()` call - Set syntax to `nil` if the file type has no matching lexer - Updated Go lexer for Go 1.18. - lexers/dsv: convert to new lexer format (cherry picked from commit 9edbc3cd9ea1d7142b1305840432a3d2739e755a) - lexers/gemini: disable legacy gemini lexer This reverts commit 468f9ee1b027a7ce98b1a249fa1af5888feeb989. It is in legacy format and of questionable quality. Ideally it should be contributed upstream from where it will eventually trickle down to us. - lexers/git-rebase: convert to new lexer format (cherry picked from commit 4000a4cc9ac4a4c2869dfae772b977a82aee8d8c) - lexers/strace: convert to new lexer format (cherry picked from commit e420451320d97eb164f5629c1bcfab0b595be29d) - lexers/typescript: add new upstream lexer revision 28e2b60 (cherry picked from commit 7326e6deecdaa75fa94ae9ebdb653f9f907b33f2) - use `package.searchpath` instead of a local `searchpath` function - Restore `filetype: support filetype detection via hashbang` - Remove redundant comment - Restore gemini lexer
2022-11-29add a basic .editorconfig fileFelix Van der Jeugt1-0/+12
Partially written by mcepl, to avoid patches modifying style.
2022-11-01Set version to 0.8-gitFelix Van der Jeugt3-4/+4
2022-08-27wl-paste and wl-copy should not add \n to the end of the clipboard.Matěj Cepl1-2/+2
2022-08-19Revert "vis-lua: support themes in vis:message"Evan Gates1-5/+1
This reverts commit 22d4709e8a30c8feb9b4da7d78e0ea6a57af83e8. erf mentioned[0] that this change broke a plugin. Revert for now until have time to implement it without that bug. [0] https://github.com/martanne/vis/issues/1034
2022-08-15Add filetype detection for SPEC file for RPM packages building.Matěj Cepl1-0/+3
2022-08-15Update used OSes for GitHub ActionsMatěj Cepl3-2/+6
* Switch off failing Windows tests * MacOS 10.15 is going away: https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22/
2022-08-15vis-clipboard: clean up bashisms and make shellcheck happy.Matěj Cepl1-8/+10
2022-07-27filetype: actually match filenamekhwerz1-1/+1
2022-07-27vis: Some duplicate files were overlooked due to a condition in the wrong placeTom Schwindl1-5/+7
2022-07-23vis: Compare non-existing files by name and existing files by inodeTom Schwindl1-5/+12
2022-07-23simplify loop to sanitize filename and read extensionkhwerz1-27/+23
This uses gsub instead of find+sub. Also changes an ignoresuffix pattern from /~$/ to /~+$/ which should reduce iterations.
2022-07-12vis: Compare inodes instead of filenamesTom Schwindl2-5/+8
2022-06-26Add support for the Hare language file typeqiu-x1-0/+3
https://harelang.org
2022-06-15filetype: add .bashrc and .bash_profileEvan Gates1-1/+1
2022-06-15man: explicitly document default mark usageEvan Gates1-0/+12
Marks use 'am and 'aM to mirror register usage for yank/put and allow a default mark when one is not specified. For anyone coming from vim and used to ma and 'a usage, using a default mark when none is specified is a foreign concept. This leads to e.g. ''m and ''| when m and | would do. Explain in the man page that the default mark is used when none is specified for mark and selection set operations. [0]: ad10da5 (vis: cleanup marks implementation)
2022-06-15vis-lua: support themes in vis:messageEvan Gates1-1/+5
The commit that added vis:message[0] used the existing vis_message_show function which is used internaly to display lua stack traces. That function uses the internal error_file. vis_event_emit does not trigger events for internal files in order to avoid extra lua errors when already printing a lua stack trace[1]. Due to this setup any usage of vis:message showed the text in a window with default theme/syntax/status bar colors. Instead of using the internal vis_message_show function, create a new window and file that are not marked internal in the same manner as cmd_help so themes are applied. [0]: d815268 (vis-lua: implement vis:message(msg)) [1]: d555c90 (vis: properly redraw status bar of windows displaying internal files)
2022-06-15lexers: add .jsx and .tsx as a javascript (until they get their own)Joseph Turner1-1/+1
2022-06-15Makefile lexer now supports multiple targets in single definitionAki1-1/+2
2022-06-15filetype: support filetype detection via hashbangkhwerz1-3/+60
add 2 tables, hashbang and utility for vis.ftdetect.filetypes.<lang> fetch utility from /usr/bin/env args (mostly) Support -S for /usr/bin/env args, discard variables=value args
2022-06-01build: update alpine in docker build to version 3.16Christian Hesse1-1/+1
2022-05-29filetype: Set diff filetype for COMMIT_EDITMSG filesKarol Kosek1-5/+2
This filename is set when writing a commit message in git. If you run git-commit with an --verbose option or if you just have set it in your git-config, that shows you the patch diff on bottom of the file. Unfortunately, now every patch file will set colorcolumn, but overall I think this is better than having duplicated lexers.
2022-05-29filetype: Allow ".PKGBUILD" extension for PKGBUILDsMithicSpirit1-1/+1
Some AUR helpers use this (e.g. paru).
2022-05-29filetype: add .glif to xmlRomain Hervier1-1/+4
2022-05-29filetype.lua: Add "text/x-script.python" to pythonHaelwenn (lanodan) Monnier1-1/+1
2022-05-29README: fix typoJonathan Neidel1-1/+1
encourage -> encourages
2022-05-03Re-enabled tre by #including <stddef.h>.Peter Buxton1-0/+1
2022-05-03README: x/freenode/c/libera/Evan Gates1-2/+2
Update the README to point to irc.libera.chat after the great migration of 2021.
2021-04-20filetype: Set "groovy" for JenkinsfileGalen Abell1-1/+1
2021-04-20ci: verify coverity scan script before using itMarc André Tanner1-2/+7
2021-04-20ci: verify codecov script before using itMarc André Tanner3-3/+22
2021-03-28vis: Add readline Ctrl+A/E bindingsstriker.sh1-0/+2
2021-03-15add lua5.4 in configure scriptxoich1-1/+1
2021-02-15vis: correctly close pipe connected to stdin of external processMarc André Tanner1-2/+2
Once we have written all data we should properly close the (correct) pipe. Before we wrongly closed the pipe connected to the standard output stream. More generally, we currently do not listen for child process termination, but instead wait until all the connected pipes are closed. This might be problematic in case the external process keeps hold of the standard I/O file descriptors. One particular example of this is wl-copy(1). See #929