Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: interactive commands #236

Open
nikitabobko opened this issue May 22, 2024 · 2 comments
Open

Feature: interactive commands #236

nikitabobko opened this issue May 22, 2024 · 2 comments
Labels
design-needed feature-proposal A well defined feature proposal triaged The issue makes sense to maintainers

Comments

@nikitabobko
Copy link
Owner

nikitabobko commented May 22, 2024

Proposed synopsis:

aerospace focus [-h|--help] --interactive [--fzf] [--fzf-args <fzf-args>... --end-fzf-args]

Proposed behaviour: If the stdout is not TTY then a new floating (!) terminal window opens (sticky floating window?). The terminal should present the following message:

1. Calendar      | Calendar
2. Google Chrome | New Issue · nikitabobko/AeroSpace - Google Chrome
3. IntelliJ IDEA | jvm-sandbox – JavaBase.java [jvm-sandbox]
4. IntelliJ IDEA | jvm-gradle-sandbox – Jaba.java [jvm-gradle-sandbox.main]
5. Alacritty     | /Users/Nikita.Bobko 🚀 ta
What window do you want to focus (1-5)? 

--fzf flag makes the interactive communication nicer by utilizing the fzf tool

After the interactive workflow is done terminal window should close

If the stdout is TTY then TTY should be used for interactive communication

Consideration. Other commands where analogical --interactive could be added: workspace, layout (interactively choose the layout), focus, macos-native*, close, move-node*?

Consideration. The terminal that is used for interactive communication shouldn't appear in the selection?

Consideration. focus command. --interactive-window-id to interactively choose window-id and --interactive to interactively choose direction (is the interactive direction even useful?)

Consideration. Use NSWindow instead of a terminal?

Consideration. Use fzf when available by default?

Consideration. Introduce a separate command to make it possible to create custom "interactive" workflows?

@nikitabobko nikitabobko added feature-proposal A well defined feature proposal design-needed labels May 22, 2024
@nikitabobko
Copy link
Owner Author

@nikitabobko
Copy link
Owner Author

nikitabobko commented Jun 8, 2024

One more "interactive" command: aerospace tree --live should be a pager style command that displays up-to-date tree state

It closes the use case in #55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-needed feature-proposal A well defined feature proposal triaged The issue makes sense to maintainers
Projects
None yet
Development

No branches or pull requests

1 participant