Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-07-03 | Handle man pages with periods | John Ankarstrom | |
2021-07-02 | Handle man.section as file | John Ankarstrom | |
2021-07-02 | xchord: Use vfork + exec instead of system | John Ankarstrom | |
2021-07-02 | Add git status handler | John Ankarstrom | |
2021-07-01 | xchord: Block until event | John Ankarstrom | |
Otherwise, xchord takes up 100% of the CPU. | |||
2021-07-01 | xchord: Run dwim on key release | John Ankarstrom | |
Otherwise, the X selection won't have time to update! | |||
2021-07-01 | Add xchord utility | John Ankarstrom | |
2021-06-30 | Open vi with UTF-8 encoding | John Ankarstrom | |
2021-06-29 | Don't open vi with ISO8859-1 encoding | John Ankarstrom | |
I've set LC_ALL elsewhere. | |||
2021-06-29 | Handle optional colon after manual.section | John Ankarström | |
2021-06-29 | Open vi with ISO8859-1 encoding | John Ankarström | |
2021-06-19 | Improve function(call handler | John Ankarström | |
2021-06-19 | Fix use subs declaration | John Ankarström | |
2021-06-19 | Sort subroutine definitions alphabetically | John Ankarström | |
2021-06-19 | Fix dirname() | John Ankarström | |
This bug had the side-effect of the chdir in path() failing. | |||
2021-06-19 | Fork and exec instead of calling the shell | John Ankarström | |
This handles whitespace in arguments properly. | |||
2021-06-15 | Improve diff header handler | John Ankarström | |
2021-06-15 | Improve 'path' subroutine | John Ankarström | |
2021-06-15 | Handle diff -u headers | John Ankarström | |
2021-06-15 | Support apropos(1) output | John Ankarström | |
2021-06-15 | Open directories in ROX Filer | John Ankarström | |
2021-06-08 | Handle function(call | John Ankarström | |
2021-06-07 | stuff | John Ankarström | |
2021-06-06 | Install in /usr/local/bin | John Ankarstr\xf6m | |
2021-06-06 | Support ~home directories | John Ankarstr\xf6m | |
2021-06-06 | Dynamically search include directories for header files | John Ankarstr\xf6m | |
2021-06-01 | Fix missing dirname function, handle 'manpage.section' | John Ankarstr\xf6m | |
2019-10-23 | xbps package support | John | |
2019-06-08 | change names of handlers | John | |
2019-06-08 | add handler for <header.h> notation | John | |
2019-06-08 | disallow spaces in urls and e-mail addresses | John | |
Technically, spaces are permitted in e-mail addresses if quoted, but this is very uncommon. | |||
2019-06-08 | allow trailing , or . in manpage(section) regex | John | |
2019-06-08 | allow more trailing characters in file:line regex | John | |
2019-06-06 | add handler for man(section) notation | John | |
2019-06-04 | run() subroutine | John | |
`run` is basically an alias for `exec`, except it prints the command being executed to STDERR when the -d option is specified. | |||
2019-06-04 | rename handlers | John | |
2019-06-04 | fix http/mailto regexes | John | |
2019-06-04 | formatting | John | |
2019-06-03 | manual (wip) | John | |
2019-06-03 | rename dwim.pl to dwim | John | |
2019-06-03 | delete dwim symlink | John | |
2019-06-03 | support perl-like file + line references | John | |
2019-06-03 | argument support (-d for debug) | John | |
To facilitate debugging, I've reified the handler descriptions, which were comments previously. Now, they've been made strings passed to the `handle` subroutine, which sets `$handler`, which then (in case of -d) can be read by `fail`, which notifies the user that a handler has failed. | |||
2019-06-01 | env subroutine: simpler default assignment | John | |
2019-06-01 | simple makefile for myself | John | |
2019-06-01 | dwim.pl | John | |
This is the Perl version of dwim. It is much easier to work with and extend, thanks to Perl's excellent regex support. The "phrase" (either $ARGV[0] or the primary X selection) is matched against regular expressions in the for loop (a primitive switch statement). This is the place to add handlers. Options are specified through environment variables, defined with default values in the section before the handlers. The `path` subroutine transforms a relative path to an absolute path based on the title of the current window. It depends on the `xtitle` program, and for it to work, you must instruct your shell (or editor) to set the terminal's title to the current directory (or currently edited file). (As such, `path` doesn't work with other programs than terminals and editors.) | |||
2019-06-01 | dwim.sh | John | |
This is the first version of my dwim script. The problem with POSIX sh is that the case matching syntax isn't powerful enough. I need something like Perl's regex matching capabilities. |