mux-sesh 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -5
- package/src/handlers/keyboard.ts +2 -2
- package/config.example.json +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mux-sesh",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A beautiful tmux session manager built with OpenTUI - fuzzy search sessions, manage projects, clone from GitHub",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,10 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"src",
|
|
11
|
-
"bin"
|
|
12
|
-
"README.md",
|
|
13
|
-
"LICENSE",
|
|
14
|
-
"config.example.json"
|
|
11
|
+
"bin"
|
|
15
12
|
],
|
|
16
13
|
"scripts": {
|
|
17
14
|
"dev": "bun run src/index.tsx",
|
package/src/handlers/keyboard.ts
CHANGED
|
@@ -178,7 +178,7 @@ export function handleOpencodeManageMode(
|
|
|
178
178
|
if (key.name === 'down' || (!isStandard && key.name === 'j')) {
|
|
179
179
|
ctx.setOpencodeCursor(c => {
|
|
180
180
|
const newCursor = Math.min(c + 1, ctx.opencodeSessions.length - 1)
|
|
181
|
-
if (newCursor !== c) {
|
|
181
|
+
if (newCursor !== c && ctx.opencodeSessions[newCursor]) {
|
|
182
182
|
ctx.loadOpencodeStatsForSession(ctx.opencodeSessions[newCursor].title)
|
|
183
183
|
}
|
|
184
184
|
return newCursor
|
|
@@ -190,7 +190,7 @@ export function handleOpencodeManageMode(
|
|
|
190
190
|
if (key.name === 'up' || (!isStandard && key.name === 'k')) {
|
|
191
191
|
ctx.setOpencodeCursor(c => {
|
|
192
192
|
const newCursor = Math.max(c - 1, 0)
|
|
193
|
-
if (newCursor !== c) {
|
|
193
|
+
if (newCursor !== c && ctx.opencodeSessions[newCursor]) {
|
|
194
194
|
ctx.loadOpencodeStatsForSession(ctx.opencodeSessions[newCursor].title)
|
|
195
195
|
}
|
|
196
196
|
return newCursor
|
package/config.example.json
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"project_paths": ["~/dev", "~/personal", "~/work", "~/projects"],
|
|
3
|
-
"repos_path": "~/dev/repos",
|
|
4
|
-
"editor": "nvim",
|
|
5
|
-
"editor_cmd": "nvim -c \"lua vim.defer_fn(function() if pcall(require, 'telescope') then vim.cmd('Telescope find_files') end end, 100)\"",
|
|
6
|
-
"keybind_mode": "vim"
|
|
7
|
-
}
|