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

Enhancement: let user configure to open links in same tab instead on a new window/tab #27

Closed
MaybeThisIsRu opened this issue Aug 9, 2020 · 3 comments · Fixed by #164
Labels
enhancement New feature or request

Comments

@MaybeThisIsRu
Copy link

My use-case: I use my linkding site as the default new tab page. I would like to quickly search and open a link in the same tab.

Currently, clicking a link opens a new tab and I'm left with the new tab that I had opened with linkding, as well as the actual link I wanted to open in another new tab.

This actually involves two facets once a user configures these:

  1. autofocus on the linkding search bar
  2. update the target values on the linkding bookmark entries to open in current tab
@sissbruecker
Copy link
Owner

Seems reasonable, I'm going to take a stab at this at some point.

@Export33
Copy link

Export33 commented Feb 19, 2021

Adding an autofocus to the forminput is easily made and i like the idea.

Changing the default link opening could be impemented with #76 .

@sissbruecker
Copy link
Owner

Added a user profile setting for opening bookmarks either in a new page, or in the same page.

Decided against setting autofocus on the search box for now, as these two features are not necessary related. A recent addition (#161) allows to focus the search box by pressing s, as long as the page has focus, so there is a reasonable workaround.

With regards to the original request of using linkding as the new tab page, and focusing the search box, I'm having a bit trouble to understand how one would work with that setup. Usually in new tabs I want to trigger a web search, so I want to focus the browsers address bar, rather than an input in the new tab page. I found the idea interesting though, so I added an alternative to the linkding browser extension (sissbruecker/linkding-extension#9). The extension now integrates with the address bar / omnibox, so that you can search for bookmarks stored in linkding from the address bar. To do so, enter ld, followed by Space, and then enter the search term. The address bar will now suggest bookmarks from linkding. The default suggestion will simply open linkding in the current tab, and trigger a search for the entered search term. Combined with the new setting introduced here that could be a good alternative.

The update is released for Firefox, Chrome is still pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants