Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Asheesh Laroia
    @paulproteus
    :sparkles:
    Ciao for now!
    John Meow
    @j0hnmeow
    Is delta available on crates.io?
    John Meow
    @j0hnmeow
    Ok, I found it, but why isn't it on README?
    toyboot4e
    @toyboot4e
    Hi, thank you for sharing the nice tool!
    I'd like to jump to next/previous file with n and N. For example, diff-so-fancy always adds some prefix for files, so I could do this:
    [pager]
        diff = diff-so-fancy | less -iMRX --pattern='^(added|deleted|modified|renamed): '
    So, how about adding > to files names so that it works well with default search pattern of less? Thank you.
    toyboot4e
    @toyboot4e
    (Or, we may just need some regex pattern for n and N, and the the output may not need to be changed?)
    toyboot4e
    @toyboot4e
    Ok now I'm using this (edit: highlighting theme changed):
    [pager]
        diff = delta
    
    [interactive]
        # Use delta with initial search pattern that matches to every file name
        # that contains at least one non-numeric character:
        diffFilter = delta --color-only | less --pattern='^[^─+ ].*[^0-9]'
        # Note that it works AFTER you type `n`. Or, put the pipe to less to in the
        # [pager] section (which in turn always opens `less`)
    mustafa0x
    @mustafa0x
    Awesome project; very nice work
    Is there any way to only show an in-line diff?
    Nevermind; just saw issue #152
    Evan Stoll
    @evanjs
    Is side-by-side mode incompatible with e.g. git ... -p commands?
    When using delta as the diff filter for git ... -p commands with side by side mode enabled, I get fatal: mismatched output from interactive.diffFilter like the error mentioned in this comment from #205
    Paul Delafosse
    @oknozor
    Hello, I have few questions regarding delta's pager implementation :
    • Do you use bat only or fallback to less when bat can't be found ?
    • Does delta ensure bat is installed on the user machine ? If so how ?
    • Would it be possible to turn the delta::bat module into a standalone crate ( or is it too specific) ? I think that would be useful.
      Thank you in advance, I am asking this because I'd need something similar for one of my project, I found myself writing a toy pager with termion and it is definitely not a good idea...
    Also, I forgot to say : I started to use delta few days ago and it's great ! <3
    bennyk
    @bennyKY
    Hi!
    What configuration i need to use in order to get it to be the same as in the examples?
    Dan Davison
    @dandavison
    Hi all, I'm sorry, I had assumed I would get notifications from gitter but apparently not!
    @bennyKY that's the default light settings on a white terminal background. It uses the GitHub theme, but that's the default so all you need to is
    [delta]
        light = true
    Dan Davison
    @dandavison
    @oknozor delta doesn't use bat as a pager; it uses whatever is specified by the value of DELTA_PAGER, BAT_PAGER, or PAGER environment variables, with fall back to less. If any of those env vars are set, they are typically set to less, with some custom arguments.
    Dan Davison
    @dandavison
    @Marcoleni does #398 make sense?
    Marco Ieni
    @MarcoIeni
    Hi Dan, I will check it, anyway I think that keeping discussion inside the relevant issue/PR is better, so I will answer in the PR :)
    Dan Davison
    @dandavison
    Right, let's discuss there.