FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Move the selected workspace to the previous/next bookmark · Issue #318 · vim-ctrlspace/vim-ctrlspace · GitHub

Move the selected workspace to the previous/next bookmark #318

Description

Is your feature request related to a problem? Please describe.
It happens when I open files outside the current bookmark (cwd) but relevant to the current workspace (e.g., when I modify system-level configurations). Later, the current workspace becomes overwhelmed by files outside the current bookmark. In such a scenario, I want to move the workspace to a more relevant bookmark (which isn't implemented in CtrlSpace yet as far as I know).

Describe the solution you'd like
There is a function MoveBufferToTab to move the buffer to another tab. I think it would be helpful to have a version of that for moving workspace across different bookmarks, such as MoveWorkspaceToBookmark (and also, MoveTabToWorkspace).

For consistency with the keymap for MoveBufferToTab, we can map MoveWorkspaceToBookmark and MoveTabToWorkspace to { and } in the Workspace List view and Tab List view respectively. (At the moment, { and } in the Tab List view are mapped to moving a selected tab backwards/forward, but given that the order of workspaces in the Workspace List view nor bookmarks in the Bookmark List view are not controllable, I think it's okay also to leave Tab order not controllable unless it is frequently used functionality by other users.

Describe alternatives you've considered
I tried using ctrlspace#keys#workspace#Append which is mapped to a in the Workspace List view, but it works only within the same bookmark.

Version(s) (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Version: LazyVim (nvim 0.9.4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL