Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
kkga committed Sep 9, 2021
1 parent b651889 commit a84d0f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- [x] find solution to remove the timeout in Get
- [x] learned how channels work while doing this, implemented fsnotify
- [x] cat cmd, needs -b flag for specific buffer
- [ ] refactor cat cmd to use readTmp from Get
- [x] refactor cat cmd to use readTmp from Get
- [ ] need to be able to create new sessions easily
- [ ] ??? buflist should return relative to cwd
- [ ] kks-files from non-workdir doesn't work (need to resolve path before cmd.Edit()?)
Expand Down
4 changes: 2 additions & 2 deletions kak/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func Edit(line int, col int, filename, session, client string) error {
if filename != "" && session != "" && client != "" && client != "-" {
kakEditCmd := fmt.Sprintf("edit %s", filename)
kakEditCmd := fmt.Sprintf("edit -existing %s", filename)
Send(kakEditCmd, "", session, client)

if line != 0 {
Expand Down Expand Up @@ -55,7 +55,7 @@ func Edit(line int, col int, filename, session, client string) error {
kakExecArgs = append(kakExecArgs, filename)
}

fmt.Println("edit", kakExecArgs)
fmt.Println("edit -existing", kakExecArgs)

execErr := syscall.Exec(kakBinary, kakExecArgs, os.Environ())
if execErr != nil {
Expand Down

0 comments on commit a84d0f4

Please sign in to comment.