mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Use stdlib maps/slices
This commit is contained in:
parent
e7ed5716a9
commit
405f5ce148
27 changed files with 55 additions and 60 deletions
|
|
@ -8,8 +8,6 @@ import (
|
|||
|
||||
"kitty/tools/cli/markup"
|
||||
"kitty/tools/utils"
|
||||
|
||||
"golang.org/x/exp/maps"
|
||||
)
|
||||
|
||||
var _ = fmt.Print
|
||||
|
|
@ -23,7 +21,7 @@ func fish_completion_script(commands []string) (string, error) {
|
|||
"kitten": true,
|
||||
}
|
||||
if len(commands) == 0 {
|
||||
commands = append(commands, maps.Keys(all_commands)...)
|
||||
commands = append(commands, utils.Keys(all_commands)...)
|
||||
}
|
||||
script := strings.Builder{}
|
||||
script.WriteString(`function __ksi_completions
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import (
|
|||
"io"
|
||||
"os"
|
||||
"os/exec"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"golang.org/x/exp/slices"
|
||||
"golang.org/x/sys/unix"
|
||||
|
||||
"kitty"
|
||||
|
|
|
|||
|
|
@ -4,10 +4,9 @@ package cli
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"slices"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
var _ = fmt.Print
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue